[quote user="flim"]I'd like to clarify about the domain rewrite.
As there are many different domain (branches of company), like "abc.com", "def.com", if the recipient domain match those domain, the MTA will route the e-mail to a central VPN MTA, and the VPN MTA will route the email to target domain.
So I don't know the IP of "abc.com", "def.com". Is the rewrite fit in this case?
Ok, lets see if I can explain how I do this for multiple domains via a gateway server. Here are the domains I host on my gateway server. All of the domains are registered to the same IP address (209.128.94.2) of my router and port forwarded to my system running Mercury/32 (192.168.1.2). All SMTP mail from the outside world comes in via the gateway server.
[Domains]
stephens: stephens
stephens: [209.128.94.2]
stephens: mail.tstephenson.com
stephens: tstephenson.com
stephens: [192.168.1.2]
dm=merwin: merwin-tstephenson.com (Windows system using mn-win.dll)
dm=ubunto: linux-tstephenson.com (Ubuntu v8.10 & Wine)
stephens: dyndns-tstephenson.dyndns.org
dm=merwin: merwin.dyndns.org
daemon:c:\mercury\mercfwd.dll;[192.168.1.3]: novell-tstephenson.com (Netware v3.2 Mercury.NLM)
daemon:c:\mercury\mercfwd.dll;[192.168.1.153]: xampp.from-ca.com (Windows laptop with XAMPP install)
The domains with stephens: are handled on the local server. The domains with dm= are domain mailboxes and are forwarded off to another server using the program WSMTPEx; the domains with daemon: are forwarded off to the other host by the daemon to Mercury residing on the specified IP address. Each of the other systems is a separate Mercury host running on the LAN but they could be located anywhere since the messages are being send via SMTP.
The forwarding to the other server is always by IP address since the DNS points the domain to this server.
FWIW, the simple domain rewrite and the daemon require you to be using MercuryE End-to-End server for sending; the program WSMTPEx is a SMTP client so it sends the mail by itself directly to the other host not using Mercury at all.
[/quote]
<blockquote>[quote user="flim"]<p>I'd like to clarify about the domain rewrite.</p><p>As there are many different domain (branches of company), like "abc.com", "def.com", if the recipient domain match those domain, the MTA will route the e-mail to a central VPN MTA, and the VPN MTA will route the email to target domain.
</p><p>So I don't know the IP of "abc.com", "def.com". Is the rewrite fit in this case?</p></blockquote><p>Ok, lets see if I can explain how I do this for multiple domains via a gateway server.&nbsp; Here are the domains I host on my gateway server.&nbsp; All of the domains are registered to the same IP address (209.128.94.2) of my router and port forwarded to my system running Mercury/32 (192.168.1.2).&nbsp; All SMTP mail from the outside world comes in via the gateway server.
</p><p>&nbsp;[Domains]
stephens: stephens
stephens: [209.128.94.2]
stephens: mail.tstephenson.com
stephens: tstephenson.com
stephens: [192.168.1.2]
dm=merwin: merwin-tstephenson.com&nbsp; (Windows system using mn-win.dll)
dm=ubunto: linux-tstephenson.com&nbsp; (Ubuntu v8.10 &amp; Wine)
stephens: dyndns-tstephenson.dyndns.org
dm=merwin: merwin.dyndns.org
daemon:c:\mercury\mercfwd.dll;[192.168.1.3]: novell-tstephenson.com&nbsp; (Netware v3.2 Mercury.NLM)
daemon:c:\mercury\mercfwd.dll;[192.168.1.153]: xampp.from-ca.com (Windows laptop with XAMPP install)
</p><p>The domains with stephens: are handled on the local server.&nbsp; The domains with dm= are domain mailboxes and are forwarded off to another server using the program WSMTPEx;&nbsp; the domains with daemon: are forwarded off to the other host by the daemon to Mercury residing on the specified IP address.&nbsp; Each of the other systems is a separate Mercury host running on the LAN but they could be located anywhere since the messages are being send via SMTP.</p><p>The forwarding to the other server is always by IP address since the DNS points the domain to this server.</p><p>FWIW, the simple domain rewrite and the daemon require you to be using MercuryE End-to-End server for sending; the program WSMTPEx is a SMTP client so it sends the mail by itself directly to the other host not using Mercury at all.
</p><p>[/quote]</p>