From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Computer system email no not working since gmail change.
Date: Fri, 27 Sep 2024 02:40:05 -0000 (UTC) [thread overview]
Message-ID: <vd55u5$11mq$1@ciao.gmane.io> (raw)
In-Reply-To: d3debaef-6528-c8a7-66e8-fb55dbf6b02d@gmail.com
On 2024-09-27, Dale <rdalek1967@gmail.com> wrote:
> It says port 465 but it is using Oauth2 if that matters.
It doesn't.
> I'll admit, the last time I got this working, I followed a guide and
> it just worked. Once it worked, I left it alone. I was scared that
> if I touched it, it would stop working. LOL
>
> I changed the config to port 465 and it still failed with this.
>
>
> Sep 26 19:04:26 Gentoo-1 smartd[18737]: Executing test of <mail> to root ...
> Sep 26 19:04:36 Gentoo-1 msmtp[18815]: host=smtp.gmail.com tls=on
> auth=off from=rdalek1967<at>gmail.com recipients=root errormsg='the
> server sent an empty reply' exitcode=EX_PROTOCOL
According to that message, the msmtp auth option is off. It needs to
be on.
Look at the working configuraiton I posted.
Use that configuration with your email address and app password.
It also looks like smartd is trying to send mail to the recipient
"root". That's not a valid destination when sending via most smtp
servers. You need to be sending to a recipient that looks like
"user@domain".
What port number are you trying to use?
Please re-read what I wrote about port numbers and starttls. If
you're using port 465, you need to turn tls_starttls OFF. If you're
using port 587, tls_starttls needs to be ON. That's the default, but I
recommend turning it on explicitly.
My advice: don't use smartd to try to get msmtp working. Use
something easier to work with. The usual way to do it is using
something like mailx. The Arch wiki page is an excellent resource:
https://wiki.archlinux.org/title/Msmtp
It shows how to test msmtp using mailx.
It also addresses the error you're seeing explicitly:
8.2 Server sent empty reply
If you get a "server sent empty reply" error, this probably means
the mail server does not support STARTTLS over port 587, but
requires TLS over port 465.
Note that some systems will ignore a message without a Message-Id:
header, so the example from the Arch page that cats a message from a
file to msmtp might not work reliably.
next prev parent reply other threads:[~2024-09-27 2:40 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 2:44 [gentoo-user] Computer system email no not working since gmail change Dale
2024-09-25 20:43 ` Dale
2024-09-26 7:13 ` covici
2024-09-26 7:28 ` Dale
2024-09-26 8:56 ` Michael
2024-09-26 10:44 ` Dale
2024-09-26 11:16 ` Michael
2024-09-26 15:42 ` Dale
2024-09-26 17:54 ` [gentoo-user] " Grant Edwards
2024-09-26 17:58 ` Grant Edwards
2024-09-26 20:20 ` Dale
2024-09-26 20:42 ` Grant Edwards
2024-09-26 21:03 ` Grant Edwards
2024-09-27 0:19 ` Dale
2024-09-26 21:11 ` Dale
2024-09-26 21:22 ` Grant Edwards
2024-09-27 0:08 ` Dale
2024-09-27 2:40 ` Grant Edwards [this message]
2024-09-27 4:47 ` Dale
2024-09-27 13:47 ` Grant Edwards
2024-09-27 14:11 ` Dale
2024-09-27 14:48 ` Grant Edwards
2024-09-27 15:33 ` Dale
2024-09-27 16:00 ` Grant Edwards
2024-09-27 16:28 ` Dale
2024-09-27 16:53 ` Michael
2024-09-27 10:31 ` Michael
2024-09-27 12:11 ` Dale
2024-09-27 13:06 ` Michael
2024-09-27 14:13 ` Dale
2024-09-26 12:47 ` Grant Edwards
2024-09-26 15:18 ` Dale
2024-09-26 13:42 ` [gentoo-user] " Frank Steinmetzger
2024-09-27 15:51 ` Dale
2024-09-27 16:49 ` John Blinka
2024-09-26 11:49 ` covici
2024-09-26 12:49 ` [gentoo-user] " Grant Edwards
2024-09-26 16:09 ` [gentoo-user] " Matt Connell
2024-09-27 15:58 ` Dale
2024-09-26 9:03 ` Wolfgang Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='vd55u5$11mq$1@ciao.gmane.io' \
--to=grant.b.edwards@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox