Comment on Recommendation for outgoing-only SMTP server
vegetaaaaaaa@lemmy.world 7 months agoYou can definitely replace senders with correct mail addresses for relaying through SMTP server that expect them (this is what I do):
# /etc/msmtprc account default ... # Replace local recipients with addresses in the aliases file aliases /etc/aliases
# /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: default www-data: root default: myaddress@gmail.com
markstos@lemmy.world 7 months ago
In the issue I linked, the msmtp author makes a distinction with changing the envelope recipient, which msmtp can do, with rewriting the email headers like “To”, which msmtp does not do.
vegetaaaaaaa@lemmy.world 7 months ago
Oh I didn’t know that, good to know!
The proposed one-line wrapper looks like a nice solution