On 08/12/2016 13:28, Dusan Obradovic wrote:
On Dec 8, 2016, at 08:39, Dominic Raferd <domi...@timedicer.co.uk> wrote:
If nothing was specified as smtp_fallback_relay would it wait and try again on
a transient error or would it just give up immediately? If the former, this
would give me the behaviour I want but I really need to have the fallback
option too (in case of permanent errors, or transient errors that don't go
away).
With or without smtp_fallback_relay, 4xx temporary failure is retried for
maximal_queue_lifetime = 5d (default), while 5xx permanent failure is bounced
immediately.
Thanks for your swift reply Dusan. What you write is logical but my
postfix doesn't seem to behave that way. I have no special setting for
maximal_queue_lifetime but I give below a recent extract from my log
(obfuscated). After trying both gmail hosts and being pushed away with
421 4.7.0 it goes straight to the fallback relay ('relay.gridlock.net')
with delay <=1s. This particular server has no relayhost set (but I see
the same behaviour on another server which has).
2016-12-07 14:24:21 vps987654 postfix/smtp[20615]: E36A63E978: host
gmail-smtp-in.l.google.com[64.233.184.27] said: 421-4.7.0
[164.237.148.196 15] Our system has detected an unusual rate of
421-4.7.0 unsolicited mail originating from your IP address. To protect
our 421-4.7.0 users from spam, mail sent from your IP address has been
temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0
https://support.google.com/mail/?p=UnsolicitedRateLimitError to 421
4.7.0 review our Bulk Email Senders Guidelines. fg2si24349207wjb.134 -
gsmtp (in reply to end of DATA command)
2016-12-07 14:24:21 vps987654 postfix/smtp[20615]: Untrusted TLS
connection established to
alt1.gmail-smtp-in.l.google.com[74.125.205.27]:25: TLSv1.2 with cipher
ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
2016-12-07 14:24:21 vps987654 postfix/smtp[20615]: E36A63E978: host
alt1.gmail-smtp-in.l.google.com[74.125.205.27] said: 421-4.7.0
[164.237.148.196 15] Our system has detected an unusual rate of
421-4.7.0 unsolicited mail originating from your IP address. To protect
our 421-4.7.0 users from spam, mail sent from your IP address has been
temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0
https://support.google.com/mail/?p=UnsolicitedRateLimitError to 421
4.7.0 review our Bulk Email Senders Guidelines. 25si11413277ljn.37 -
gsmtp (in reply to end of DATA command)
2016-12-07 14:24:22 vps987654 postfix/smtp[20615]: Untrusted TLS
connection established to relay.gridlock.net[212.37.41.209]:25: TLSv1
with cipher AES256-SHA (256/256 bits)
2016-12-07 14:25:07 vps987654 postfix/smtp[20615]: E36A63E978:
to=<mymailna...@gmail.com>, orig_to=<enqu...@mydomain.com>,
relay=relay.gridlock.net[212.37.41.209]:25, delay=47,
delays=0.01/0/1.3/45, dsn=2.0.0, status=sent (250 Queued!)
2016-12-07 14:25:07 vps987654 postfix/qmgr[19676]: E36A63E978: removed