Re: Sendmail ignores '-N never' option for DSN's?



On Dec 19, 5:23 am, JonB <jfre...@xxxxxxxxxxxxxx> wrote:
Hi all,

I'm trying to run down some large mail queues at the moment, that have
built up due to config changes on a few hosts, and some downtime.

I'm trying to get Sendmail to despool the queue, but *not* send *any*
DSN's - i.e. at the moment the converstation goes:

Sendmail connects to nominated MX for the destination.
MX says 'User unknown'
Sendmail connects to the nominated MX for the sender, and sends a DSN.

I don't want this second part happening for the mail in the queue.
Looking at the man page for sendmail, it says:

"
-N dsn Set delivery status notification conditions to dsn, which can
be
`never' for no notifications or a comma separated
list of the
values `failure' to be notified if delivery failed,
`delay' to
be notified if delivery is delayed, and `success' to be
notified
when the message is successfully delivered.
"

However, trying this, i.e.

"
sendmail -N never -qRsomedomain.com -v -OQueueSortOrder=filename -
OMinQueueAge=0 -OHostStatusDirectory=
"

Has no affect at all (i.e. sendmail tries the initial deliver - if
that fails, it goes off and contacts the senders MX - and tries to
send a DSN).

Is there anything else that needs to be changed to get this working? -
Is this option something like 'at submission time only?' (i.e. gets
embedded in the control QF files?)

If it is the above - is there something we can strip out, or change in
the QF's to make all the queued mail get this behaviour?

I realise the 'better solution' is not to accept the mail in the first
place - but we had no choice for a couple of hours, and I'd rather not
back-scatter the DSN's for the mail we do have in the queue.

Thanks,

J


You can use patched sendmail to redirect the resulting bounces, for
example, to an alias aliased to /dev/null

http://www.jmaimon.com/sendmail/#SingleBounceAddr

Cant say I would recommend doing this without a real plan.
.



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)
  • Sendmail ignores -N never option for DSNs?
    ... Sendmail connects to the nominated MX for the sender, and sends a DSN. ... 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: 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: 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)
  • Re: suse 8.2 with sendmail question
    ... Well, if instant mail delivery isn't critical, and you want to reduce ... you might want to not run sendmail with the ... having the queue control process always running. ...
    (alt.os.linux.suse)