[TriLUG] Sendmail tweak for fast local queueing of mail for mailinglist etc.
Thu, 6 Dec 2001 17:16:38 -0500
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 \
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