Showing posts with label sendmail. Show all posts
Showing posts with label sendmail. Show all posts
Tuesday, December 29, 2015
How to rewrite outgoing email address in sendmail
We can edit the file below to rewrite outgoing email address.
/etc/mail/genericstable
Add the line below
youraccount [email protected]
regenerate the hash file
makemap -r hash genericstable.db < genericstable
You can also edit /etc/mail/aliases for local accout
Alias to your alias account
youraccount youaliasaccount
Or alias to your device
youraccount /dev/yourdevice
Remeber use newaliases to update the hash file
Subscribe to:
Posts (Atom)