|Subject:||Re: [courier-users] virtual domain|
|From:||Jan Müller (mull...@gmail.com)|
|Date:||Jun 25, 2009 12:52:03 am|
I tried alternative 1 and it worked immediatelly. My problem was that I had set the same option in hosteddomains.
On Wed, Jun 24, 2009 at 7:03 PM, Joseph C. Lininger<jba...@pcdesk.net> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
I have to add a domain alias for the new domain so that ja...@example.cz could be reached at ja...@example.eu as well. Alternatively, any mail for any...@example.eu could be delivered to in...@example.cz , that would work too, I don't know if it is any easier
I'll describe how to do both below. You can choose which solution you want.
I added example.eu in the esmptacceptmailfor, and I no longer get 513 Relaying denied. Good.
I tried adding "example.eu" or "example.eu<tab>example.cz" into locals file or hosteddomains, but i am getting 556 Address unavailable when i try to send mail.
Ok, here are your options.
Alternative 1. Map <anything>@example.eu to <anything>@example.cz This will cause ja...@example.eu to go to ja...@example.cz, jo...@example.eu to go to jo...@example.cz, etc. I don't know if you're using full mailbox names such as "ja...@example.cz" in your userdb, or if you are just using usernames like "jan". If all you are using is local names, then simply adding this line to locals will do it.
If you are using names like ja...@example.cz in your userdb, then add the following line to hosteddomains.
example.eu <tab> example.cz
Don't forget to run makehosteddomains after you make this change. From then on, Courier will rewrite <anything>@example.eu to <anything>@example.cz and then try to deliver to a mailbox by that name on the system.
Alternative 2. Send any mail addressed to <anything>@example.eu to a single address This will send mail for <anything>@example.eu to in...@example.cz like you suggested in your original post. Put the following line into your aliases.
Depending on your setup, you might instead use:
If I can be of further assistance, feel free to contact me on list or privately. Joe
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32)
iQEcBAEBCAAGBQJKQlx9AAoJEMh8jNraUiwqHVkH/iUQOk2BuDTxAvXnVPA8e2Xu EmtGFZF+M+W0aJ0QrOcrcjBQFgrHpwfEN1rfiFMsmyInB98vMQ3rOb0Ol96nai2V UKvf4ehHUEP6y7WBMzZDGb4+bQWSRoVV9K4tu5aVqF00pjztmeYTjMCJf9R1aMBL +IXauiSSEhDWy0f1g1ogIvK0jgxOqCqvfEM52dwxFwbUkFQXD4Wz42fOGIqsiHZ+ H3PWSPZBvA41MzcVAU8UOehz+UzmyGUk9tveuCxxMjWMkdnh9fZMzLhs0D5iML9p ryuDfB4+/X9pvAZdA8jufjGjSFkS46dUzj/Jo16KW05rQK6wDTYQ07hW4y2UXtc= =RlSC -----END PGP SIGNATURE-----
_______________________________________________ courier-users mailing list cour...@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users