Re: Mails to gmail bouncing

2019-07-01 Thread Ralf Hildebrandt
* Wietse Venema :
> Viktor Dukhovni:
> > > On Jun 21, 2019, at 3:32 AM, Ralf Hildebrandt  wrote:
> > > 
> > > /^452-4\.2\.2 (The email account that you tried to reach is over 
> > > quota.*)/ 552 5.2.2 ${1}
> > 
> > Just as I expected. Now change that to:
> > 
> >   /^4(52[- ]4\.2\.2 The email account that you tried to reach is over 
> > quota.*)/ 5${1}
> > 
> > and don't do it again! :-)
> > 
> 
> Use smtp_delivery_status_filter instead.
> 
> (Postfix uses the last 452-4.2.2 from the multiline response)

Thanks!

-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
   
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Mails to gmail bouncing

2019-06-21 Thread Wietse Venema
Viktor Dukhovni:
> > On Jun 21, 2019, at 3:32 AM, Ralf Hildebrandt  wrote:
> > 
> > /^452-4\.2\.2 (The email account that you tried to reach is over quota.*)/ 
> > 552 5.2.2 ${1}
> 
> Just as I expected. Now change that to:
> 
>   /^4(52[- ]4\.2\.2 The email account that you tried to reach is over 
> quota.*)/ 5${1}
> 
> and don't do it again! :-)
> 

Use smtp_delivery_status_filter instead.

(Postfix uses the last 452-4.2.2 from the multiline response)

Wietse


Re: Mails to gmail bouncing

2019-06-21 Thread Ralf Hildebrandt
* Viktor Dukhovni :
> > On Jun 21, 2019, at 3:32 AM, Ralf Hildebrandt  wrote:
> > 
> > /^452-4\.2\.2 (The email account that you tried to reach is over quota.*)/ 
> > 552 5.2.2 ${1}
> 
> Just as I expected. Now change that to:
> 
>   /^4(52[- ]4\.2\.2 The email account that you tried to reach is over 
> quota.*)/ 5${1}
> 
> and don't do it again! :-)

I rather deleted the whole thing. Better not meddle with that stuff.

Sorry for the noise. I cut & pasted the erroneous regexp to
mail.python.org as well -- which Is why I was seeing it there as well

-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
   
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Mails to gmail bouncing

2019-06-21 Thread Viktor Dukhovni
> On Jun 21, 2019, at 3:32 AM, Ralf Hildebrandt  wrote:
> 
> /^452-4\.2\.2 (The email account that you tried to reach is over quota.*)/ 
> 552 5.2.2 ${1}

Just as I expected. Now change that to:

  /^4(52[- ]4\.2\.2 The email account that you tried to reach is over quota.*)/ 
5${1}

and don't do it again! :-)

-- 
Viktor.



Re: Mails to gmail bouncing

