Tom Collins wrote:
On Oct 3, 2007, at 1:53 AM, Andy wrote:
jedi padawan.org # cat .qmail-kindred-clamav
| /var/vpopmail/bin/vdelivermail '' delete
There's your mistake.
What's happening is qmail-local hands the message off to vdelivermail
(because you told it to), which looks for an account kindred-clamav
(which it does not find), then an account named kindred (which it does)
and then delivers to kindred.
domain.com/.qmail-alias files are only read/processed by qmail-local.
vdelivermail only looks at accounts (in whatever backend you're using)
and possibly valias entries in a database.
Rick, can you put this somewhere in the documentation:
VDELIVERMAIL SHOULD ONLY APPEAR IN YOUR .qmail-default FILE. IF YOU PUT
IT ELSEWHERE, IT WILL NOT DO WHAT YOU EXPECT IT TO DO.
echo "#" > .qmail-kindred-clamav
Or to bounce the email:
echo "|/var/qmail/bin/bouncesaying 'Invalid account'" >
In summary... the .qmail-default of every virtual domain MUST contain
ONLY a single line that executes vdelivermail. The ONLY place you
should EVER call vdelivermail is from the .qmail-default file of a
vpopmail based virtual domain.
Updated documentation should probably be added to the list for version 6.