LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-19-2010, 06:52 AM   #1
ormey2000
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
postfix smtp relay


Hi

I want to run a DMZ postifx smtp relay that will collect and relay several domains, this I can do.

But is it possible to then relay each domain to a different server ?

If so how ? and what set up is needed.

Thanks in advance
 
Old 01-19-2010, 07:04 AM   #2
Dave_Devnull
Member
 
Registered: May 2009
Posts: 142

Rep: Reputation: 24
It's possible to set Postfix up as a gateway/relay device accepting mail for multiple domains and relaying them to the final destination server(s). These can be set up in a simple .db map or by using mysql/postgres or even ldap.

You have a bit of learning curve. Start here: http://www.postfix.org/postconf.5.html#relayhost
 
Old 01-19-2010, 07:24 AM   #3
ormey2000
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
OK so would

in /etc/postfix/transport :
domain1.com :[test.relay.com]
domain2.com :[test2.relay.com]

and in main.cf:
relayhost=
(nothing in relayhost)
transport_map = hash:/etc/postfix/transport

this is to tell postfix that :
all mail domain1.com to is relayed to the server test.relay.com

and all domain2.com mail to is relayed to test2.relay.com....

would that be correct ?
 
  


Reply



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
[SOLVED] Postfix SMTP relay via ISP problem wisperer Linux - Server 4 11-29-2009 07:50 AM
Postfix as SMTP relay to exchange help GGlinux Linux - Server 6 07-29-2009 09:10 PM
Postfix SMTP 554 -- how do I relay mail? fultron Linux - Software 1 01-28-2009 04:01 PM
Postfix smtp relay issue aaf Linux - Software 3 11-22-2006 01:34 PM
sasl/postfix smtp relay problems 5teve-o Red Hat 0 04-02-2005 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:47 PM.

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
Open Source Consulting | Domain Registration