sendmail to gmail on amazon
Jerry Geis
jerry.geis at gmail.com
Sun Aug 22 23:40:24 UTC 2021
Actually - I made a little progress... I had a typo in my sendmail.mc that
it was still using port 25 and getting that timeout- Now its using port 587
like it should - but I get the error below.
(reason: 550-5.7.0 Mail relay denied [3.143.X.X]. Invalid credentials
for relay for)
----- Transcript of session follows -----
... while talking to smtp-relay.gmail.com.:
<<< 550-5.7.0 Mail relay denied [3.143.X.X]. Invalid credentials for relay
for
<<< 550-5.7.0 one of the domains in: ip-,
<<< 550-5.7.0 compute.internal, us-east-2.compute.internal (as obtained
from HELO
<<< 550-5.7.0 and MAIL FROM).
<<< 550-5.7.0 Email is being sent from a domain or IP address which isn't
registered
<<< 550-5.7.0 in your G Suite account. Please login to your G Suite account
and
<<< 550-5.7.0 verify that your sending device IP address has been
registered within
<<< 550-5.7.0 the G Suite SMTP Relay Settings. For more information, please
visit
<<< 550 5.7.0 https://support.google.com/a/answer/6140680#maildenied
y6sm2431601pjr.5 - gsmtp
But I have the correct credentials - and I have gone into the G-suite -and
added the PUBLIC IP to the smtp-relay section.
I'm so close. Thought?
Jerry
On Sun, Aug 22, 2021 at 7:19 PM Knute Johnson <groups at knutejohnson.com>
wrote:
> 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
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210822/e284b658/attachment.html>
More information about the ubuntu-users
mailing list