Postfix¶
Masquerade Domain¶
masquerade_domains = foo.example.com
Rewrite an email address¶
/etc/postfix/main.cf
relocated_maps = hash:/etc/postfix/relocated
/etc/postfix/relocated
username@example.com otheruser@elsewhere.tld
Delete all mails in queue¶
for i in `mailq|grep '@' |awk {'print $1'}|grep -v '@'`; do postsuper -d $i ; done