sendmail to gmail on amazon

Jerry Geis jerry.geis at gmail.com
Sun Aug 22 00:15:48 UTC 2021


I am trying to configure sendmail to send with gmail on amazon host.
and getting Connection timed out.

ctladdr=<root at ip> (0/0), delay=00:02:00, xdelay=00:02:00, mailer=relay,
pri=120430, relay=smtp-relay.gmail.com. [142.251.4.28], dsn=4.0.0,
stat=Deferred: Connection timed out with smtp-relay.gmail.com.

root at ip-  host  smtp-relay.gmail.com
smtp-relay.gmail.com has address 142.251.4.28
smtp-relay.gmail.com has IPv6 address 2607:f8b0:4023:1407::1c

root at ip# telnet smtp-relay.gmail.com 587
Trying 142.251.4.28...
Connected to smtp-relay.gmail.com.
Escape character is '^]'.
220 smtp-relay.gmail.com ESMTP b13sm2610650pjl.9 - gsmtp

I have created teh auth file -
I added this to the sendmail.mc
define(`SMART_HOST',`[smtp-relay.gmail.com]')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(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
FEATURE(authinfo',hash -o /etc/mail/authinfo/gmail-smtp-auth.db')dnl
The above commands show the connection can happen manually.

What might I be missing to allow sendmail out of my server to gmail?
Thanks,

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210821/f4327245/attachment.html>


More information about the ubuntu-users mailing list