2019-06-21 Thread Ralf Hildebrandt
* Wietse Venema  Ralf, you need to fix your smtp_reply_filter :-( You replace "452-"
> with "552 ", and break one multiline response into two responses.
> We can help if you share the regexp.

That's probably the one:

/^452-4\.2\.2 (The email account that you tried to reach is over quota.*)/ 552 
5.2.2 ${1}

-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
   
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Mails to gmail bouncing

2019-06-20 Thread Wietse Venema
Wietse Venema:
> Wietse Venema:
> > Viktor Dukhovni:
> > > On Wed, Jun 19, 2019 at 01:37:41PM +0200, Ralf Hildebrandt wrote:
> > > 
> > > > First entry for gmail was:
> > > > 
> > > > Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq:
> > > >   to=,
> > > >   relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25,
> > > >   delay=4.8, delays=3.3/0.04/0.62/0.84, dsn=5.2.2, status=bounced
> > > >   (host gmail-smtp-in.l.google.COM[173.194.76.26] said:
> > > >552 5.2.2 The email account that you tried to reach is over quota. 
> > > > Please direct
> > > >   (in reply to RCPT TO command))
> > 
> > So this is what Google search says:
> > 
> > Specifically, anyone sending email to a user whose Inbox is out
> > of storage receives a bounce 452-4.2.2 message stating "The
> > email account that you tried to reach is over quota." In terms
> > of message delivery, this is a temporary failure, and the sending
> > server tries to resend later when more storage is available.
> > 
> > Storage limits - G Suite Admin Help - Google Support
> > https://support.google.com/a/answer/1186436?hl=en
> 
> Ralf, you need to fix your smtp_reply_filter :-( You replace "452-"
> with "552 ", and break one multiline response into two responses.
> We can help if you share the regexp.

While fixing this, keep in mind that Postfix will use the last 
line of a multiline response.

It may be easier to use smtp_delivery_status_filter instead.

Wietse

> > 
> > > > Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq:
> > > >   host gmail-smtp-in.l.google.COM[173.194.76.26] said:
> > > >   452-4.2.2 the recipient to
> > > >   452 4.2.2 https://support.google.com/mail/?p=OverQuotaTemp 
> > > > w9si551343wmd.47 - gsmtp
> > > >   (in reply to RCPT TO command)
> > > 
> > > There's our "smoking gun"...  The first log message starts with
> > > 
> > >   5525.2.2 ...
> > > 
> > > and the second with:
> > > 
> > >   4524.2.2
> > > 
> > > but this is clearly a response for a single recipient, split across
> > > multiple lines.  So now the question is whether Gmail is actually
> > > sending that, or whether something on your side is turning the
> > > initial hyphen into a space.  But I'm puzzled by the second message,
> > > it seems to be missing the "to=", "relay=", ... did you forget to
> > > paste those in?
> > > 
> > > -- 
> > >   Viktor.
> > > 
> > 
> 


Re: Mails to gmail bouncing

2019-06-19 Thread Wietse Venema
Wietse Venema:
> Viktor Dukhovni:
> > On Wed, Jun 19, 2019 at 01:37:41PM +0200, Ralf Hildebrandt wrote:
> > 
> > > First entry for gmail was:
> > > 
> > > Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq:
> > >   to=,
> > >   relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25,
> > >   delay=4.8, delays=3.3/0.04/0.62/0.84, dsn=5.2.2, status=bounced
> > >   (host gmail-smtp-in.l.google.COM[173.194.76.26] said:
> > >552 5.2.2 The email account that you tried to reach is over quota. 
> > > Please direct
> > >   (in reply to RCPT TO command))
> 
> So this is what Google search says:
> 
> Specifically, anyone sending email to a user whose Inbox is out
> of storage receives a bounce 452-4.2.2 message stating "The
> email account that you tried to reach is over quota." In terms
> of message delivery, this is a temporary failure, and the sending
> server tries to resend later when more storage is available.
> 
> Storage limits - G Suite Admin Help - Google Support
> https://support.google.com/a/answer/1186436?hl=en

Ralf, you need to fix your smtp_reply_filter :-( You replace "452-"
with "552 ", and break one multiline response into two responses.
We can help if you share the regexp.

Wietse
> 
> > > Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq:
> > >   host gmail-smtp-in.l.google.COM[173.194.76.26] said:
> > >   452-4.2.2 the recipient to
> > >   452 4.2.2 https://support.google.com/mail/?p=OverQuotaTemp 
> > > w9si551343wmd.47 - gsmtp
> > >   (in reply to RCPT TO command)
> > 
> > There's our "smoking gun"...  The first log message starts with
> > 
> > 5525.2.2 ...
> > 
> > and the second with:
> > 
> > 4524.2.2
> > 
> > but this is clearly a response for a single recipient, split across
> > multiple lines.  So now the question is whether Gmail is actually
> > sending that, or whether something on your side is turning the
> > initial hyphen into a space.  But I'm puzzled by the second message,
> > it seems to be missing the "to=", "relay=", ... did you forget to
> > paste those in?
> > 
> > -- 
> > Viktor.
> > 
> 


Re: Mails to gmail bouncing

2019-06-19 Thread Wietse Venema
Viktor Dukhovni:
> On Wed, Jun 19, 2019 at 01:37:41PM +0200, Ralf Hildebrandt wrote:
> 
> > First entry for gmail was:
> > 
> > Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq:
> >   to=,
> >   relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25,
> >   delay=4.8, delays=3.3/0.04/0.62/0.84, dsn=5.2.2, status=bounced
> >   (host gmail-smtp-in.l.google.COM[173.194.76.26] said:
> >552 5.2.2 The email account that you tried to reach is over quota. 
> > Please direct
> >   (in reply to RCPT TO command))

So this is what Google search says:

Specifically, anyone sending email to a user whose Inbox is out
of storage receives a bounce 452-4.2.2 message stating "The
email account that you tried to reach is over quota." In terms
of message delivery, this is a temporary failure, and the sending
server tries to resend later when more storage is available.

Storage limits - G Suite Admin Help - Google Support
https://support.google.com/a/answer/1186436?hl=en

Wietse

> > Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq:
> >   host gmail-smtp-in.l.google.COM[173.194.76.26] said:
> >   452-4.2.2 the recipient to
> >   452 4.2.2 https://support.google.com/mail/?p=OverQuotaTemp 
> > w9si551343wmd.47 - gsmtp
> >   (in reply to RCPT TO command)
> 
> There's our "smoking gun"...  The first log message starts with
> 
>   5525.2.2 ...
> 
> and the second with:
> 
>   4524.2.2
> 
> but this is clearly a response for a single recipient, split across
> multiple lines.  So now the question is whether Gmail is actually
> sending that, or whether something on your side is turning the
> initial hyphen into a space.  But I'm puzzled by the second message,
> it seems to be missing the "to=", "relay=", ... did you forget to
> paste those in?
> 
> -- 
>   Viktor.
> 


Re: Mails to gmail bouncing

2019-06-19 Thread Viktor Dukhovni
On Wed, Jun 19, 2019 at 01:37:41PM +0200, Ralf Hildebrandt wrote:

> First entry for gmail was:
> 
> Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq:
>   to=,
>   relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25,
>   delay=4.8, delays=3.3/0.04/0.62/0.84, dsn=5.2.2, status=bounced
>   (host gmail-smtp-in.l.google.COM[173.194.76.26] said:
>552 5.2.2 The email account that you tried to reach is over quota. Please 
> direct
>   (in reply to RCPT TO command))
>
> Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq:
>   host gmail-smtp-in.l.google.COM[173.194.76.26] said:
>   452-4.2.2 the recipient to
>   452 4.2.2 https://support.google.com/mail/?p=OverQuotaTemp w9si551343wmd.47 
> - gsmtp
>   (in reply to RCPT TO command)

There's our "smoking gun"...  The first log message starts with

5525.2.2 ...

and the second with:

4524.2.2

but this is clearly a response for a single recipient, split across
multiple lines.  So now the question is whether Gmail is actually
sending that, or whether something on your side is turning the
initial hyphen into a space.  But I'm puzzled by the second message,
it seems to be missing the "to=", "relay=", ... did you forget to
paste those in?

-- 
Viktor.


Re: Mails to gmail bouncing

2019-06-19 Thread Wietse Venema
A. Schulze:
> 
> 
> Am 19.06.19 um 12:53 schrieb Viktor Dukhovni:
> >> On Jun 19, 2019, at 6:37 AM, Ralf Hildebrandt  wrote:
> >>
> >> The error message says:
> >>
> >> Protocol error: host gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 
> >> 2.1.5 OK w9si551343wmd.47 - gsmtp (in reply to DATA command)
> > 
> > Ralf, your inattention to detail disappoints me. :-(
> > 
> > The correct reply to "DATA" is "354" not "250".  Something is awfully
> > out of sync if Gmail is returning "250" in response to "DATA".
> 
> to me this looks more as a 250 OK response _after_ data is sent because a 
> typical queue ID is part of the response string.

My logs disagree. They show '250 2.1.5 OK gibberish - gsmtp' in
response to RCPT TO commands (in address verification probes).

whereas the end-of data response says '250 2.0.0 OK ...'.

So let's not confuse the problem with false speculation.

Wietse

RCPT TO response:

spike postfix/smtp[98630]: 45S7Pj6GFVzJrNr: to=<**censored**@gmail.com>, 
relay=gmail-smtp-in.l.google.com[172.217.197.27]:25, delay=0.53, 
delays=0.0018/0.013/0.36/0.15, dsn=2.1.5, status=deliverable (250 2.1.5 OK 
c9si6247152qvn.4 - gsmtp)

end-of-data response:

spike postfix/smtp[20694]: 45TVzq0TsDzJrNy: to=<**censored**@gmail.com>, 
relay=gmail-smtp-in.l.google.com[172.217.197.27]:25, delay=1.8, 
delays=0.11/0.013/0.55/1.1, dsn=2.0.0, status=sent (250 2.0.0 OK  1560962408 
h14si11564740qvj.217 - gsmtp)



Re: Mails to gmail bouncing

2019-06-19 Thread A. Schulze



Am 19.06.19 um 12:53 schrieb Viktor Dukhovni:
>> On Jun 19, 2019, at 6:37 AM, Ralf Hildebrandt  wrote:
>>
>> The error message says:
>>
>> Protocol error: host gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 
>> 2.1.5 OK w9si551343wmd.47 - gsmtp (in reply to DATA command)
> 
> Ralf, your inattention to detail disappoints me. :-(
> 
> The correct reply to "DATA" is "354" not "250".  Something is awfully
> out of sync if Gmail is returning "250" in response to "DATA".

to me this looks more as a 250 OK response _after_ data is sent because a 
typical queue ID is part of the response string.
I cannot see such errors at a "fast grep" here.

Wild guess: smtp-server (or your client) is abnormal and you hit exactly such 
an instance.
-> could you correlate the error with an IP?
-> could you enable debug_peer_list for one/some/all? servers generating this 
error?

and: which postfix version do you run?
( @mail-cvk <-> python.org )

Andreas 


Re: Workaround: Mails to gmail bouncing

2019-06-19 Thread Wietse Venema
Wietse Venema:
> Ralf Hildebrandt:
> > Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
> > to=, 
> > relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
> > delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host 
> > gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK 
> > w9si551343wmd.47 - gsmtp (in reply to DATA command))
> 

Additional workaround: do not reuse a session after protocol error.
Once a session is messed up, all subsequent reuses would fail too.

Wietse

--- /var/tmp/postfix-3.5-20190615/src/smtp/smtp_trouble.c   2017-12-27 
17:29:45.0 -0500
+++ src/smtp/smtp_trouble.c 2019-06-19 10:10:20.0 -0400
@@ -317,6 +317,8 @@
  */
 VSTRING_RESET(why->reason);
 if (mta_name && status && status[0] != '4' && status[0] != '5') {
+   SMTP_SESSION *session = state->session;
+   DONT_CACHE_THIS_SESSION;
vstring_strcpy(why->reason, "Protocol error: ");
status = "5.5.0";
 }


Re: Workaround: Mails to gmail bouncing

2019-06-19 Thread Ralf Hildebrandt
* Wietse Venema :
> Ralf Hildebrandt:
> > Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
> > to=, 
> > relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
> > delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host 
> > gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK 
> > w9si551343wmd.47 - gsmtp (in reply to DATA command))
> 
> Perhaps they messed up their SMTP command pipelining implementation.
> 
> Workaround:
> 
> /etc/postfix/main.cf:
>smtp_delivery_status_filter = pcre:/etc/postfix/smtp_dsn_filter
> 
> /etc/postfix/smtp_dsn_filter:
> /^5(\.5\.0 Protocol error: .+ in reply to DATA command.+)/ 4$1
> 
> This way some deliveries will be delayed instead of bounced.

I applied this at mail.python.org

> We could use debug_peer_list=google.com to make a recording (with
> debug_peer_level=1).

I applied this at mail.python.org

-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
   
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Workaround: Mails to gmail bouncing

2019-06-19 Thread Wietse Venema
Ralf Hildebrandt:
> Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
> to=, 
> relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
> delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host 
> gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK w9si551343wmd.47 
> - gsmtp (in reply to DATA command))

Perhaps they messed up their SMTP command pipelining implementation.

Workaround:

/etc/postfix/main.cf:
   smtp_delivery_status_filter = pcre:/etc/postfix/smtp_dsn_filter

/etc/postfix/smtp_dsn_filter:
/^5(\.5\.0 Protocol error: .+ in reply to DATA command.+)/ 4$1

This way some deliveries will be delayed instead of bounced.

We could use debug_peer_list=google.com to make a recording (with
debug_peer_level=1).

Wietse


Re: Mails to gmail bouncing

2019-06-19 Thread Ralf Hildebrandt
* Viktor Dukhovni :

> The correct reply to "DATA" is "354" not "250".  Something is awfully
> out of sync if Gmail is returning "250" in response to "DATA".
> 
> That's presumably a response for one of the recipients, so Gmail
> sent one more response than Postfix expects, or Gmail received
> one more command than Postfix expected to send.

First entry for gmail was:

Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
delays=3.3/0.04/0.62/0.84, dsn=5.2.2, status=bounced (host 
gmail-smtp-in.l.google.COM[173.194.76.26] said: 552 5.2.2 The email account 
that you tried to reach is over quota. Please direct (in reply to RCPT TO 
command))
Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: host 
gmail-smtp-in.l.google.COM[173.194.76.26] said: 452-4.2.2 the recipient to 452 
4.2.2 https://support.google.com/mail/?p=OverQuotaTemp w9si551343wmd.47 - gsmtp 
(in reply to RCPT TO command)
Jun 19 09:52:42 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host 
gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK w9si551343wmd.47 - 
gsmtp (in reply to DATA command))
... lots of protocol errors ...
Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, 
delay=4.8, delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol 
error: host gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK 
w9si551343wmd.47 - gsmtp (in reply to DATA command))
Jun 19 09:52:44 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=alt1.gmail-smtp-in.l.google.COM[108.177.14.26]:25, delay=6.7, 
delays=3.3/0.04/2.9/0.44, dsn=2.0.0, status=sent (250 2.0.0 OK 1560930764 
q30si13988623lfb.86 - gsmtp)

