Hi i wanna know if someone can help me o tell me how can achieve to put diferents email server behind a simple static ipv4 address.
already have a email server behind pfsense, but for requirement in the work i have to put another email server for a side business(no a can't use the domain in the current email server, because of some policies with thirds parties).
anyone have put more that one email server behind a pfsense?
I can only think that you would have to be running a DNS server at your gateway with the proper MX records to route the incoming mail to the proper servers.
it hits the first server, and if its for a certain domain, it forwards to the next server.
As for accessing and downloading the email, you need to set your clients to use different ports, so you can map those ports differently behind NAT to different internal IPs.
On your LAN it will work fine because you'll be using private ip addresses available in that network. But it won't work for anyone outside your network because they can't do anything with a private ip address.
The only way I can think that it would work is by having two public IP addresses because both servers have to use the same ports. Otherwise there might be some kind of SMTP and IMAP proxy but I don't know of any off the top of my head.
thanks everybody smtp proxy seems to complicated :S for me in this moment, already i purchase another ipv4 address, i only have to do the nat for the pfsense i will comment on that later.