Re: New SASL error when relaying through gmail

2019-04-01 Thread Viktor Dukhovni
> On Apr 1, 2019, at 3:17 PM, John Beranek wrote: > > Also, I got confused between Wietse and Viktor's solutions! Well, Wietse implemented the SMTP reply filter, and I implemented the SASL mechanism filter, so, not surprisingly, each of us just happened to recall the feature that he personally

Re: New SASL error when relaying through gmail

2019-04-01 Thread John Beranek
On Mon, 1 Apr 2019 at 20:04, Noel Jones wrote: > > On 4/1/2019 2:01 PM, John Beranek wrote: > > On Mon, 1 Apr 2019 at 19:55, John Beranek wrote: > >> > >> On Mon, 1 Apr 2019 at 19:47, John Beranek wrote: > >>> > >>> Apologies for resurrecting a somewhat old thread, but presumably the > >>>

Re: New SASL error when relaying through gmail

2019-04-01 Thread Noel Jones
On 4/1/2019 2:01 PM, John Beranek wrote: On Mon, 1 Apr 2019 at 19:55, John Beranek wrote: On Mon, 1 Apr 2019 at 19:47, John Beranek wrote: Apologies for resurrecting a somewhat old thread, but presumably the smtp_reply_filter fix won't work if smtp.gmail.com is now responding like: By the

Re: New SASL error when relaying through gmail

2019-04-01 Thread John Beranek
On Mon, 1 Apr 2019 at 19:55, John Beranek wrote: > > On Mon, 1 Apr 2019 at 19:47, John Beranek wrote: > > > > Apologies for resurrecting a somewhat old thread, but presumably the > > smtp_reply_filter fix won't work if smtp.gmail.com is now responding like: > > By the way, I found this thread as I

Re: New SASL error when relaying through gmail

2019-04-01 Thread John Beranek
On Mon, 1 Apr 2019 at 19:47, John Beranek wrote: > > Apologies for resurrecting a somewhat old thread, but presumably the > smtp_reply_filter fix won't work if smtp.gmail.com is now responding like: By the way, I found this thread as I started having the same issue. I found that Wietse's

Re: New SASL error when relaying through gmail

2019-04-01 Thread John Beranek
Apologies for resurrecting a somewhat old thread, but presumably the smtp_reply_filter fix won't work if smtp.gmail.com is now responding like: $ telnet smtp.gmail.com 587 Trying 108.177.15.108... Connected to smtp.gmail.com. Escape character is '^]'. 220 smtp.gmail.com ESMTP b134sm26404242wmd.26

Re: New SASL error when relaying through gmail

2019-01-15 Thread Wietse Venema
Wietse Venema: > Michael: > > On 1/14/19 11:19 AM, Wietse Venema wrote: > > > > > The 'invalid parameter supplied' is an error message the local SASL > > > library. This error happens while Postfix prepares to send the AUTH > > > command. > > > > > > Why does the Cyrus SASL library return

Re: New SASL error when relaying through gmail

2019-01-15 Thread Wietse Venema
Michael: > On 1/14/19 11:19 AM, Wietse Venema wrote: > > > The 'invalid parameter supplied' is an error message the local SASL > > library. This error happens while Postfix prepares to send the AUTH > > command. > > > > Why does the Cyrus SASL library return 'invalid parameter supplied'? > > I

Re: New SASL error when relaying through gmail

2019-01-15 Thread Michael
On 1/15/19 1:05 PM, Viktor Dukhovni wrote: On Jan 15, 2019, at 2:47 PM, Michael wrote: Using Angelo's testing methodology, I can see this: 250-smtp.gmail.com at your service, [68.226.113.229] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH

Re: New SASL error when relaying through gmail

2019-01-15 Thread Viktor Dukhovni
> On Jan 15, 2019, at 2:47 PM, Michael wrote: > > Using Angelo's testing methodology, I can see this: > > 250-smtp.gmail.com at your service, [68.226.113.229] > 250-SIZE 35882577 > 250-8BITMIME > 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH > 250-ENHANCEDSTATUSCODES >

RE: New SASL error when relaying through gmail

2019-01-15 Thread Fazzina, Angelo
-postfix-us...@postfix.org On Behalf Of Michael Sent: Tuesday, January 15, 2019 2:48 PM To: postfix-users@postfix.org Subject: Re: New SASL error when relaying through gmail On 1/14/19 11:19 AM, Wietse Venema wrote: > The 'invalid parameter supplied' is an error message the local SASL > l

Re: New SASL error when relaying through gmail

