Hello "techie...",
If you are saying that you want to forward all mail that arrives for one particular account to another then try the following..
This is how I set mine up yesterday coincidentally using sendmail at least.. (This method lets you preserve the mail header info....)
Let's assume that the original account receiving the mail is A and the account receiving the forwarded mail B
(On my system - Centos 6.5 /home/xxxx is the user's mail directory)
Remember to substitute all occurrences A and B with the user accounts!!
1. cd /home
2. chmod 700 A
3. chmod 700 B
4. cd A
5. touch 644 .forward
6. chown A .forward
7. chgrp mail .forward
8. echo "\B, A" > .forward i.e if the user account you wish to forward the mail to is a local account simply enter the username i.e echo "\john, A" > .forward
If the user account you wish to forward the mail to is not a local account simply enter something along the lines of echo "\john@external_domain.com, A" > .forward
Hope this is what you are after....
Regards,
Rich
|