Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Set up sendmail to run in send-only mode' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set up sendmail to run in send-only mode
Authored by: agamemnon on May 27, '03 06:59:14PM

There is another way to do this... set up sendmail to only listen on 127.0.0.1 (loopback IP)... then you can still send mail locally, but others can't connect to you. The best of both worlds!

You need to add the following to the .mc file you are using to generate sendmail.cf:

FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Family=inet, address=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Family=inet, address=127.0.0.1, Port=587, Name=MSA, M=E')dnl
CLIENT_OPTIONS(`Family=inet, Address=0.0.0.0')dnl

This sets up sendmail to listen on loopback ONLY, for both mail (250 and submit (587).

Also, comment out the line:

/usr/sbin/sendmail -C /etc/mail/submit.cf -q1h

in your /System/Library/StartupItems/Sendmail/Sendmail startup script.

Stop all running sendmail processes & restart, everything will work great !

>> Thanks to OpenBSD's openbsd-localhost.mc for how to set this up. <<



[ Reply to This | # ]
Set up sendmail to run in send-only mode
Authored by: agamemnon on May 27, '03 08:24:16PM

Grr. That should be port 25 for mail, not 250.



[ Reply to This | # ]
Set up sendmail to run in send-only mode
Authored by: gvaughn on May 28, '03 12:36:37AM

Can you briefly explain what that line in /System/Library/StartupItems/Sendmail/Sendmail is supposed to do? It seems strange to me to have two invocations of sendmail in that startup script anyay, but I'm new to all this.



[ Reply to This | # ]