Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Postfix Autoforward

Posted on 2014-03-16
8
Medium Priority
?
462 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
More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

 
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 2000 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

Quick Start: DOCKER

Sometimes you just need a Quick Start on a topic in order to begin using it.. this is just what you need to know to get up and running with Docker!

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

721 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