Re: [exim] Retry rule of NDR based on error

Top Page
Delete this message
Reply to this message
Author: Thomas Hommers
Date:  
To: Heiko Schlittermann
CC: exim-users
Subject: Re: [exim] Retry rule of NDR based on error
Hi Heiko,

i would like to have it based on the reason the NDR was created, not the error that cause the NDR to freeze during it's delivery.
Can this be achieved with the retry rule and error condition as you mentioned?

Thanks,
Thomas

On Heiko Schlittermann <hs@???>, May 13, 2014 2:10 PM wrote:
Hi,

Todd Lyons <tlyons@???> (Mo 12 Mai 2014 18:08:32 CEST):
> On Sun, May 11, 2014 at 5:10 AM, Thomas Hommers
> <thomas.hommers@???> wrote:
> >
> > Actually that was not what i meant, my question should be: How do i make
> > exim droping an email (NDR) on 5xx error instead of freezing and retry?
>
> If exim gets a 5xx when trying to send an NDR, then it freezes the
> message and does not retry. Your problem is that you want your system
> to stop retrying to send NDR when it only gets a 4xx. The best
> suggestion I have for you is to use exipick in a cronjob and try to
> detect these failures.


I didn't follow that thread from the beginning.
But if you setup a non existing retry interval for bounces, they're
just tried once and then discarded:

1Wk5qd-000553-4V == foobar@??? R=dnslookup T=remote_smtp defer (-44): SMTP error from remote mail server after RCPT TO:<foobar@???>: host mail.kugelbus.de [213.128.132.49]: 451 Temporary local problem - please try later
1Wk5qd-000553-4V ** foobar@???: retry timeout exceeded
1Wk5qd-000553-4V foobar@???: error ignored
1Wk5qd-000553-4V Completed


-----
    begin retry

    *   * senders=:
        ^ here you might put a more specific 4xx condition
    ^ here you might put a more specific destination pattern
-----

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-