Andrew Taylor wrote:
> Just a quick one because it's really bugging me. I'm trying to get
> DeliveryMode=d to work. I want it to keep everything in the queue and
> never do dns lookups until i process the queue, I've tried putting it in
> /etc/sysconfig/sendmail, i've tried putting it in
> /etc/rc.d/init.d/sendmail and i've tried putting it in /etc/sendmail.cf.
>
> Where do you put it and how?
The 'O DeliveryMode=d' goes in sendmail.cf. However, it won't normally
work by itself.
For offline use, you want to:
a) Remove all DNS lookups from sendmail.cf. The map forms which cause
DNS lookups, along with the features which enable (or disable) them,
are:
$[ ... $] FEATURE(nocanonfiy) [DISABLES]
$(host ... $) FEATURE(rbl)
$(resolve ... $) FEATURE(accept_unresolvable_domains)
$(mxserved ... $) FEATURE(relay_based_on_MX)
$(bestmx ... $) FEATURE(bestmx_is_local)
b) Mark all of the SMTP mailers as 'expensive', by adding the 'm' flag
to the 'F=...' section of each mailer's definition, e.g.
Msmtp, P=[IPC], F=mDFMuXe, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
Similarly for the 'smtp8', 'esmtp' and 'relay' mailers.
c) Enable the 'HoldExpensive' option, i.e.
# avoid connecting to "expensive" mailers on initial submission?
O HoldExpensive=True
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]