Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The man qmail-local page states that the Delivered-To header is always added to the email.

For some reason, however, many of my emails are missing it. Namely, those that are sent to users created in "users/assign" using the wildcard notation.

Is this a bug, or are these delivered bypassing qmail-local? How else can I tell which of the wildcard addresses the email was actually delivered to?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Fixed! The trick is to duplicate the .qmail file as .qmaildefault (or symlink, though I haven't tested if this works).

Longer version: the rule in users/assign is set up as follows:

+prefix:popuser:123:456:/path/to/mailbox:::

man qmail-users describes the last two parts as "dash" and "pre" without really explaining what they do (or assuming that you pretty much know the ins and outs of qmail). Neither does life with qmail, but it gives a useful hint about how the .qmail file name is constructed.

Since the "dash" part of the rule is blank, the .qmail and default parts are concatenated without any separators.

I still have no idea why it doesn't fall back onto the .qmail name -

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.