Coexistance with Exchange 2003

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

tenaciousC
Posts: 89
Joined: Thu Mar 30, 2006 5:41 pm
Location: Manchester, UK.

Coexistance with Exchange 2003

Postby tenaciousC » Thu May 25, 2006 3:50 pm

Hi All,

I am in the process of implementing a single Scalix solution for two organisations which have recently merged into one.

One organisation (organisationA) has an Exchange 5.5 setup which I have mastered coexistance with using omldapsync.

The other organisation (organisationB) uses Exchange 2003 (though only for a handful of users).

Currently mail for organisationA.com goes into exchange 5.5 and the into scalix using the method of adding the user@FQDN of the scalix box for each user ie. fred@scalix.organisationA.com

I want to do the same with organisationB.com mail so that I can have organisationB.com mail going to the scalix server via the exchange 2003 server.

Is this possible in the same fashion ? i.e. by adding contacts to the AD with two email addresses i.e. bob@organisationB.com and bob@scalix.organisationB.com .

I have tried this, but the mail to bob@organisationB.com bounces straight back to me when sent from external. Is there anything else that needs to be done with exchange2003 to make this work?

I hope this makes some sense to someone!

Cheers!

C

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri May 26, 2006 10:39 pm

This can be made simpler by reversing the logic without the need for the @scalix.domain.com addresses.

When an address comes into the SMTP Relay, a lookup is done against the SYSTEM directory. If a match is found, the message is accepted into Scalix. If a match is NOT found, processing is handled by sendmail which means that you can accept mail for Scalix first and then pass on anything that's destined for the Exchange servers afterwards.

So, you can do the following:
  1. Edit /etc/mail/mailertable and add the lines

    Code: Select all

    organisationA.com<tab>esmtp:[exch55.domain.com]
    organisationB.com<tab>esmtp:[exch2003.domain.com]
    where <tab> is a tab character. This tells sendmail that if anything is for organisationA.com, it should be sent to exch55.domain.com without using MX records.
  2. Rebuild the mailertable

    Code: Select all

    cd /etc/mail
    make mailertable.db
  3. Restart sendmail

    Code: Select all

    /etc/init.d/sendmail restart
  4. Edit /var/opt/scalix/sys/smtpd.cfg and add the line

    Code: Select all

    RELAY accept .domain.com
    if it isn't already present.
  5. Restart the SMTP Relay

    Code: Select all

    omoff -d 0 smtpd
    omon smtpd


You have to ensure that the Scalix server is capable of resolving the names for exch55.domain.com and exch2003.domain.com.

Cheers

Dave

tenaciousC
Posts: 89
Joined: Thu Mar 30, 2006 5:41 pm
Location: Manchester, UK.

Postby tenaciousC » Sat May 27, 2006 4:25 am

Hi Dave,

Many thanks for your thorough and relevant response.

Some questions with regards to that idea....

The crux of your suggestion is:

If a match is found, the message is accepted into Scalix. If a match is NOT found, processing is handled by sendmail which means that you can accept mail for Scalix first and then pass on anything that's destined for the Exchange servers afterwards.


However if my system address book contains ldapsync entries for all the exchange2003 mailboxes from organisationB.com then I think that all mail WILL be matched in Scalix. (Correct me if I am wrong!).

So what will happen to mail addressed to organisationB.com? Will it be routed out of the server - or go around in circles until the ttl expires?

Here is one such addressbook entry

omsearch -e G=Fred/S=Smith

CN=Fred Smith/G=Fred/S=Smith/OU1=exchange/OU2=tnef/UL-AUTHID=Fred.Smith@organisationB.local/ALIAS=Fred.Smith/
FOREIGN-ADDR=CN\=Fred Smith,OU\=HoUsers,OU\=HeadOffice,OU\=HDV,DC\=organisationB,DC\=local/
INTERNET-ADDR=Fred.Smith@organisationB.com



Thanks again.

C


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 2 guests