Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Wietse Venema (wietseporcupine.org)
Date: Fri Mar 13 2009 - 16:51:08 CDT
> I have two IP addresses on my server and would like to serve a different SSL (TLS) certificate for each one. I think all the other configuration will not need to differ between the two, so I think running multiple instances of postfix would be overkill (?).
> I want to confirm that it would be possible/viable/advisable to simply create two smtpd processes in master.cf:
> 220.127.116.11:smtp inet n - n - - smtpd
> -o myhostname=mail.domainA.com
> -o mydomain=domainA.com
> -o smtpd_tls_cert_file=/etc/postfix/domainA.crt
> -o smtpd_tls_key_file=/etc/postfix/domainA.key
> 18.104.22.168:smtp inet n - n - - smtpd
> -o myhostname=mail.domainB.com
> -o mydomain=domainB.com
> -o smtpd_tls_cert_file=/etc/postfix/domainB.crt
> -o smtpd_tls_key_file=/etc/postfix/domainB.key
The rest of Postfix needs to know where it should deliver mail for
mail.domainB.com, domainB.com, mail.domainA.com, and domainA.com.
Otherwise, the Postfix SMTP server will reject mail with "relay
access denied", and the Postfix SMTP client will reject mail with
that "mail loops back to myself".
Note that the Postfix SMTP server does not make all decisions by
itself. It relies on the trivial-rewrite service to decide how
a domain should be handled.
There is no official support for multiple domain personalities.