so the first one causes an error (during the RCPT TO: stage) which then causes 
the rest to get out
of sync in the DATA stage - except for the last one (which goes to another 
server!)

-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
   
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Mails to gmail bouncing

2019-06-19 Thread Ralf Hildebrandt
* Viktor Dukhovni :
> > On Jun 19, 2019, at 6:37 AM, Ralf Hildebrandt  wrote:
> > 
> > The error message says:
> > 
> > Protocol error: host gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 
> > 2.1.5 OK w9si551343wmd.47 - gsmtp (in reply to DATA command)
> 
> Ralf, your inattention to detail disappoints me. :-(

Probably getting old :)
 
> The correct reply to "DATA" is "354" not "250".  Something is awfully
> out of sync if Gmail is returning "250" in response to "DATA".

Yep. See the other logs from mail.python.org -- maybe this heavily
depends on connection caching or pipelining?
 
> That's presumably a response for one of the recipients, so Gmail
> sent one more response than Postfix expects, or Gmail received
> one more command than Postfix expected to send.

-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
   
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Mails to gmail bouncing

2019-06-19 Thread Matus UHLAR - fantomas

On 19.06.19 12:37, Ralf Hildebrandt wrote:

I have a strange problem with mails to GMAIL.
A user sent out mails to 90 recipients, half of which are @gmail.com,
and those mostly bounced:

Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host 
gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK w9si551343wmd.47 - gsmtp 
(in reply to DATA command))
Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host 
gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK w9si551343wmd.47 - gsmtp 
(in reply to DATA command))