2019-01-15 Thread Michael
On 1/14/19 11:19 AM, Wietse Venema wrote: The 'invalid parameter supplied' is an error message the local SASL library. This error happens while Postfix prepares to send the AUTH command. Why does the Cyrus SASL library return 'invalid parameter supplied'? I can only speculate that it does not

Re: New SASL error when relaying through gmail

2019-01-15 Thread Michael
On 1/14/19 11:09 AM, Fazzina, Angelo wrote: Hi, can you manually use commands to test the U/P are working from your postfix server ? 1. Run this to test connectivity to your server openssl s_client -starttls smtp -connect your.host.name:587 Typical OUTPUT = 250 DSN

Re: New SASL error when relaying through gmail

2019-01-14 Thread Wietse Venema
Michael: > Jan 14 08:16:18 deathstar postfix/smtp[16142]: 8CBF11E12B5: > to=, relay=smtp.gmail.com[173.194.203.108]:587, > delay=58297, delays=58297/0.05/0.71/0, dsn=4.7.0, status=deferred (SASL > authentication failed; cannot authenticate to server > smtp.gmail.com[173.194.203.108]: invalid

RE: New SASL error when relaying through gmail

2019-01-14 Thread Fazzina, Angelo
of Connecticut,  ITS, SSG, Server Systems 860-486-9075 -Original Message- From: owner-postfix-us...@postfix.org On Behalf Of Michael Sent: Monday, January 14, 2019 1:00 PM To: postfix-users@postfix.org Subject: Re: New SASL error when relaying through gmail On 1/14/19 10:42 AM, Christophe

Re: New SASL error when relaying through gmail

2019-01-14 Thread Michael
On 1/14/19 10:42 AM, Christopher van de Sande wrote: Just a guess, but are you using App passwords for GMail?  It's possible Gmail is enforcing some 2FA/MFA or otherwise some kind of "enhanced" authentication. Even if you aren't using 2FA, it might be worth giving a shot. I thought this

Re: New SASL error when relaying through gmail

2019-01-14 Thread Michael
On 1/14/19 10:42 AM, Christopher van de Sande wrote: Just a guess, but are you using App passwords for GMail?  It's possible Gmail is enforcing some 2FA/MFA or otherwise some kind of "enhanced" authentication. Even if you aren't using 2FA, it might be worth giving a shot. Yes, I am using

Re: New SASL error when relaying through gmail

2019-01-14 Thread Christopher van de Sande
Just a guess, but are you using App passwords for GMail?  It's possible Gmail is enforcing some 2FA/MFA or otherwise some kind of "enhanced" authentication. Even if you aren't using 2FA, it might be worth giving a shot. Chris. On 2019-01-14 11:00 a.m., Michael wrote: On 1/14/19 8:30 AM,

Re: New SASL error when relaying through gmail

2019-01-14 Thread Michael
On 1/14/19 9:06 AM, Viktor Dukhovni wrote: On Jan 14, 2019, at 10:28 AM, Fazzina, Angelo wrote: Hi, I suspect this is wrong relayhost = [smtp.gmail.com]:587 No, that setting is just fine. Per the subject, the OP is having an issue with SASL authentication to this relay. Given:

Re: New SASL error when relaying through gmail

2019-01-14 Thread Viktor Dukhovni
> On Jan 14, 2019, at 10:28 AM, Fazzina, Angelo > wrote: > > Hi, I suspect this is wrong > > relayhost = [smtp.gmail.com]:587 No, that setting is just fine. Per the subject, the OP is having an issue with SASL authentication to this relay. Given: smtp_sasl_password_maps =

Re: New SASL error when relaying through gmail

2019-01-14 Thread Ignacio García
Michael, I use a gmail account to send system notificacions directly with s-nail in case postfix may fail, and I had similar problems in the past with gmail, and it was because: 1.- That gmail account was not configured to accept "less secure" connections. See

Re: New SASL error when relaying through gmail

2019-01-14 Thread Michael
On 1/14/19 8:30 AM, John Stoffel wrote: Michael> I have been using postfix on a local machine for a few years Michael> to act as a relay for my domain to send email out through Michael> gmail. Michael> This has worked well enough, but I noticed recently that I Michael> had some email queued up

Re: New SASL error when relaying through gmail

2019-01-14 Thread John Stoffel
Michael> I have been using postfix on a local machine for a few years Michael> to act as a relay for my domain to send email out through Michael> gmail. Michael> This has worked well enough, but I noticed recently that I Michael> had some email queued up and was not getting emails out any

RE: New SASL error when relaying through gmail

2019-01-14 Thread Fazzina, Angelo
Hi, I suspect this is wrong relayhost = [smtp.gmail.com]:587 that looks like typical setup for an email client using IMAP and that is the config for sending email. It would require a username and password.