Koozali.org: home of the SME Server

Forward emails to unknown users to an another server

Offline Victor2010

  • 2
  • +0/-0
Forward emails to unknown users to an another server
« on: September 19, 2010, 06:04:25 AM »
Somebody please help me with sending emails to unknown users to a second server.

Currently we are in the process of deploying Exchange in our organization. I am trying to have few email accounts on SME server and few on Exchange server with the same Domain because of licensing limitations.
I would like to receive all emails on SME server and if the user is unknown deliver that email to exchange server over a SNMP connection.
Both servers will send emails to public internet via a smart host.

Thanks in advance
« Last Edit: September 19, 2010, 06:32:38 AM by Victor2010 »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Forward emails to unknown users to an another server
« Reply #1 on: September 19, 2010, 12:28:44 PM »
Victor2010

Quote
I would like to receive all emails on SME server and if the user is unknown deliver that email to exchange server over a SNMP connection.

This is how you do it for different domains, which is probably your easiest solution.
Can the users on the Exchange server use a different domain to receive email ?
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Internal_Mail_Servers

Alternatively you could setup all users on sme (for the same domain), and then forward mail for certain users to another domain mail server that is the Exchange server.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Victor2010

  • 2
  • +0/-0
Re: Forward emails to unknown users to an another server
« Reply #2 on: September 20, 2010, 04:17:35 AM »
Thanks for the reply.

"Can the users on the Exchange server use a different domain to receive email "

I should be able to use .local domain as exchange domain. Exchange automatically creates this account anyway.

Would it be possible for me to forward all emails to unknown users to Exchange server if yes to migrate users from SME to Exchange I can just delete the account on SME and create it on Exchange server.

Thanks

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Forward emails to unknown users to an another server
« Reply #3 on: September 20, 2010, 03:41:34 PM »
SME does not support split domains the way Exchange does.

There was another thread asking about this last spring; here are my comments on that thread: http://forums.contribs.org/index.php/topic,46060.msg225263.html#msg225263

If you have the hardware, it may be easier to setup two sme servers -- one as firewall that forwards *all* email to the Exchange server, and another to host all of the non-Exchange email accounts. Or, if your SME is already "server-only", then just deliver all email to the Exchange server and configure that to deliver email for unrecognized recipients to the SME server. 

Basically, in this configuration, the SME server hosting mailboxes cannot be used as a SPAM filter for the Exchange server: if SME is configured to accept email for your domain it won't forward to Exchange, and if it's configured to forward to Exchange it will keep doing that even when the email is sent back from Exchange to SME.

Beware of email delivery loops - with a split domain the first mail server must accept email addressed to anyone.  What happens if the second mail server refuses to accept the message?