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.