Split domain email via two different SMTP servers

I currently use Google Apps for Business for one of my domains. I'd like to keep using it for staff email addresses such as:

[email protected]

but I'd like to use my own SMTP / IMAP servers for company wide email addresses such as

[email protected]

[email protected]

does anyone know if this is possible at all?

3 Replies

In theory you can "sort" email with a SMTP Proxy server.

Might be easier just to use two domains.

[email protected]

[email protected]

You keep your outside face aligned with your branding, and use a internal/intranet domain for all the staff traffic.

Postfix will do it with a virtual alias and a transport map sending selected addresses to a second server.

virtualaliasmap:

[email protected]  [email protected]
[email protected] [email protected]

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:

[email protected]  [email protected]
[email protected] [email protected]

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. [email protected], [email protected].

Thanks for the information. I wish I had thought about this a bit more before I initially set up my email infrastructure. Using a sub-domain for staff email addresses would have made perfect sense.

I'll have to have a bit of a think regarding this since I already have personal email addresses configured and in use.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct