iMS 5.2 Rewrite/Channel question

I have read through every post on here that I can find related to rewrite rules and channel definitions, and can't find a solution to my problem. Perhaps I'm just missing something, but I figure it's time to ask the experts.

Let's say that I have two domains hosted on my mail store (iMS5.2, Direct LDAP mode) of domain1.com and domain2.com. domain1.com is the default domain. In front of the mail store, I have a system (mmp1) installed as the mailmultiplexor software installed, but also has iMS5.2 installed on it, just serving as an SMTP server. When a customer of ours with an email address of <anything>@domain1.com or <anything>@domain2.com sends email through mmp1 (which they have to because it's the only one they have access to from outside the firewall), I want any mail being sent to <anyone>@domain2.com to be delivered via the MX record for domain2.com, rather than having mmp1 do LDAP searches, finding the account locally and delivering it to the mail store directly.

The reason for this is because domain2.com is a filtered domain that gets passed to an outside service (via MX records) to have the mail filtered, then that service sends it back, directly to the mail store.

I'm certain that this is possible, but I can't get it to work. mmp1 always searches the database and tries to deliver the message directly. Any help would be greatly appreciated. Thanks in advance!

[1447 byte] By [708377] at [2007-11-25 8:27:35]
# 1

just a guess...

If the mailhost for user1@domain2.com becomes your iMS5.2 MTA instead of your mail store, do you think the mmp will route the mail through that MTA instead of directly to the mailstore ? If yes, then, you could add a few lines in imta.cnf:

domain2.com$U%$D@tcp_domain2-daemon

tcp_domain2 daemon your_mx_record_here [...]

tcp_domain2-daemon

Let us know..

Martin

Martin Fillion at 2007-7-1 14:53:42 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...