Ramon Pfeiffer writes:

Since your email address's domain is apparently placed in hosteddomains
(assuming that you've ran makehosteddomains), you need to pass the full
"[email protected]", whatever it is, to authtest. Try again, and see what
comes out.

I tried and got the same error.
Besides, I tried to write an email to another alias that produces the same error, I also got a 550 user not found error. For aliases that mail is accepted for, authtest prints out Authentication succeded and some information.

authtest knows nothing about aliases. It queries the account database, using whatever authentication module you've configured in courier-authlib.

Looks like Courier does not know anything about this recipient address. It's not defined as an account, and there's no alias defined for it (at least you haven't shown what your aliases are).

In fact, I did not edit any file in userdb. Do I have to add the user balfolk to userdb/system? authtest only prints out Auth succeeded and the information for users defined in userdb/aelfsciene.de.

If by that you mean you've configured courier-authlib to use the authuserdb module, then that what has to be done in order to defined an account that can receive mail. And run makeuserdb, of course.

Just because a directory was created somewhere, /home/vmail/something, or something else, and some .courier files were placed there, doesn't mean that Courier would automatically know anything about it. Courier doesn't search your entire filesystem, looking for directories with .courier files, and try to figure out what email address they should receive mail for.

Each recipient address is looked up by querying courier-authlib, which returns the home directory, the numeric uid, gid, and some other miscellanea, for the given address. So, if you're using the userdb module, you'd use the userdb command to specify all these particulars and run makeuserdb. Then, when Courier takes a message addressed to this recipient, it looks up the address in courier-authlib, and would now know that mail addressed to the given address should be delivered to this specific account. Courier would then look in the specified account's home directories for any .courier files, to read the mail delivery instructions. In their absence, it would execute the default mail delivery instructions.

An alias is something completely different. With an alias, it's as if the email address gets replaced by zero or more other addresses, and each individual recipient in the replacement list gets processed separately, using the same process, as described in the previous paragraph.

Mailing lists can be implemented as either aliases or as individual accounts. A mailing list address can simply be installed as an ordinary standalone account, which is the common approach. It's also possible to define a bunch of aliases, [name], [name]-owner, [name]-subscribe, [name]-unsubscribe, and so on, and point them to some other email address, which eventually resolves to some .courier file in some other account.

But an account and an alias are completely separate concepts, that bear no direct relation to a mailing list.

A mailing list can even be implemented as a sort of a subaccount. If you are [email protected], you can create a .courier-name, .courier-name-owner, and .courier-name-default files in your home directory, myself's home directory, then have a full fledged mailing list whose address is [email protected] (with the owner becoming [email protected], and the various command addresses becoming [email protected], [email protected]), and so on.


Attachment: pgpILH2M6zCZd.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