=> nerds only A blog on rails, php, computing, my bass guitar and stuff

msmtp and the aliases file (/etc/aliases)

on in Linux

Since version 1.4.25 msmtp has support for a aliases file. I edited my ~/.msmtprc and added:

aliases ~/.aliases
root:           myemail@mydomain.tld

Only ~/.aliases didn’t get expanded to the full path:

Other than that, it worked perfectly! Now I can send e-mails to root and have them delivered to my personal e-mailaddress.