Re: Intentionally slow down queue connections?



Ken Williams <kenw232@xxxxxxxxx> writes:

I'm running sendmail 8.14.1 on linux 2.4. I have a lot of queued
items (say 7000) all going to the same domain (samedomain.com). When
sendmail tries to run the queue (every 15 minutes or whatever), it
quickly (very quickly) spawns the processes and ties to connect to the
domain to deliver the messages as expected.

The problem is because the connection to this server is so fast theres
no delay anywhere, it rips through like a 100 per second, so of course
the receiving domain (samedomain.com) will throttle it (Connection
rate limit exceeded).

This actually makes it impossible to deliver these messages
normally. Only like 3 messages per 15 minutes actually get delivered
because the connection rate is exceeded for the rest, stopping them.
How can I fix this? I'm sure if I could tell sendmail to simply pause
for a second between each message attempt the connection rate would be
fine and it would (more slowly) go through each message in the queue
delivering just fine.

Any ideas? What am I doing wrong?
kenw232@xxxxxxxxx
[...]

1) Avoid "at once" delivery attempts - default sendmail's delivery mode
It requires new smtp mailer with expensive flag (F=e) and
FEATURE(`mailertable')
2) Create separate queue group for deliveries to the domain

It will make sendmail send more messages over single smtp connection
[ all configured via sendmail.mc/sendmail.cf ]

Do you want more detailed description?

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@xxxxxxxxxxxx : anfi@xxxxxxxx
Open-Sendmail: http://open-sendmail.sourceforge.net/
God help the troubadour who tries to be a star. The more that you try
to find success, the more that you will fail.
-- Phil Ochs, on the Second System Effect
----
http://groups.google.com/groups?selm=87abmsnqgv@xxxxxxxxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: Sendmail ignores -N never option for DSNs?
    ... Sendmail connects to the nominated MX for the sender, ... I don't want this second part happening for the mail in the queue. ... -N dsn Set delivery status notification conditions to dsn, ...
    (comp.mail.sendmail)
  • Re: sendmail default queue settings
    ... them in from memory or whatever it is you're doing, sendmail won't log ... this is the remote responding with a "temporary failure" ... sendmail can only queue the message and try ... stat=Deferred: Connection timed ...
    (comp.mail.sendmail)
  • Re: Can an email be submitted directly to the queue?
    ... (so that we can then check at the destination to see if the queue is ... Why not call sendmail with option 'queue only' or 'defer' ... Set the delivery mode to x. Delivery modes are ‘i’ for interac‐ ... option (default for the host map) are avoided. ...
    (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: occasional Deferred messages - Help
    ... It *SHOULD* be no different than periodic queue runs by sendmail daemon. ... Do you use hoststatus info? ... The idea is to stop your sendmail delivery attempts for a short period ...
    (comp.mail.sendmail)