Daniel Callan writes:
> Hi all,
>
> I know that the archive is full of alias problems but so far I cannot
> seem to find someone mentioning the simplest (and worst) problem of
> them all: If an account exists that is the same name as a virtual-domain
> specific alias (or even any alias for that matter), the account takes
> preference over the alias and the mail goes straight to the account.
>
> Am I the only who thinks this is completely backwards???
It's not backwards. It's not forwards either. It's an artifact of
the way qmail resolves email addresses. First it determines the user,
and the user delivers/forwards the mail. Qmail has a separate user
for aliases. So qmail has to decide whether the mail goes to a user
or an alias before it knows the complete list of aliases. It can't do
this in advance of actually delivering the mail because of -default
wildcarding.
BTW, there's no way to implement (the RFC821 commands) VRFY or EXPN if
the matching user has a matching \.qmail.*default file. OTOH, it
would be quite possible to have VRFY or EXPN consult a cdb for the
right response to return. That is, if you *really* want to tell
anyone who walks up what your valid email addresses are.
> We have got all the fastforward/dot-forward packages included and have
> still been suffering from this for almost a year now.
Oh, well you can't have been suffering all that much, otherwise you
would have paid me to relieve your suffering. ( sorry, it's an old
economist's joke. Two economists are walking past a car dealership.
One economist says to the other "I'd give anything for that Porsche."
The other economist says "Obviously not.")
> However, we might have (for example) 5
> different aliases for "design"
> ie: [EMAIL PROTECTED] --> account1
> [EMAIL PROTECTED] --> account2
> [EMAIL PROTECTED] --> account3
> [EMAIL PROTECTED] --> account4
> [EMAIL PROTECTED] --> account5
>
> Now, it only takes one of them to unknowingly create a "design"
> account (thru the adduser system) to completely stuff things up and
> give me 5 complaining customers in one hit. Mail for "design@anything"
> will ONLY go to the mailbox (completely ignoring the aliases).
Sounds like you aren't using virtualdomains. Do this:
cd /var/qmail
cat >>control/virtualdomains <<EOF
dom1.com:alias-dom1
dom2.com:alias-dom2
dom3.com:alias-dom3
dom4.com:alias-dom4
dom5.com:alias-dom5
EOF
echo '&account1' >~alias/.qmail-dom1-design
echo '&account2' >~alias/.qmail-dom2-design
echo '&account3' >~alias/.qmail-dom3-design
echo '&account4' >~alias/.qmail-dom4-design
echo '&account5' >~alias/.qmail-dom5-design
kill -HUP `pidof qmail-send`
--
-russ nelson <[EMAIL PROTECTED]> http://crynwr.com/~nelson
Crynwr sells support for free software | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | can outdo them. Homeschool!