The error message says:

Protocol error: host gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 
OK w9si551343wmd.47 - gsmtp (in reply to DATA command)


really strange, since both 250 and 2.1.5 are successful error codes.
do you have anything non-standard in transport maps?


Other recipients were @yahoo.com, and some even hosted on google
(uniroma1.it):

Jun 19 09:52:42 mail-cvk postfix/smtp[32079]: 45THH93PXyz1Z4Kq: 
to=, relay=ASPMX.L.GOOGLE.COM[173.194.76.27]:25, 
delay=4.7, delays=3.3/0.44/0.42/0.58, dsn=2.0.0, status=sent (250 2.0.0 OK 1560930762 
l7si9891184wrx.266 - gsmtp)
Jun 19 09:52:44 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=alt1.gmail-smtp-in.l.google.COM[108.177.14.26]:25, delay=6.7, 
delays=3.3/0.04/2.9/0.44, dsn=2.0.0, status=sent (250 2.0.0 OK 1560930764 
q30si13988623lfb.86 - gsmtp)

so the answer

"250 2.0.0 OK 1560930762 l7si9891184wrx.266 - gsmtp"

is acceptable, while

"250 2.1.5 OK w9si551343wmd.47 - gsmtp"

is a protocol error?

https://tools.ietf.org/html/rfc3463
says about the extended code 2.1.5:

