On Tue, Mar 12, 2002 at 09:28:26AM +0100, MH - Entwicklung wrote:

> Hello out there,
> 
> i need to set up some special routing instructions for courier. At the
> moment there are Sendmail and MS Exchange involved but I'm not in the
> position to throw MS Exchange into the dustbin. I just have to deal with the
> problems. In any case I want to quit Sendmail and use Courier instead.
> 
> At the moment there is a Sendmail host between the Internet an the MS
> Exchange server. The sendmail host is mainly just forwarding mail between
> the Internet an MS Exchange. But there are some accounts which are treated
> locally by sendmail so the users can access email on this host via pop3. The
> sendmail configuration has some very ugly rewriting rules for accomplishing
> that.
> 
> e.g. [EMAIL PROTECTED] is delivered to [EMAIL PROTECTED] on the MS
> Exchange host.
> [EMAIL PROTECTED] is delivered locally.
> [EMAIL PROTECTED] is delivered to [EMAIL PROTECTED]
> 
> One problem is that MS Exchange and the sendmail host both host the domain
> somedomain.com and therefor domain routing won't help.
> 
> Can I configure courier to set up a kind of per user routing? I'm thinking
> about using .courier or .forward files. But as I have the same domain on two
> hosts I need to tell courier to use a certain SMTP-Relay for these mails.

It's quite simple really.

Set up your courier to accept all email for somedomain.com, and
using esmtproutes, route all mail for somedomain.com to the Exchange
server:

somedomain.com:[exchange.server.ip.address]

Then, create aliases on courier for the special local accounts, like this:

[EMAIL PROTECTED]:   user2@localhost
[EMAIL PROTECTED]:   [EMAIL PROTECTED]

Make sure you list "localhost" in courier's locals file, and mail for
user2 will be delivered to local account "user2". Mail for user3 will
simply be routed away by courier to another-domain.com using the usual
MX records.

-- 
Anand Buddhdev

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to