Split domain email via two different SMTP servers
but I'd like to use my own SMTP / IMAP servers for company wide email addresses such as
does anyone know if this is possible at all?
3 Replies
Might be easier just to use two domains.
You keep your outside face aligned with your branding, and use a internal/intranet domain for all the staff traffic.
virtualaliasmap:
sales@domain.com sales@server2.domain.com
support@domain.com support@server2.domain.com
transport_map:
server2.domain.com smtp:server2
Alternatively you could use simple aliasing which would work in postfix and sendmail to send the mail to server2:
/etc/aliases:
sales@domain.com sales@server2.domain.com
support@domain.com support@server2.domain.com
Either way you can't tell the world to send mail to different servers based on username alone. The mail has to go to one server where some of it is filtered and resent.
If at all possible don't do this. Do as vonskippy's suggests and use two domains. It makes the configuration so much simpler and complexity causes failures. One domain could be a subdomain of the other. E.g.
I'll have to have a bit of a think regarding this since I already have personal email addresses configured and in use.