sendmail to gmail on amazon

Knute Johnson groups at knutejohnson.com
Sun Aug 22 23:17:33 UTC 2021


I had notes on how to do this and I still can't get it to work.  I've 
been playing with it for hours.  Sorry.

knute...


On 8/21/21 7:15 PM, Jerry Geis wrote:
> 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 <http://smtp-relay.gmail.com>. 
> [142.251.4.28], dsn=4.0.0, stat=Deferred: Connection timed out with 
> smtp-relay.gmail.com <http://smtp-relay.gmail.com>.
> 
> root at ip-  host smtp-relay.gmail.com <http://smtp-relay.gmail.com>
> smtp-relay.gmail.com <http://smtp-relay.gmail.com> has address 142.251.4.28
> smtp-relay.gmail.com <http://smtp-relay.gmail.com> has IPv6 address 
> 2607:f8b0:4023:1407::1c
> 
> root at ip# telnet smtp-relay.gmail.com <http://smtp-relay.gmail.com> 587
> Trying 142.251.4.28...
> Connected to smtp-relay.gmail.com <http://smtp-relay.gmail.com>.
> Escape character is '^]'.
> 220 smtp-relay.gmail.com <http://smtp-relay.gmail.com> ESMTP 
> b13sm2610650pjl.9 - gsmtp
> 
> I have created teh auth file -
> I added this to the sendmail.mc <http://sendmail.mc>
> define(`SMART_HOST',`[smtp-relay.gmail.com 
> <http://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
> 


-- 

Knute Johnson




More information about the ubuntu-users mailing list