Re: [courier-users] Adding a second Domain with the same users in Courier
Brought to you by:
mrsam
From: Dan J. <Dan...@bl...> - 2005-12-13 18:09:18
|
On Monday 12 December 2005 23.08, Dan Johansson wrote: > On Sunday 11 December 2005 22.47, Gordon Messmer wrote: > > Gordon Messmer wrote: > > > Dan Johansson wrote: > > >> In esmtpacceptmailfor.dir/foo.com I have entries for foo.com and > > >> .foo.com, and in locals I also have foo.com and .foo.com. > > > > > > Remove the domains from "locals". It's not valid to have a domain > > > configured both as hosted, and local. Look at the man page for > > > "courier", and read the "hosteddomains" section for more information. > > > > ...I misread your description, and thought you said that "foo.com" was > > in both files. If your users really are stored with > > "id=3D<user>@foo.com", then I still assume that is the case. > > > > If the domain were local, you would only have to add bar.com to the > > locals file. All users and aliases would be members of both domains. > > The "locals" and "hosteddomains" sections of the courier man page should > > explain why. > > OK, now I have deleted my locals and put the following in hosteddomains: > foo.com > .foo.com<TAB>foo.com > bar.com<TAB>foo.com > .bar.com<TAB>foo.com > > and I have the following in esmtpacceptmailfor > foo.com > .foo.com > bar.com > .bar.com > > and I have done a makeacceptmailfor & makehosteddomains > > Now when I try to send a mail to <user>@bar.com I am getting the following > back: > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0UNDELIVERABLE MAIL > Your message to the following recipients cannot be delivered: > > <<user>@bar.com>: > <<< configuration error: mail loops back to myself (MX problem). > > What could be the problem? Solved this problem - it was a DNS-issue, the MX-record for the second doma= in=20 pointed to my external GW - which in turn forwarded the connection to the=20 internal Mail-server. But now I have a problem with my aliases, for the original domain (foo.com)= =20 the aliases works as expected but the second domain (bar.com) I am getting = a=20 550 User unknown. Any suggestions? Regards, =2D-Dan |