[TriLUG] Sendmail tweak for fast local queueing of mail for mailinglist etc.
Jon Carnes
jonc at haht.com
Thu Dec 6 17:16:38 EST 2001
My favorite kind of tweak, simple and straight forward.
From: Chuq Von Rospach:
You can do this without modifying your sendmail files at all. Instead, in
your startup script, add another sendmail process:
/usr/sbin/sendmail -bd -ODeliveryMode=defer \
-ODaemonPortOptions=Name=MSA,Port=NNNN,M=E,Addr=127.0.0.1
Where NNNN is some port number not otherwise used (you can test if
something's in use by doing "telnet localhost NNNN" -- if it's refused,
there's no daemon listening)
This sets up a sendmail process listening to the alternate port, in DEFER
mode, but set to talk only to the localhost interface, so it's not
accessible by anyoneother than your local machine: no open relay problems.
To make mailman access that port, add this to your mm_cfg.py:
# define alternate SMTP port
SMTPPORT = 1313
I've been running this fine for about a week, and I'm quite comfortable with
it. It works with sendmail 8.10 and later and doesn't require a sendmail god
to implement.
More information about the TriLUG
mailing list