Choose relayhost based on the postfix smtpd instance

Posted by Zizzencs on Server Fault See other posts from Server Fault or by Zizzencs
Published on 2010-02-25T17:38:54Z Indexed on 2010/04/22 20:03 UTC
Read the original article Hit count: 230

Filed under:
|
|

I'd like to setup a postfix host (using RHEL 5.4's default postfix, which is version 2.3) with the following characteristics:

  • an SMTP listener listens on 10.0.0.1:25 and relays all e-mails to 10.0.0.1:2525
  • an SMTP listener listens on 10.0.0.1:2525 and relays all e-mails to 10.0.0.2:25

Basically the challenge here is to use two different relayhosts for the different SMTP listeners.

Is it possible? Is there a better solution to achieve similar behavior?

© Server Fault or respective owner

Related posts about postfix

Related posts about smtp-relay