Hello,
I have a client that wants to have a dedicated smtp sending host. But they have 2 separate domains then that don't want to have share IP address. The reasons from this is long and drawn out.
Is it possible to setup postfix in a virtual host config, like apache for example, such that, domainA.com listens and sends on one IP address and domainB.com listens and sends on another address.
This host is simply a email forwarding host, so no user accounts are on the server, they have about 5 servers serving websites for 2 domains and subdomains and want email coming from a common source for both domains (this will be the relayhost for the web servers).
I have it setup to listen to 2 ip addresses but as of now I get:
220 smtp.domainA ESMTP Postfix
on both addresses. Is there a way to have one address show as:
220 smtp.domainA ESMTP Postfix
and the other:
220 smtp.domainB ESMTP Postfix
More importantly, email send via 1 should look like it came from that domain and email sent to the other look like it came from its domain.
I can find info on virtual domains, but its geared for receiving email for multiple domains.
Thanks, Rick
Rick Barnes wrote:
Hello,
I have a client that wants to have a dedicated smtp sending host. But they have 2 separate domains then that don't want to have share IP address. The reasons from this is long and drawn out.
try the postfix list first.
Karanbir Singh wrote:
Rick Barnes wrote:
Hello,
I have a client that wants to have a dedicated smtp sending host. But they have 2 separate domains then that don't want to have share IP address. The reasons from this is long and drawn out.
try the postfix list first.
Thanks will do.
Karanbir Singh wrote:
Rick Barnes wrote:
Hello,
I have a client that wants to have a dedicated smtp sending host. But they have 2 separate domains then that don't want to have share IP address. The reasons from this is long and drawn out.
try the postfix list first.
Another centos list member was of the opinion that since Centos comes with sendmail and postfix, we will therefore 'support' questions on these two software packages...or do we not?
Christopher Chan wrote:
Another centos list member was of the opinion that since Centos comes with sendmail and postfix, we will therefore 'support' questions on these two software packages...or do we not?
depends on the sort of questions, the first port of call for generic stuff like that really should be google and project docs and then the project support mechanism, and yes ofcourse the CentOS stuff as well.
Specially for packages that dont carry much distro specific patches, you are in most cases going to get a much better and lounder response in the projects own support mechanism. If not, it might be time to switch packages :D
go exim!
I have it setup to listen to 2 ip addresses but as of now I get:
220 smtp.domainA ESMTP Postfix
on both addresses. Is there a way to have one address show as:
220 smtp.domainA ESMTP Postfix
and the other:
220 smtp.domainB ESMTP Postfix
You can achieve that in master.cf.
IPA:smtp inet n - n - - smtpd -o mail_name=smtp.domainA IPB:smtp inet n - n - - smtpd -o mail_name=smtp.domainB
More importantly, email send via 1 should look like it came from that domain and email sent to the other look like it came from its domain.
You have to be a bit more clear on this. As an example, do you want userA uses YahooA via your server to have his YahooA address rewritten to his userA address and emails from userA must also leave your box via IPA?
Or do you want if userA sends mail via IPA with another domain's addy other than userA, reject?
Or do you want postfix to log domainA emails with smtp.domainA name and likewise domainB emails as smtp.domainB?