2.XXX.XXX   Success
X.1.5   Destination address valid


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
- Holmes, what kind of school did you study to be a detective?
- Elementary, Watson.  -- Daffy Duck & Porky Pig


Re: Mails to gmail bouncing

2019-06-19 Thread Viktor Dukhovni
> On Jun 19, 2019, at 6:37 AM, Ralf Hildebrandt  wrote:
> 
> The error message says:
> 
> Protocol error: host gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 
> 2.1.5 OK w9si551343wmd.47 - gsmtp (in reply to DATA command)

Ralf, your inattention to detail disappoints me. :-(

The correct reply to "DATA" is "354" not "250".  Something is awfully
out of sync if Gmail is returning "250" in response to "DATA".

That's presumably a response for one of the recipients, so Gmail
sent one more response than Postfix expects, or Gmail received
one more command than Postfix expected to send.
 
-- 
Viktor.



Re: Mails to gmail bouncing

2019-06-19 Thread Ralf Hildebrandt


>  "250 2.0.0 OK 1560930762 l7si9891184wrx.266 - gsmtp"
> 
> is acceptable, while
> 
>  "250 2.1.5 OK w9si551343wmd.47 - gsmtp"
> 
> is a protocol error?

I fired up ye olde grep on mail.python.org and found some incidients
there as well:

# zegrep -c "status=bounced \(Protocol error: host gmail.* 250 2\.1\.5" 
/var/log/mail.log*
/var/log/mail.log:2
/var/log/mail.log.1:6
/var/log/mail.log.2.gz:8
/var/log/mail.log.3.gz:3
/var/log/mail.log.4.gz:9
/var/log/mail.log.5.gz:10
/var/log/mail.log.6.gz:34
/var/log/mail.log.7.gz:21
/var/log/mail.log.8.gz:26
/var/log/mail.log.9.gz:8
/var/log/mail.log.10.gz:3
/var/log/mail.log.11.gz:5
/var/log/mail.log.12.gz:4
/var/log/mail.log.13.gz:5
/var/log/mail.log.14.gz:9
/var/log/mail.log.15.gz:12
/var/log/mail.log.16.gz:8
/var/log/mail.log.17.gz:6
/var/log/mail.log.18.gz:23
/var/log/mail.log.19.gz:17
/var/log/mail.log.20.gz:8
/var/log/mail.log.21.gz:9
/var/log/mail.log.22.gz:5
/var/log/mail.log.23.gz:0
/var/log/mail.log.24.gz:0
/var/log/mail.log.25.gz:5
/var/log/mail.log.26.gz:4
/var/log/mail.log.27.gz:19
/var/log/mail.log.28.gz:7

-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
   
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Mails to gmail bouncing

2019-06-19 Thread Ralf Hildebrandt
I have a strange problem with mails to GMAIL.
A user sent out mails to 90 recipients, half of which are @gmail.com,
and those mostly bounced:

Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host 
gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK w9si551343wmd.47 - 
gsmtp (in reply to DATA command))
Jun 19 09:52:43 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=gmail-smtp-in.l.google.COM[173.194.76.26]:25, delay=4.8, 
delays=3.3/0.04/0.62/0.84, dsn=5.5.0, status=bounced (Protocol error: host 
gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 OK w9si551343wmd.47 - 
gsmtp (in reply to DATA command))

