LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2010, 10:24 AM   #1
williebens
Member
 
Registered: Jan 2008
Posts: 88

Rep: Reputation: 16
tell postfix to forward emails


Hello Forum:

I am trying to find a way to tell postfix to forward all emails from

dbsupport@thisdomain.com
and
helpdesk@thisdomain.com

to

be sent to admins@thatdomain.com, but it is not working.

I am trying transport maps. The content of my transport file is:

Quote:
helpdesk@thisdomain.com smtp:admins@thatdomain.com
Quote:
dbsupport@thisdomain.com smtp:admins@thatdomain.com

Both helpdesk@thisdomain.com and dbsupport@thisdomain.com are on box1 as an alias in the /etc/alias file like this:

root: helpdesk@thisdomain.com
root: dbsupport@thisdomain.com

Can someone please guide me on how to get this working?

Thanks.
--Willie
 
Old 12-29-2010, 05:18 PM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
I think what you are after is called "virtual alias" and you are on the right track when you said that these are alias in your /etc/alias file. The problem is that you need to have a directive in Postfix's main.cf to tell it to use an alias map. You first create the alias map which is just a left-hand right-hand email address list, run postmap against the list, and then restart postifx.

Here is a link that gives some examples of setting this up for various scenarios that I think will show you how to accomplish this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forward port 25 to another IP to send emails dEM0nsTAr Linux - Server 2 11-03-2009 05:02 PM
Forward Emails ccarminati Linux - Server 3 07-31-2008 10:29 AM
Exim: forward sent emails to Gmail mrtwice Linux - Software 0 09-08-2007 05:17 PM
Forward emails to several local users hypernetics Linux - Software 0 11-04-2004 06:25 AM
forward emails in sendmail turbo_acura Linux - Networking 1 10-06-2004 09:52 AM


All times are GMT -5. The time now is 06:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration