Thanks, Sam.

A little experimentation revealed exactly what you told me to be the way
things work, and I got my test domain to forward to the best-preference
MX with no problems.  The domains in question are not listed in locals,
but are part of my virtual mail system.

On Mon, 2009-02-02 at 19:30 -0500, Sam Varshavchik wrote:
> You have reconfigure the domain as a non-local domain. Remove it from 
> hosteddomains, but keep in esmtpacceptmailfor.
> 
> First, define the other server as the preferred MX in DNS, and let the DNS 
> changes propagate as far as your own machines are concerned.
> 
> I do not believe that webadmin implements this kind of configuration, so 
> you'll have to do it manually. Stop incoming SMTP, so you do not interfere 
> with normal mail flow while you're doing all this. Remove this domain as a 
> locally-hosted domain, in webadmin. Before you actually install the webadmin 
> configuration, put the domain into some different file in 
> esmtpacceptmailfor.dir
> 
> Once you install the configuration via webadmin, all the config changes 
> should take effect immediately, and you can reenable SMTP.
> 
> Courier must recognize this domain as a non-local domain, so its mail gets 
> delivered remotely. Courier should see itself as a less-preferred MX for 
> this domain, and attempt to deliver the mail only to the preferred MX.
> 
> In rare situation Courier cannot figure this out. Courier tries to match the 
> hostnames in DNS MX records with its known list of local hostnames. Whatever 
> your machine A's name is defined in DNS, it must be one of the local domain 
> names. Note, that means that your MX record must use a different hostname. 
> You cannot do something like:
> 
> example.com. MX 10 example.com.
> 
> example.com. IN A 192.168.0.2
> 
> If example.com is listed in locals, mail to that domain gets handled as 
> local mail.
> 
> As long as your DNS config is sane, and matches Courier's config, forwarding 
> should work automatically. In extreme cases you can always fallback on an 
> explicit setting in esmtproutes.

-- 
Lindsay Haisley       | "The difference between |     PGP public key
FMP Computer Services |  a duck is that one leg |      available at
512-259-1190          |    is  both the same"   | http://pubkeys.fmp.com
http://www.fmp.com    |       - Anonymous       |


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to