Postfix Autoforward

Hi all,

I need postfix to auto forward any email it gets to another email address,  

does anyone know how to do this ?

Terry
LVL 5
ncomperAsked:
Who is Participating?
 
Gregory MillerConnect With a Mentor General ManagerCommented:
in your user home directory, create a .forward file and add one line which will be the email address that you want the email to be sent to. Example is attached:
.forward.txt
0
 
Gregory MillerGeneral ManagerCommented:
0
 
ncomperAuthor Commented:
individual ones, I have seen that link but do not have virtual mail server installed do I need to do this ?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Gregory MillerGeneral ManagerCommented:
What OS are you using and what version of Postfix? Also, is the email address forwarding to, external or internal to the server?
0
 
ncomperAuthor Commented:
Ubuntu 12.04 and postfix 2.9.6 :)
0
 
ncomperAuthor Commented:
OK thanks im a bit of a dummy with this stuff.   So effectively I will do the above which is just dropping a  anything.foward text file which has the email I would like to forward onto i.e External@google.com   Do I need to stop and start any services for this to take effect ?  Does this include aliases I have setup....

Also I have an Alias entry in the /etc/aliases file which is

sshort: activecampaign

Which I think will mean that the username "Activecampaign" now has the alias sshort@domain.com

So the question is if an email is sent to sshort@domain.com should this now be forwarded onto   external@google.com ?
0
 
ncomperAuthor Commented:
.forward file worked a charm ;)
0
 
Gregory MillerGeneral ManagerCommented:
.forward file will affect any email that is destined to end up in the user mailbox associated with the home directory. This includes aliases, distros, etc.

Glad I could help...!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.