The error message says:
 
Protocol error: host gmail-smtp-in.l.google.COM[173.194.76.26] said: 250 2.1.5 
OK w9si551343wmd.47 - gsmtp (in reply to DATA command)

Other recipients were @yahoo.com, and some even hosted on google
(uniroma1.it):

Jun 19 09:52:42 mail-cvk postfix/smtp[32079]: 45THH93PXyz1Z4Kq: 
to=, relay=ASPMX.L.GOOGLE.COM[173.194.76.27]:25, 
delay=4.7, delays=3.3/0.44/0.42/0.58, dsn=2.0.0, status=sent (250 2.0.0 OK 
1560930762 l7si9891184wrx.266 - gsmtp)
Jun 19 09:52:44 mail-cvk postfix/smtp[32063]: 45THH93PXyz1Z4Kq: 
to=, 
relay=alt1.gmail-smtp-in.l.google.COM[108.177.14.26]:25, delay=6.7, 
delays=3.3/0.04/2.9/0.44, dsn=2.0.0, status=sent (250 2.0.0 OK 1560930764 
q30si13988623lfb.86 - gsmtp)

so the answer 

 "250 2.0.0 OK 1560930762 l7si9891184wrx.266 - gsmtp"

is acceptable, while

 "250 2.1.5 OK w9si551343wmd.47 - gsmtp"

is a protocol error?

https://tools.ietf.org/html/rfc3463
says about the extended code 2.1.5:

2.XXX.XXX   Success
X.1.5   Destination address valid


-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
   
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein