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.
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- 10 Greatest Open Source Software Of 2009
- My 10 UNIX Command Line Mistakes
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email this to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: Sep/26/2006



{ 0 comments… add one now }