Grant Edwards wrote:
> On 2024-09-26, Grant Edwards <grant.b.edwa...@gmail.com> wrote:
>
>> I just did a quick test, and sending via smtp.gmail.com using an app
>> password worked fine from mutt.  I don't have msmtp set up at the
>> moment.
> Ijust set up msmtp and it works too. Below is the msmtp config,
>
>  * If you want, replace "account gmail" with "account default", then
>    you don't have to supply the "-a gmail" option to msmtp.
>
>  * replace (in two places) usern...@gmail.com with your email address.
>
>  * replace XXXX XXXX XXXX XXXX with your app password.
>
> -----------------------------------8<-------------------------------------
> syslog LOG_MAIL
>
> account       gmail
> maildomain gmail.org
> syslog on
> from gmailusern...@gmail.com
> host smtp.gmail.com
> port 465
> tls on
> tls_certcheck off
> tls_starttls off
> auth on
> user gmailusern...@gmail.com
> password "XXXX XXXX XXXX XXXX"
> -----------------------------------8<-------------------------------------
>
>
>


Sorry.  Somehow I missed this reply.  I copy and pasted yours and
changed the needed bits.  I put spaces in the password like you showed. 
I assume it needs those.  I also changed gmail to default for account. 
When I start smartd, it adds this to messages. 


Sep 26 19:13:47 Gentoo-1 smartd[21480]: Executing test of <mail> to root ...
Sep 26 19:13:47 Gentoo-1 smartd[21480]: Test of <mail> to root produced
unexpected output (65 bytes) to STDOUT/STDERR:
Sep 26 19:13:47 Gentoo-1 smartd[21480]: mail: cannot send message:
Process exited with a non-zero status
Sep 26 19:13:47 Gentoo-1 smartd[21480]: Test of <mail> to root: failed
(32-bit/8-bit exit status: 256/1)


Based on what you posted that works for you, I think there may be a
problem elsewhere.  Maybe I have something somewhere else set wrong and
don't know it, maybe even a silly typo.  If that config you posted works
for you, I see no reason it shouldn't work here unless you pay for
something extra.  Other than that, I suspect smtp is set up right but
something else isn't.  Should we look elsewhere?  Any idea where?  Could
it be smart itself that is set up wrong?  Sending wrong thing to smtp? 

Thanks for the help. 

Dale

:-)  :-) 

Reply via email to