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 https://support.google.com/accounts/answer/6010255?hl=en
2.- Even though I had "less secure" connections enabled, each time I set
up a new server (another IP), for that IP I had to go through that
process covered in step 1.
Ignacio
El 14/01/2019 a las 16:22, Michael escribió:
Hello,
I have been using postfix on a local machine for a few years to act as
a relay for my domain to send email out through gmail.
This has worked well enough, but I noticed recently that I had some
email queued up and was not getting emails out any longer.
In my mailog, I am seeing these errors:
Jan 14 08:16:18 deathstar postfix/smtp[16142]: 8CBF11E12B5:
to=<michael@my.domain>, 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 parameter supplied)
I have googled a lot, but I am not finding anything that matches this
error message. I am not sure also what might have changed to cause
this. Not sure if Google changed something or a package update broke
something, etc.
This is in Fedora 29, x86_64, postfix-3.3.1, and
cyrus-sasl-lib-2.1.27-0.3rc7.
output of postconf
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
compatibility_level = 2
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = localhost, $myhostname
inet_protocols = ipv4
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = my.domain
myhostname = deathstar.my.domain
mynetworks = 192.168.0.0/16, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix/README_FILES
relayhost = [smtp.gmail.com]:587
sample_directory = /usr/share/doc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
shlib_directory = /usr/lib64/postfix
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /root/.acme.sh/my.domain/my.domain.cer
smtp_use_tls = yes
unknown_local_recipient_reject_code = 550
Any thoughts on what the error means and what I might need to change?
Michael