Mathew Simon writes:
> Dear Sam Varshavchik,
>
> You are wrongly assuming that the -d flag is not being used.
>
> The -d flag is being used when invoking maildrop, and while logged in as
> root. Without using the -d flag, then how do you think maildrop is reading
> the mailfilter from the home directory of the actual user "vmail" with which
> the userdb is implemented.
Very easy. It's not that difficult to figure out the home directory of the
userid invoking maildrop.
> You could verify it with the verbose option (-V)
> and by providing ".mailfilter" in (1) the home directory of "vmail" and (2)
> later by moving the mailfilter to the home-directory specified in the
> userdb. In the case of (1) the mailfilter would be read, and in case (2) the
> filter would not be read.
Script started on Wed Jul 4 20:55:07 2001
# grep virtualuser /etc/userdb
virtualuser
uid=90|gid=90|home=/var/tmp/maildrop-test|shell=/bin/bash|systempw=!!
# cat /var/tmp/maildrop-test/.mailfilter
echo "Message rejected."
EXITCODE=100
exit
# echo "To: virtualuser" | /usr/bin/maildrop -d virtualuser 2>&1
Message rejected.
# echo "To: virtualuser" | /usr/bin/maildrop -V 9 -d virtualuser 2 >&1
maildrop: Changing to /var/tmp/maildrop-test
Message start at 0 bytes, envelope sender=virtualuser
Tokenized string: "DEFAULT"
Tokenized =
Tokenized string: "./Maildir"
Tokenized ;
Tokenized eof
/etc/maildroprc(1): DEFAULT="./Maildir"
maildrop: Attempting .mailfilter
Tokenized echo
Tokenized string: "Message rejected."
Tokenized ;
Tokenized string: "EXITCODE"
Tokenized =
Tokenized string: "100"
Tokenized ;
Tokenized exit
Tokenized ;
Tokenized eof
Message rejected.
.mailfilter(2): EXITCODE="100"
# exit
Script done on Wed Jul 4 20:56:22 2001
>
> Also, in my system where postfix is the MTA, only maildrop can deliver mails
> to the maildir of the virtual email accounts. And maildrop cannot do it
> without the help of userdb. So, my point is that the maildrop is being
> invoked with the -d flag and it is reading the userdb properly. Otherwise
> the mail would not be delivered to the maildir of virtual email accounts.
>
> I too wish that Maildrop behaved in the way you are insisting on. But
> unfortunately it is not.
You have failed to present any evidence that shows that.
--
Sam