Hello. Do you have "relayhost" set to gmail SMTP server? https://www.postfix.org/postconf.5.html#relayhost
Did you call postmap(1) to build password file? http://www.postfix.org/postmap.1.html Here are a couple of tutorials: http://postfix.cs.utah.edu/SOHO_README.html#client_sasl_enable https://stafwag.github.io/blog/blog/2018/03/04/postfix-smarthost-with-authentication/ The best place to ask postfix questions is postfix mail list: https://www.postfix.org/lists.html Postfix developers answer there. You can try to debug and increase logging : https://www.postfix.org/DEBUG_README.html On Fri, Jun 3, 2022 at 10:19 PM D. R. Evans <doc.ev...@gmail.com> wrote: > I am trying to configure postfix correctly to send e-mail to a gmail.com > account, using my gmail credentials. > > 1. It all works fine if I use Thunderbird, with the following > configuration: > server name: smtp.googlemail.com > port: 587 > Connection security: STARTTLS > Authentication method: normal password > username: doc.ev...@gmail.com > and the password set to my gmail password. > > That, in fact, is the method that I am using to post this e-mail to the > reflector. > > 2. But when I try to duplicate that with postfix, I receive the following > error: > > > <doc.ev...@gmail.com>: host smtp.googlemail.com[142.250.138.16] said: > 530-5.7.0 > > Authentication Required. Learn more at 530 5.7.0 > > https://support.google.com/mail/?p=WantAuthError > > e12-20020a9d490c000000b0060b6facd5e4sm4170514otf.29 - gsmtp (in > reply to > > MAIL FROM command) > > I have spent most of the morning following various Internet threads > related to > this error, and making many variations to my postfix configuration, but > without success. > > FWIW, here are the relevant parts of my current postfix configuration, and > it > generates the error message quoted above (I am running debian stable): > > in main.cf: > > smtp_sasl_auth_enable = yes > smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd > smtp_sasl_security_options = > smtp_sasl_type = cyrus > smtp_use_tls = yes > smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt > > in sasl_passwd: > > [smtp.googlemail.com]:587 doc.ev...@gmail.com:<password> > > I did check that the password matches exactly the password in Thunderbird. > > So if some postfix guru could enlighten me as to what I need to change, > I'd be > very grateful. > > Doc > > -- > Web: http://enginehousebooks.com/drevans > >