-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Good afternoon,

> I have to add a domain alias for the new domain so that
> [email protected]
> could be reached at
> [email protected]
>  as well.
> Alternatively, any mail for
> [email protected]
>  could be delivered to
> [email protected]
> , 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.

Absolutely right!

> 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 [email protected] to go to [email protected], [email protected]
to go to [email protected], etc. I don't know if you're using full mailbox
names such as "[email protected]" 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.

example.eu

[email protected] and [email protected] will be the same mailbox, as will
anything else @example.eu and example.cz.

If you are using names like [email protected] 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 [email protected] like
you suggested in your original post. Put the following line into your
aliases.

@example.eu: [email protected]

Depending on your setup, you might instead use:

@example.eu: info

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
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to