Mail Queue Retry Limit

From Roaring Penguin
Revision as of 12:22, 25 April 2014 by MCoyne (talk | contribs) (Created page with "The retry period is controlled by Sendmail. To change it, edit /etc/mail/sendmail.mc on your CanIt server. You should see a line that looks like this: define(`confTO_…")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The retry period is controlled by Sendmail.

To change it, edit /etc/mail/sendmail.mc on your CanIt server. You should see a line that looks like this:

       define(`confTO_QUEUERETURN_DSN',`12h')dnl

That makes Sendmail give up trying to deliver a delivery-status notification after 12 hours. The default for all other mail is five days. If you want to change it (for example, to seven days) add the following line below the previous line:

       define(`confTO_QUEUERETURN',`7d')dnl

Then type:

    make -C /etc/mail && /etc/init.d/sendmail reload

to cause the new setting to take effect. A time period in Sendmail is specified by a number followed by a letter: s = seconds, m = minutes, h = hours and d = days.