How to redirect one users mail to another user with postfix
Postfix is an open source mail transfer agent (MTA), for the routing and delivery of email.
It provides a method of redirect mail to another user for both local and remote users. You need to configure /etc/postfix/aliases (or use /etc/aliases) file. The aliases file (read as table) provides a system-wide mechanism to redirect mail for local recipients. The redirections are processed by the Postfix local delivery agent.
Normally, the aliases table is specified as a text file that serves as input to the postalias command. The result, an indexed file in dbm or db format, is used for fast lookup by the mail system. Execute the command newaliases in order to rebuild the indexed file after changing the Postfix alias database.
Open file /etc/postfix/aliases using vi text editor:
# vi /etc/postfix/aliases
Now add line as follows:
abuse: noc@isp.com, bob@isp.com, techgroup@isp.com, postmaster
Save and close file. The abuse name is the local address which be receiving the mail on the local machine. noc@isp.com is the email address on another domain to forward to (the value can be a username on the local machine or the email). This can be a single or multiple values separated by commas.
To redirect root email to tom user:
root: tom
Type newaliases command to build new database:
# newaliases
If you don't have admin access to mail server, use .forward file from your own home directory.
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in other helpful articles:
- Postfix mail server limit the mailbox size
- Postfix masquerading or changing outgoing SMTP email or mail address
- Postfix Illegal seek / queue file write mail server error and solution
- Quick Tip: Postfix Flush the Mail Queue
- Postfix mail server block .bat, .exe .com .vbs mime attachments - common virus spreading files
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!



Recent Comments
Yesterday ~ 1 Comment
Yesterday ~ 50 Comments
Yesterday ~ 3 Comments
07/22/2008 08:38 pm (2 days ago) ~ 10 Comments
07/22/2008 09:02 am (2 days ago) ~ 8 Comments