Operating System - HP-UX
1830354 Members
2151 Online
110001 Solutions
New Discussion

sendmail accept mail from only 1 ip-address ?

 
SOLVED
Go to solution
Jesper Sivertsen
Frequent Advisor

sendmail accept mail from only 1 ip-address ?

Hi

I have a spam-box to receive my mails and check them for spam and virus.
So now i want my HP-UX to only accept mail from my spam-box.
I am using sendmail on HP-UX 11.11
I have changed my MX record to point to the spam-box, byt i still get spam-mail on my HP-UX box.
Howe can i block all incomming mail but the spam-box ?

Best regards
Jesper Sivertsen
All in unix is files
4 REPLIES 4
Andres Stickar
Frequent Advisor

Re: sendmail accept mail from only 1 ip-address ?

The easy way is to block all the connections to the port 25 on your HP-UX box, and only accept the conections from your SPAM-box.

This can be done configuring the inetd.sec

Regards.

A.
Geoff Wild
Honored Contributor
Solution

Re: sendmail accept mail from only 1 ip-address ?

You can do this with access.db

cd /etc/mail
vi access

ip-of-spam-box relay
1 reject
2 reject
.
.
.
254 reject

tab between ip and relay or reject

makemap hash /etc/mail/access
restart sendmail....


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Jesper Sivertsen
Frequent Advisor

Re: sendmail accept mail from only 1 ip-address ?

Hi again

I can not use inetd.conf because sendmail is not started from inetd but from rc.

I will try the other solution that seems right !

Regards
Jesper
All in unix is files
John Carr_2
Honored Contributor

Re: sendmail accept mail from only 1 ip-address ?

Jesper

I think Geoff is right

inetd.conf controls how different serives on the system work and allows you to restrict services as Geoff has shown you. hopee this clarifies the inetd.conf for you.

John.