LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-07-2011, 02:45 PM   #1
tedy
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
postfix server with diferent relayhost


Hi

Im searching how to configure inside my postfix server for filter different subdomains using more than one relayhost. In my case I have 4 subdomains and I need to create other "test.mydomain.com" appointing to a new relayhost. This is a internal process to change the antispam appliance.

Any idea of how to make this?

Thanks
 
Old 03-08-2011, 05:22 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780
Postfix is a wonderfully configurable MTA. Your goal, however, may be a little non-standard. Consequently, it may take some tinkering to get it correct. Having said that, I think you should be able to use virtual transport and alias mapping to direct your sub domains to the desired hosts.

The first place to look would be the Postfix documentation pages. They are extensive with examples of a lot of different setups. Here is a link. At first glance, the virtual_alias_domains sounds like it might be close to the mark as it mention mapping addresses to joe@somewhere and jane@somewhere-else.
 
Old 03-09-2011, 06:00 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.0
Posts: 1,336

Rep: Reputation: 255Reputation: 255Reputation: 255
I'm not really sure about your setup - you want to add a 5th virtual domain and forward this to another machine?

Having different relayhosts for different domains is usually specified in the transport table (man transport).
 
  


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
[SOLVED] Postfix with smarthost/relayhost on Ubuntu server 10.04 felixtheratruns Linux - Server 4 11-26-2010 08:03 PM
[SOLVED] Postfix relayhost not working, if domain hosted on same server, but MX points outside katru Linux - Server 2 06-23-2010 07:25 PM
postfix - relayhost configuration problem kalinic Ubuntu 20 03-02-2009 04:36 AM
Postfix relayhost or direct deliver john.dixon Linux - Server 2 10-30-2008 09:44 AM
postfix relayhost gabsik Linux - Networking 1 02-08-2007 03:51 AM

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

All times are GMT -5. The time now is 04:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration