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?


Reply via email to