On 16/09/2022 11:07, Mark Rogers wrote:
On Thu, 15 Sept 2022 at 14:19, Phil Ashby phil.alug@ashbysoft.com wrote:
I would opt for msmtp-mta (standard package) which fakes sendmail: https://packages.debian.org/bullseye/msmtp-mta
Interesting: that's what I have on the server that's causing me problems and prompted the question!
It prompted me to dig deeper. My issues were down to apparmor not allowing access to /etc/msmtp.aliases (I changed the config to look for /etc/aliases and that problem was fixed).
One thing it doesn't give me is a minimal mail client (all I ever use it for is testing that mail is working but that's obviously a useful test!) I know I can use msmtp but expects (unless I am missing something) a fully formed email with headers to be piped to it, rather than building one from user input the way "mail" does.
Glad you found the apparmor issue - they do make a lot of assumptions writing those rules..
I use mutt on my server for command line mail, the package suggests mail-transport-agent (as provided by msmtp-mta), but doesn't hard depend on anything transport related.
P