The msmtp tarball includes a script that can be used to handle rewriting aliases for local mail. It could be installed when installing msmtp by including two lines in the ebuild; one line changes the default location of the aliases file from "/etc/aliases" to "/etc/mail/aliases" to match the default Gentoo location and the second line adds the script to the files already installed in /usr/share/msmtp. Reproducible: Always
Created attachment 258185 [details, diff] This attachment is a patch to the ebuild that takes care of the enhancement.
Added to msmtp-1.4.23 that was just added to CVS.