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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forwarding mail 1

Status
Not open for further replies.

TonyGroves

Programmer
Aug 13, 2003
2,389
IE
I want to have all mail for "root" forwarded to "tony", and also have any mail for "tony" copied to an external address, so in /etc/aliases I have (inter alia):
[tt]
postmaster: root
root: tony
[/tt]
and in ~tony/.forward I have:
[tt]
tony
otheraddress@otherdomain.com
[/tt]
Now, mail for "root" does get forwarded correctly to "tony", and mail addressed directly to "tony" does get copied correctly to "otheraddress@otherdomain.com", but unfortunately mail for "root" does not get copied to "otheraddress@otherdomain.com". I have played around with various settings in those two files, but have not been able to get things working as desired. I don't use procmail, but there is a mailbox-delivery script which could be edited to suit, but I'd prefer to avoid that if possible. I'm running Postfix 2.1.5 on Debian 3.1.

Any ideas, anybody?

Thanks a lot.
 
I don't know if this is "working as designed"; that's entirely possible.

What would work is to put otheraddress in /etc/aliases:

root: tony, otheraddress@otherdomain.com
 
Thanks for that idea. I made a slight change to it; /etc/aliases now has:
[tt]
root: tony
tony: tony, otheraddress@otherdomain.com
[/tt]
which works, and makes ~/.forward redundant.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top