Koozali.org: home of the SME Server

Email Question

seabro

Email Question
« on: April 13, 2006, 11:29:44 AM »
Hi,

I have a MS Exchange Server for Company A.  It it listening on port 25 at our static IP address in the office.

I want an SME server for Company B at the same location.


How could email be setup?  Could one possibly tell SME server to receive ALL the email and forward on to the exchange server all email for Company A while processing all mail for company B itself?

How would you tackle this. (And dont tell me to lose the exchange server!)

thanks
seabro

Offline MSmith

  • *
  • 675
  • +0/-0
Email Question
« Reply #1 on: April 15, 2006, 04:26:22 PM »
The only way I can think of to do exactly what you are asking is have the SME server handle both company's emails, then set your POP3 Connector for Exchange to download Company A's emails from the SME mailboxes.  This will require you to keep usernames updated on both machines, but what the heck.  The nice thing about this approach is that the email stream will be cleansed of spam & viruses before it gets to Exchange so you don't have to spend big bucks on server-based antivirus for Exchange.

P.S. Unless you have Small Business Server you might not have the POP3 Connector ... it's an extra in the standard server, I think.
...

Offline compdoc

  • *
  • 226
  • +0/-0
Email Question
« Reply #2 on: April 16, 2006, 07:01:41 PM »
I dont beleive SME can pass mail meant for the Exchange server, and keep mail meant for it. Both SME and Exchange can easily handle multiple domains, tho.

SME can recieve all mail and pass it to the exchange box, acting as a virus and spam scanner for Exchange, but in that mode mail only flows thru the SME.

If you had two ip addresses available, it would be simple...

d6hq

Email Question
« Reply #3 on: April 21, 2006, 12:38:22 AM »
The answer is easy.

As you summise the SME box needs to receive email for both domains and forward Company B email on to Exchange on port 25.

Set up the SME box for Company A email only - do NOT treat Company B domain as a virtualdomain but instead do 2 new template edits as follows:

etc/e-smith/templates-custom/var/qmail/control/rcpthosts/10addons
etc/e-smith/templates-custom/var/qmail/control/smtproutes/10addons

rcpthosts needs to contain simply

"domainB.com"

smtproutes needs

"domainB.com:[192.168.1.2]"

replace the IP address as required but leave the [ brackets

expand the templates and do email-update

In 7 the SMTP front end is handled by qpsmtpd not qmail BUT qpsmtpd reads the qmail control files (rcpthosts) and will accept, spam & scan email for domainB.com before passing it on to qmail which will in turn pass it on to the Exchange box in line with smtproutes directive