I’m looking for a simple sendmail replacement to receive local mail, such as from cron and service failures and forward it to on to a real SMTP server.
I have used msmtpd
successfully but thought I’d ask if folks have other solutions they like.
I’m looking for a simple sendmail replacement to receive local mail, such as from cron and service failures and forward it to on to a real SMTP server.
I have used msmtpd
successfully but thought I’d ask if folks have other solutions they like.
@atzanteol @[email protected]
ssmtp is unmaintained.
msmtp is the recommended successor. The Arch wiki recommends also considering OpenSMTPD, which I haven’t looked at yet.
https://wiki.archlinux.org/title/SSMTP
@atzanteol
Looks like to setup OpenSMTP as a relay, you are recommended to use
procmail
, which is itself unmaintained.https://wiki.archlinux.org/title/OpenSMTPD
Still msmtp lacks one feature that I had to workaround: It wasn’t properly handling cron mail that was generated to a bare address like
root
ortest
. I solved that by writing an sendmail wrapper which rewrites the input just before it’s handled to msmtp.https://github.com/marlam/msmtp/issues/98
https://github.com/chriswayg/ansible-msmtp-mailer/issues/14
I just started using OpenSMTPD as a backup relay and it seems to work for that. Very lightweight and easy to set up.
Ah, thanks