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!

Want to make Sendmail deaf

Status
Not open for further replies.

cp2000

Technical User
Dec 31, 2002
81
US
I have a Solaris 8 system that is running Sendmail 8.11.6.
I have no need to receive mail at this system. It's only mail function is to send mail out.

How do I tell it to accept only local email to send and not to accept ANYTHING from the outside world.

Thanks for the assist
 

Just kill the sendmail daemon.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Problem is....That kills everything.

I do need to be able to send mail. I just want to stop receiving outside mail
 

What do you mean by that?

How do you send mail?

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Quick and easy way to do this is to just route all incomming mail /dev/null using procmail and a global .procmailrc recipe.

There is no God, only 10001010
 

I still don't understand what you mean by "That kills everything"?

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Thanks guys, I seem to have resolved the problem.

apparently I did something wrong when I tested the setup after shutting down the sendmail daemon. That has resolved the current problem.

How ever, because I manage several different mail servers, I am interested in suggestion. I thought porcmail was an alternate delivery agent. I would really appreciate if you could expand a little more on that suggestion. It looks like it could help me in dealing with an issue on another system....

Tanks again guys
 
Make sure procmail installed and it is set as your LDA in your sendmail.mc
FEATURE(local_procmail)
create a global .procmailrc

your file should look like this

FORMAIL = /usr/sbin/formail
SENDMAIL = /usr/sbin/sendmail
SHELL = /bin/sh
MAILDIR = /var/spool/mail

:0
/dev/null
### End of recipe to discard all incomming mail

Note the formail & sendmail statements are not necessary but it's a good habit to include them in all recipes. As your recipes get more complex you will need them in there.




There is no God, only 10001010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top