Solved

Postfix Autoforward

Posted on 2014-03-16
8
451 Views
Last Modified: 2014-03-16
Hi all,

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

does anyone know how to do this ?

Terry
0
Comment
Question by:ncomper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 11

Expert Comment

by:Gregory Miller
ID: 39933067
0
 
LVL 5

Author Comment

by:ncomper
ID: 39933068
individual ones, I have seen that link but do not have virtual mail server installed do I need to do this ?
0
 
LVL 11

Expert Comment

by:Gregory Miller
ID: 39933073
What OS are you using and what version of Postfix? Also, is the email address forwarding to, external or internal to the server?
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 5

Author Comment

by:ncomper
ID: 39933077
Ubuntu 12.04 and postfix 2.9.6 :)
0
 
LVL 11

Accepted Solution

by:
Gregory Miller earned 500 total points
ID: 39933083
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
 
LVL 5

Author Comment

by:ncomper
ID: 39933095
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
 
LVL 5

Author Comment

by:ncomper
ID: 39933134
.forward file worked a charm ;)
0
 
LVL 11

Expert Comment

by:Gregory Miller
ID: 39933207
.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

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question