0

postfix: set custom «from» address

echo "smtp_generic_maps = hash:/etc/postfix/generic" >> /etc/postfix/main.cf
echo "root@localhost someuser@example.com" > /etc/postfix/generic
postmap /etc/postfix/generic
service postfix restart