#1  
Old 13th January 2006, 15:22
jfer jfer is offline
Junior Member
 
Join Date: Oct 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix forward/redirect?

how can I configure postfix to forward/redirect all incoming emails to another mail server (mail.domain.com).
Reply With Quote
Sponsored Links
  #2  
Old 13th January 2006, 23:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,736 Times in 2,571 Posts
Default

You can use Transports. Put the following line into /etc/postfix/main.cf:

Code:
transport_maps = hash:/etc/postfix/transport
Into /etc/postfix/transport, you put
Code:
* smtp:<destination mailserver>
Then run
Code:
postmap /etc/postfix/transport
/etc/init.d/postfix restart
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 12th August 2007, 14:12
ProServ-uk.com ProServ-uk.com is offline
Member
 
Join Date: Aug 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi im kinda new to postfix my self so just want to double check were you add >>>>> transport_maps = hash:/etc/postfix/transport




Regards rickie
Reply With Quote
  #4  
Old 12th August 2007, 15:32
soroccoheaven soroccoheaven is offline
Member
 
Join Date: Aug 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ProServ-uk.com
Hi im kinda new to postfix my self so just want to double check were you add >>>>> transport_maps = hash:/etc/postfix/transport




Regards rickie

In /etc/postfix/main.cf
Reply With Quote
  #5  
Old 12th August 2007, 16:03
ProServ-uk.com ProServ-uk.com is offline
Member
 
Join Date: Aug 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry asbout the last post i actually meant is there a specific place in the main.cf file it should be placed, like the top of the file the bottom...


Regards rickie
Reply With Quote
  #6  
Old 13th August 2007, 19:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,736 Times in 2,571 Posts
Default

Quote:
Originally Posted by ProServ-uk.com
sorry asbout the last post i actually meant is there a specific place in the main.cf file it should be placed, like the top of the file the bottom...
That doesn't matter at all. You can place all settings wherever you like in main.cf.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 13th August 2007, 19:36
ProServ-uk.com ProServ-uk.com is offline
Member
 
Join Date: Aug 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you falko for the reply
Reply With Quote
  #8  
Old 27th November 2007, 18:03
ikiini ikiini is offline
Junior Member
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hye I'm new to postfix and need to accomplish the same effect as above ( I need all emails coming to a certain domain to be forwarded to a single use under another domain.) so what I did, I added the domain to the transport table and the transport to the appropriate server. My problem is I am not clear on how I am to retrieve the mail sent to that domain. How does the mail know what user to go to? or how do I dictate what user all mail coming to domain blabla.com should go to on blabla2.com?

-B
Reply With Quote
  #9  
Old 28th November 2007, 16:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,736 Times in 2,571 Posts
Default

Take a look at
Code:
man 5 transport
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 11th December 2007, 09:00
tardomatic tardomatic is offline
Junior Member
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Relayhost

You can also use:

relayhost = smtp.server.com

in main.cf to forward all external mail to a smart host
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix mail is held in queue indefinitely... squallbsr Server Operation 9 15th January 2006 19:13
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 15:20
please help: postfix design and configuration jaguar Installation/Configuration 1 9th December 2005 11:46
postfix problem flourishing General 1 7th December 2005 17:39
Removed PostFix, Now MySql Problems!!! sapient Installation/Configuration 10 24th October 2005 07:11


All times are GMT +2. The time now is 09:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.