Solved

Postfix Autoforward

Posted on 2014-03-16
8
445 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: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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

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é.
Resolve DNS query failed errors for Exchange
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

791 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