Re: sendmail default queue settings



In article <1177703059.468157.309580@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Tester <calinguga@xxxxxxxxxxxx> writes:
On Apr 27, 3:19 pm, p...@xxxxxxxxxxxx (Per Hedeland) wrote:

Please cut&paste the messages verbatim from the log rather than typing
them in from memory or whatever it is you're doing, sendmail won't log
such garbled messages. At a guess, the first one is the *remote* saying
"queued mail for delivery"; for the second it means exactly what it
says, sendmail has no way of knowing why the connection timed out - if
you have network problems, use an appropriate tool like tcpdump to
diagnose; the last one is garbled beyond any attempt at parsing.

Here are the headers.
Apr 25 11:08:57 emailserver sendmail[1923]: l3PF88cm001733:
to=John_Doe@xxxxxxxx,

delay=00:00:25, xdelay=00:00:25, mailer=esmtp, pri=121280,
relay=mailserver.yahoo.com. [IP

address], dsn=4.0.0, stat=Deferred: 451 Message temporarily deferred -
[190]

As I guessed, this is the remote responding with a "temporary failure"
(4xx) type of reply/message, sendmail can only queue the message and try
again later. Guessing further, it might be doing greylisting, but you'd
have to ask yahoo to get a definitive answer.

Apr 25 11:22:21 emailserver sendmail[4242]: l3PF3gw7001688:
to=<John_Doe@xxxxxxxxxxxx>,

ctladdr=<root@xxxxxxxxxxxxxxxxxxxxxx> (0/0), delay=00:18:39,
xdelay=00:00:27, mailer=esmtp,

pri=210288, relay=mailserver.aol.com. [IP address], dsn=4.0.0,
stat=Deferred: 421-:

(DYN:T1) http://postmaster.aol.com/errors/421dynt1.html

Likewise it's the remote giving a temporary failure, but they're kind
enough to point you to an URL for explanation - go read the page.

Apr 25 12:38:35 emailserver sendmail[4442]: l3PGEZmx004440:
to=<John_Does@xxxxxxxxxxx>,

ctladdr=<root@xxxxxxxxxxxxxxxxxxxxxx> (0/0), delay=00:24:00,
xdelay=00:24:00, mailer=esmtp,

pri=120287, relay=mail.hotmail.com. [IP address], dsn=4.0.0,
stat=Deferred: Connection timed

out with email.hotmail.com.

And this is a network problem like I said - the TCP/IP stack in your
kernel attempted to establish a TCP connection to the remote on
sendmail's behalf, but didn't succeed within some "reasonable" time (it
varies depending on your OS, but should be at least 1 minute). The
reason could be simply that the remote host is down, but a firewall
blocking access from your IP address will typically give the same
result.

Can you tell me please what is MaxQueueRunSize and MaxDaemonChildren
settings?

From doc/op/op.* in the distribution:

MaxQueueRunSize=N
[no short name] The maximum number of jobs
that will be processed in a single queue
run. If not set, there is no limit on the
size. If you have very large queues or a
very short queue run interval this could be
unstable. However, since the first N jobs
in queue directory order are run (rather
than the N highest priority jobs) this
should be set as high as possible to avoid
"losing" jobs that happen to fall late in
the queue directory.

MaxDaemonChildren=N
[no short name] If set, sendmail will refuse
connections when it has more than N children
processing incoming mail or automatic queue
runs. This does not limit the number of
outgoing connections. If the default Deliv-
eryMode (background) is used, then sendmail
may create an almost unlimited number of
children (depending on the number of trans-
actions and the relative execution times of
mail receiption and mail delivery). If the
limit should be enforced, then a Delivery-
Mode other than background must be used. If
not set, there is no limit to the number of
children -- that is, the system load average
controls this.


--Per Hedeland
per@xxxxxxxxxxxx
.



Relevant Pages

  • Re: Intentionally slow down queue connections?
    ... The problem is because the connection to this server is so fast theres ... I'm sure if I could tell sendmail to simply pause ... fine and it would go through each message in the queue ... Avoid "at once" delivery attempts - default sendmail's delivery mode ...
    (comp.mail.sendmail)
  • Re: Intentionally slow down queue connections?
    ... The problem is because the connection to this server is so fast theres ... I'm sure if I could tell sendmail to simply pause ... fine and it would go through each message in the queue ... FEATURE(`genericstable', `hash /etc/mail/revvirtusertable')dnl ...
    (comp.mail.sendmail)
  • Re: connection timeout variable name?
    ... force a limit to how long sendmail waits when processing ... long time trying to send messages on the outbound queue, ... because of waiting for this eventual timeout. ... I do not mean the timout when a remote server is sending ...
    (comp.mail.sendmail)
  • Re: connection timeout variable name?
    ... force a limit to how long sendmail waits when processing ... long time trying to send messages on the outbound queue, ... I do not mean the timout when a remote server is sending ... dnl mikee 071219 begin ...
    (comp.mail.sendmail)
  • Re: Sendmail problem - .
    ... Sendmail logs multiple lines per message, with the unifying element being the queue ID, which in that case is 'm217F1JJ030563' and which encodes a timestamp of when the message was queued and the process ID that created it. ... Also in the source package is the very useful cf/README file, which discusses the best way to build the config and a lot of the config options. ... Connection timed out with uk.psi.com. ...
    (comp.mail.sendmail)