[opensuse-support] Problem with sending email via gmail from postfix on Tumbleweed

Since a few days, apparently after an upgrade, postfix tries to send messages to smtp.gmail.com:587 (SASL authentication failed; cannot authenticate to server smtp.gmail.com[2a00:1450:400c:c0a::6d]: invalid parameter supplied). I have a file /etc/postfix/sender_dependent_relayhost in which messages I send with my gmail account are referred to this server. I also have a /etc/postfix/sasl_passwd file with this server and associated username and password. This used to work quite well a few days ago. I searched the internet for solutions, but found none. Any suggestions. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org

On 28/10/2019 16.16, Freek de Kruijf wrote:
Since a few days, apparently after an upgrade, postfix tries to send messages to smtp.gmail.com:587 (SASL authentication failed; cannot authenticate to server smtp.gmail.com[2a00:1450:400c:c0a::6d]: invalid parameter supplied). I have a file /etc/postfix/sender_dependent_relayhost in which messages I send with my gmail account are referred to this server. I also have a /etc/postfix/sasl_passwd file with this server and associated username and password.
This used to work quite well a few days ago. I searched the internet for solutions, but found none.
I have that setup, but on Leap. I will send this reply using gmail to see if it works. Meanwhile, do login to gmail via web browser, and make sure there are no pending security actions. Make sure that "download using less secure applications" is enabled. Verify that you can download email from that account using imap (or pop3 if you are using that). I say that because gmail has the $/&%/"&! knack of disabling the account if they don't like how you connect. For instance, if you change location. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)

Op maandag 28 oktober 2019 18:24:00 CET schreef Carlos E. R.:
On 28/10/2019 16.16, Freek de Kruijf wrote:
Since a few days, apparently after an upgrade, postfix tries to send messages to smtp.gmail.com:587 (SASL authentication failed; cannot authenticate to server smtp.gmail.com[2a00:1450:400c:c0a::6d]: invalid parameter supplied). I have a file /etc/postfix/sender_dependent_relayhost in which messages I send with my gmail account are referred to this server. I also have a /etc/postfix/sasl_passwd file with this server and associated username and password.
This used to work quite well a few days ago. I searched the internet for solutions, but found none.
I have that setup, but on Leap. I will send this reply using gmail to see if it works.
Meanwhile, do login to gmail via web browser, and make sure there are no pending security actions. Make sure that "download using less secure applications" is enabled.
Verify that you can download email from that account using imap (or pop3 if you are using that).
I say that because gmail has the $/&%/"&! knack of disabling the account if they don't like how you connect. For instance, if you change location.
Found the solution by googling. It needs the following new line in postfix main.cf: smtp_sasl_mechanism_filter = plain -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org

On 29/10/2019 13.06, Freek de Kruijf wrote:
Op maandag 28 oktober 2019 18:24:00 CET schreef Carlos E. R.:
On 28/10/2019 16.16, Freek de Kruijf wrote:
...
Found the solution by googling.
It needs the following new line in postfix main.cf:
smtp_sasl_mechanism_filter = plain
I have: #-- Passwords: client smtp_sasl_auth_enable = yes smtp_sender_dependent_authentication = yes smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_mechanism_filter = cram-md5, login Not plain. And as you can see, it works. Although I'm not using the submission port, so this will not work on the USA and some other countries. Other settings: /etc/postfix/sender_relayhost: ABCDE@gmail.com [smtp.gmail.com] You could try: ABCDE@gmail.com [smtp.gmail.com]:submission /etc/postfix/sasl_passwd: ABCDE@gmail.com ABCDE@gmail.com:PASS /etc/postfix/sender_relayhost: ABCDE@gmail.com [smtp.gmail.com] /etc/postfix/virtual: ABCDE@gmail.com cer #virtual is needed for DSN to work Sometimes this helps: /etc/postfix/access: ABCDE@gmail.com OK # needed to make postfix accept the email if internet is down. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)

Op dinsdag 29 oktober 2019 13:28:35 CET schreef Carlos E. R.:
On 29/10/2019 13.06, Freek de Kruijf wrote:
Op maandag 28 oktober 2019 18:24:00 CET schreef Carlos E. R.:
On 28/10/2019 16.16, Freek de Kruijf wrote: ...
Found the solution by googling.
It needs the following new line in postfix main.cf:
smtp_sasl_mechanism_filter = plain
I have:
#-- Passwords: client smtp_sasl_auth_enable = yes smtp_sender_dependent_authentication = yes smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_mechanism_filter = cram-md5, login
I use something similar, but apparently after the upgrade of a few days ago this parameter needs to be set. The error message is not coming from the gmail server, but is locally generated by an updated package cyrus-sasl. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (2)
-
Carlos E. R.
-
Freek de Kruijf