Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access file

Status
Not open for further replies.

tchatzi

Technical User
Dec 15, 2004
744
GR
Hello everyone,

Is there anything i can put in this file so i can reject everyone except whatever comes from localhost?
Something like

127.0. RELAY
10.0 RELAY
0.0.0.0 REJECT

is there such thing as this?

Thanks for your time


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Adjust your sendmail so that it only listens on localhost instead of all interfaces. Edit your sendmail.mc and set the DAEMON_OPTIONS similar to this:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Then rebuild your sendmail.cf with:
m4 < sendmail.mc > sendmail.cf

Then restart sendmail:
/etc/init.d/sendmail restart # for linux
make restart # for BSD
 
Couldn't have said it better but I think the m4 line should be:

m4 sendmail.mc > sendmail.cf

This assumes you are in the same directory these two files are in other wise include the paths.

 
Thanks for your replies.
I did try this but no luck.
So i delete the access file and the access.db file and now it relays meails only from and to the lan.
Weird, isn't it?



``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top