> On Sep 18, 2015, at 2:58 PM, [email protected]
> wrote:
>
> From: Sam Varshavchik <[email protected]>
> Subject: Re: [courier-users] Setting up Courier to accept mail for different
> hostname/domain
> Date: August 31, 2015 at 3:21:01 PM PDT
> To: [email protected]
>
>
> Greg Earle writes:
>
>> Which means I'll have to change the Courier machine name to something else,
>> like "myorg-mail.my.do.main" or something, and MX myorg to myorg-mail.
>>
>> But everything else mail-wise needs to stay the same - accept mail for
>> myorg.my.do.main, and most importantly, continue to send out e-mail looking
>> like it's coming from myorg and not myorg-mail, etc.
>>
>> What is the best way to accomplish this? Do I have to use Virtual Hosts
>> with virtual users, and switch to "authuserdb" for authentication?
>
> No. Nothing needs to be done except to change your DNS records; unless you
> don't have anything installed in the "me" or the "locals" configuration file,
> AND you're going to change the system hostname. In that case, you just need
> to explicitly override your local domain.
>
> Courier looks first at "locals", then at "me" and only if neither of them are
> set, at the system hostname, in order to configure what it thinks is the
> local domain. After it accepts an incoming connection, mail addressed to a
> @localdomain is considered to be addressed to a local mailbox. Courier
> doesn't look at DNS for this, so if the server's actual IP address is now
> PTRed to something else, but an MX record still sends the mail to the server,
> nothing has changed, as far as the server is concerned, if nothing else has
> changed as well.
>
> But if the system hostname has changed, and you don't have anything in "me"
> or "locals", meaning that Courier ends up defaulting to the system hostname
> for its only, local, configured domain, then you simply need to put the
> current hostname into the locals file.
[Wow, took a long time to get a new Digest with this answer in it.
Maybe I better go off of Digest mode.]
Thanks Sam! I already had a fully-populated "locals" file with the
myorg.my.do.main entry in it, so I tested it out on my test server
by changing the name and IP and keeping the contents of "me" the
same (with the aforementioned "locals" entry) and it worked a treat.
Never thought the Courier part of this transition would be the easiest bit! :D
- Greg
------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users