Ramon Pfeiffer writes:

No. hosteddomains and locals are mutually exclusive. The same domain cannot
be listed in both places.

But makehosteddomains reads also the content of courier/locals?

No. As the first sentence of the makehosteddomains man page says, makehosteddomains reads the contents of the hosteddomains directory, and creates hosteddomains.dat, a fast binary database lookup file.

makehosteddomains does not need to read anything else to accomplish that. There's nothing in locals that makehosteddomains needs to process the hosteddomains list.

I meant that I swapped the entries, so that courier/locals would contain only aelfsciene.de and not h13... and courier/hosteddomains/vmail would contain only h13... and localhost, but not aelfsciene.de

Generally, localhost should be listed in locals, not hosteddomains.


I find no reference to userdb in the makehosteddomains man page.

I interpreted the manual this way, as any domain in locals would be ommitted while processing an email and I have entries like "[email protected]" in my userdb, I should write them as "rpfeiffer". Or did I again make a mistake here?

The third paragraph in the man page explains the difference between locals and hosteddomains.

Or is there yet another possible source of error that I get Authentication failed errors?

If a given domain is listed in hosteddomains, in userdb all accounts must be specified as "n...@domain". In userdb, all accounts specified as "name" are looked up for any email address whose domain is listed in locals.

For authtest, the address is specified exactly as it would appear in userdb. Neither locals or hosteddomains is a factor. locals and hosteddomains are used to determine how email address are looked up in userdb. For any email address whose domain is listed in locals, the domain is stripped off and only "name" is looked up in userdb, and that's exactly how you would invoke authtest. For any email address whose domain is listed in hosteddomains, the entire "n...@domain" gets looked up in userdb, and that's how you would invoke authtest as well.

If a recipient's domain is not listed in either locals or hosteddomains, Courier refuses to accept the recipient address, unless the sender has relaying privileges, in which case the recipient address is accepted, and the message gets relayed to the recipient's mail server.

The above ignores any defined mail aliases, which introduce some additional complexity into the logic.

Attachment: pgpXMEqKYqD62.pgp
Description: PGP signature

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to