Relay multiple domains to multiple servers

twieren
2013-09-05
2013-09-06
  • twieren

    twieren - 2013-09-05

    Hello,

    I am experimenting with postfix at the moment, i want to relay mail to specific servers. For example:

    @domain1.com -> mail01.domain1.com
    @domain2.de -> mail01.domain2.de
    etc.

    How can i configure this? I cant seem to find the solution.....

    Kind regards, Timo

     
  • Simon Hobson

    Simon Hobson - 2013-09-06

    First off, are you using Postfix Admin, or just Postfix ? This is the support forum for Postfix Admin - a tool for managing virtual domains/mailboxes using a web GUI and MySQL tables to drive Postfix.
    For Postfix support you would be better popping over to postfix.org where you'll find the Postfix support resources.

    However, what you want to do is fairly easy - you need to look into transport maps. I've only done it by extending Postfix Admin as I already use it for managing virtual domains & mailboxes - and I wrote it up in the Wiki https://sourceforge.net/apps/mediawiki/postfixadmin/index.php?title=Relay_Domains

    From memory you need to create a transport map that essentially contains destination-domain -> transport pairs. Each transport will be of the form relay:[destination-server] - the "[..]" tells Postfix not to do an MX lookup but to use the value directly. As I say, that's just from memory and it's a while since I last looked at it.

     

Log in to post a comment.