Solved

Postfix Autoforward

Posted on 2014-03-16
8
447 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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Anyway that I can check IP addresses of devices connected to exchange?? 8 59
expand ext4 on centos 6 5 54
list of sudo access for date range 5 35
rsyslog raw message 4 37
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

733 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