Grant Edwards wrote:
> On 2024-09-27, Dale <rdalek1...@gmail.com> wrote:
>
>> OK.  I added that line to the config file.  Then it gives me this error. 
>>
>>
>> root@Gentoo-1 / # echo foo | msmtp -v bogus
>> msmtp: /etc/msmtprc: line 5: unknown command alias
>> root@Gentoo-1 / #
> Sorry, my bad.  It's aliases not alias:
>
> $ man msmtp | grep alias
>                      Note  that  hdrs  is accepted as an alias for headers to 
> be compatible
>               --aliases=[file]
>                      Set or unset an aliases file. See the aliases command.
>        aliases [file]
>               Replace local recipients with addresses in the  aliases  file.  
>  The  aliases
>               cal address is not found in the aliases file.  If no default 
> alias is  found,
>               Note that alias expansion only affects the mail envelope. The 
> To and Cc head‐
>               An  empty  argument  to the aliases command disables the 
> replacement of local
>        # Example aliases file
>
> You do know about the msmtp man page, right?
>

Well, if copying someone's known working config file doesn't work right,
I'm not sure a man page is going to help much.  That said, I changed the
alias line and then got a error about the account info.  I commented it
out too.  When I did that, I got this with your test command. 



root@Gentoo-1 / # echo foo | msmtp -v bogus
loaded system configuration file /etc/msmtprc
ignoring user configuration file /root/.msmtprc: No such file or directory
falling back to default account
using account default from /etc/msmtprc
host = smtp.gmail.com
port = 465
source ip = (not set)
proxy host = (not set)
proxy port = 0
socket = (not set)
timeout = off
protocol = smtp
domain = localhost
auth = choose
user = rdalek1967<at>gmail.com
password = *
passwordeval = (not set)
ntlmdomain = (not set)
tls = on
tls_starttls = off
tls_trust_file = system
tls_crl_file = (not set)
tls_fingerprint = (not set)
tls_key_file = (not set)
tls_cert_file = (not set)
tls_certcheck = off
tls_min_dh_prime_bits = (not set)
tls_priorities = (not set)
tls_host_override = (not set)
auto_from = off
maildomain = gmail.org
from = rdalek1967<at>gmail.com
from_full_name = (not set)
allow_from_override = on
set_from_header = auto
set_date_header = auto
remove_bcc_headers = on
undisclosed_recipients = off
dsn_notify = (not set)
dsn_return = (not set)
logfile = (not set)
logfile_time_format = (not set)
syslog = LOG_USER
aliases = /etc/mail/aliases
reading recipients from the command line
TLS session parameters:
    (TLS1.3)-(ECDHE-X25519)-(ECDSA-SECP256R1-SHA256)-(AES-256-GCM)
TLS certificate information:
    Subject:
        CN=smtp.gmail.com
    Issuer:
        C=US,O=Google Trust Services,CN=WR2
    Validity:
        Activation time: Mon 26 Aug 2024 02:12:09 AM CDT
        Expiration time: Mon 18 Nov 2024 01:12:08 AM CST
    Fingerprints:
        SHA256:
01:AF:90:6E:FC:06:5C:B5:5D:B9:55:AB:27:07:B0:E7:8C:4F:EA:46:70:67:86:A9:E0:F1:BB:F7:5A:2E:1B:64
        SHA1 (deprecated):
F2:B7:9C:3C:4C:FD:57:31:37:BB:8D:F6:DD:F7:FB:A2:D7:09:B2:BD
<-- 220 smtp.gmail.com ESMTP 46e09a7af769-714fb6dfaafsm583235a34.76 - gsmtp
--> EHLO localhost
<-- 250-smtp.gmail.com at your service, [45.203.21.14]
<-- 250-SIZE 35882577
<-- 250-8BITMIME
<-- 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
<-- 250-ENHANCEDSTATUSCODES
<-- 250-PIPELINING
<-- 250-CHUNKING
<-- 250 SMTPUTF8
--> AUTH PLAIN AHJkYWxlazE5NjdAZ21haWwuY29tAGZjcGQgaGJqbSBmZ2ZnIGpscW0=
<-- 235 2.7.0 Accepted
--> MAIL FROM:<rdalek1967<at>gmail.com>
--> RCPT TO:<bogus>
--> DATA
<-- 250 2.1.0 OK 46e09a7af769-714fb6dfaafsm583235a34.76 - gsmtp
<-- 553-5.1.3 The recipient address <bogus> is not a valid RFC 5321
address. For
<-- 553-5.1.3 more information, go to
<-- 553-5.1.3  https://support.google.com/a/answer/3221692 and review
RFC 5321
<-- 553 5.1.3 specifications. 46e09a7af769-714fb6dfaafsm583235a34.76 - gsmtp
msmtp: recipient address bogus not accepted by the server
msmtp: server message: 553-5.1.3 The recipient address <bogus> is not a
valid RFC 5321 address. For
msmtp: server message: 553-5.1.3 more information, go to
msmtp: server message: 553-5.1.3 
https://support.google.com/a/answer/3221692 and review RFC 5321
msmtp: server message: 553 5.1.3 specifications.
46e09a7af769-714fb6dfaafsm583235a34.76 - gsmtp
msmtp: could not send mail (account default from /etc/msmtprc)
root@Gentoo-1 / #


Now things may be working better.  So, I restarted smartd and guess
what, I got emails from smart about my hard drives.  I have nine hard
drives.  I got a email for each one.  Can I get a YEPPIE!!!!

I think the original problem was having the account line.  I got a error
about default already being set with your test command, not sure where
that was and it didn't say.  So, I commented out the account line and
that is when it started working. 

So, it works again.  Now if I change email providers, I get to do this
again.  Hopefully changing some bits will make it work. 

Thanks for the help.  We beat it into submission.  ROFL 

Dale

:-)  :-) 

P. S.  About to rain.  Can't mow grass.  :-( 

Reply via email to