Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reroute user email?

Status
Not open for further replies.

Mibble

IS-IT--Management
Sep 9, 2004
28
US
how do i reroute a user email to another user?
wanting to disable the ex-employee from receiving / logging into the server and reroute their email elsewhere.
 
You could user the virtusertable to do this. Just enter a line similar to this:

user@old-address.com sameuser@new-address.com

If you do not have one already, it is a simple text file. However, you will need to build the database file that sendmail uses. To do this, just execute the following command:

makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable

You may have to change the path to whatever your system uses.



 
I should also mention that if you nolonger want this user to be able to login to your system, you can change his shell to /sbin/nologin. This is the norm for mail only users who need no login to the system. You can also give these users /dev/null as their home directory so it doesn't take up space on your server.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top