Web Hosting Talk







View Full Version : Forward email with postfix


Kaesar
12-04-2002, 09:35 AM
Hello , i would like forward email received in one of my emails account to another external account , but i dont know how i can do this with my postfix email server.


for example , i have xxxx@mydomain.com , and i want redirect all the mail received in xxxx@mydomain.com to my personal mail xxxx@myISPdomain.com

i have postfix MTA running on my box managing all the @mydomain.com mail




thanks a lot !!!

MarkIL
12-04-2002, 01:14 PM
If Postfix is configured to honor .forward files, simply do

echo "yourname@yourispemail.com" >> ~/.forward

or add an alias for it in the Postfix aliases file (with the quotes):

"yourname@domain.com":yourname@yourispemail.com

The file is usually /etc/aliases -- check your config, though.

Kaesar
12-04-2002, 05:59 PM
thank you !!


the aliases file is in /etc/postfix/aliases

i add "yourname@domain.com":yourname@yourispemail.com
but it dont run , then i add: username:anotheruser@miISP.com

and run perfect :)


thanks!