Solved

Postfix Autoforward

Posted on 2014-03-16
8
435 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
  • 4
  • 4
8 Comments
 
LVL 11

Expert Comment

by:Technodweeb
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:Technodweeb
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
 
LVL 5

Author Comment

by:ncomper
ID: 39933077
Ubuntu 12.04 and postfix 2.9.6 :)
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 11

Accepted Solution

by:
Technodweeb 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:Technodweeb
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now