Tech notes

Daily notes about my IT activities.

2014-05-15

postfix: set custom "from" address

by hackprime

#!bash
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