Problem with migration

remikk

Verified User
Joined
Apr 30, 2008
Messages
158
Location
Poland
I'm not sure if the DirectAdmin forum is appropriate to write this post, but maybe.
E-mail accounts one of the domains, which is on the server with DirectAdmin, say exchange.softgroup.pl being passed on to Ms Exchange 2010. The Ex2010 provides the option of migration from other mail systems (from MS Exchange: Internal Relay Domain - E-mail is delivered to recipients in this Exchange organization or relayed to an e-mail server outside this Exchange organization. Use this setting if the domain is shared by this Exchange organization and another messaging system.) Some accounts are on MS Exchange, and some of the old mail system, in this case on the DirectAdmin server. MX configured to point to a server with MSExchange.
exchange.softgroup.pl has address 91.227.88.40
exchange.softgroup.pl mail is handled by 10 mail.exchange.softgroup.pl.
mail.exchange.softgroup.pl has address 91.227.88.16
By sending email to non-existent account, the Exchange server redirects to the old server (DA), where the mail should reach the appropriate box. However, DA did not throw an email to the mailbox just pushes back into the MS Exchange server, and ends up in loops. As a result, I get the MDR:
Code:
"[email protected]
    SMTP error from remote mail server after MAIL SIZE = 4862:
    mail.exchange.softgroup.pl host [91.227.88.16]:
    501 5.1.7 Invalid address "
Logs of mainlog:
Code:
2012-02-01 21:01:15 1RsgMf-0002dF-8v => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=1238 H=mail.exchange.softgroup.pl [91.227.88.16] X=TLSv1:AES128-SHA:128 C="250 2.6.0 <[email protected]> [InternalId=99] Queued mail for delive"
2012-02-01 21:01:15 1RsgMf-0002dF-8v Completed
2012-02-01 21:01:16 1RsgMm-0002ev-Q7 <= prvs=0378b04b7b=prvs=0378e24896=prvs=03787a8db7=remik@softgroup.com.pl H=ns2.softgroup.pl (Win2008.SoftGroup.local) [91.227.88.16] P=esmtps X=TLSv1:AES128-SHA:128 S=2325 [email protected] T="test" from <prvs=0378b04b7b=prvs=0378e24896=prvs=03787a8db7=remik@softgroup.com.pl> for [email protected]
2012-02-01 21:01:16 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1RsgMm-0002ev-Q7
2012-02-01 21:01:16 1RsgMl-0002eg-N7 => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=1796 H=mail.exchange.softgroup.pl [91.227.88.16] X=TLSv1:AES128-SHA:128 C="250 2.6.0 <[email protected]> [InternalId=100] Queued mail for deliv"
2012-02-01 21:01:16 1RsgMl-0002eg-N7 Completed
2012-02-01 21:02:03 1RsgNL-0002jf-Gn => [email protected] F=<prvs=0378386f96=prvs=0378b04b7b=prvs=0378e24896=prvs=03787a8db7=remik@softgroup.com.pl> R=lookuphost T=remote_smtp S=2966 H=mail.exchange.softgroup.pl [91.227.88.16] X=TLSv1:AES128-SHA:128 C="250 2.6.0 <[email protected]> [InternalId=102] Queued mail for deliv"

Of course, the option "Use this server to handle my emails. If not, change the MX record and uncheck this option" I have not checked.

Wondering if I do not error on the Exchange, I configured the SMTP server quickly using postfix on another machine. In this case, the mail went straight to an existing mailbox on the SMTP postfix.
Therefore, it seems to me that the problem is somewhere in the configuration - exim or DNS on Directadmin? But where?
 
If the use this server option is unchecked, then DirectAdmin doesn't know there's a local mailbox and will always send the mail back out using the MX record. So you need to check it, but yet still use the MX records for the exchange server.

Here's the problem with this setup: Any emails originating on the DirectAdmin server won't be forwarded to the Exchange server; they'll be delivered on the DirectAdmin server if the email acconts exist, or they'll be returned as undeliverable. So you'll need mailboxes or forwards (to addresses on a different domain) on the DirectAdmin server for any email addresses which will come from the DirectAdmin server itself.

Jeff
 
Back
Top