Closed avidseeker closed 1 month ago
For debugging purposes, you can use the following:
msmtpd --interface=::1 --port=12345 --command='cat; echo'
That will dump the mail (cat
) and the command line (echo
) to stdout whenusing msmtp like this:
msmtp --host=::1 --port=12345 --from test@example.com recipient@example.com < mail.txt
Saving a copy of a mail to a sent-mail
folder is the responsibility of the mail user agent, not msmtp.
Saving a copy of a mail to a sent-mail folder is the responsibility of the mail user agent, not msmtp.
Using MUA works when I'm sending email through the MUA TUI, but not when sending email through CLI. Not all MUA support CLI usage (e.g: aerc).
$ weekly_mail_cronjob | msmtp mailing@list.org # I want a copy of that in my +Sent
It might be preferable to preview the message sent to the server verbatim. E.g: check for headers, X-Mailer, look for IP leaks, etc. Having a
--dry
option to do that would also solve the commonly requested feature which is saving sent mail to a directory. (Just websearch the keywords "msmtp save to sent". Here's a SE question.)E.g: