sendmail with smtp-relay.gmail.com not working
Jerry Geis
jerry.geis at gmail.com
Sun May 15 00:40:45 UTC 2022
I have this in my sendmail.mc
define('nullclient', `smtp-relay.gmail.com')
define(`RELAY_MAILER', `esmtp')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
define(`confAUTH_OPTIONS', `A p')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confSMTP_LOGIN_MSG', `anonymous')dnl
define(`confPRIVACY_FLAGS',
`authwarnings,goaway,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
FEATURE(`accept_unresolvable_domains')
FEATURE(`authinfo',`hash -o /etc/mail/access.db')dnl
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
I then run sendmailconfig -
I then send a test email and I get connection timeout on gmail.
I have tried "telnet smtp-relay.gmail.com 587" and I do get a connection
Here is the mail.log line:
sm-mta[202297]: 2475x0be047178: (0/0), delay=4+19:57:14, xdelay=00:00:00,
mailer=relay, pri=63189952, relay=smtp-relay.gmail.com., dsn=4.0.0,
stat=Deferred: Connection reset by smtp-relay.gmail.com.
sendmail.cf has port 587:
Msmtp, P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Mesmtp, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h 587
Msmtp8, P=[IPC], F=mDFMuX8, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Mdsmtp, P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP,
E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
A=TCP $h 587
What am I missing ?
Thanks
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220514/9d64656f/attachment.html>
More information about the ubuntu-users
mailing list