Hi,
Im having a difficult time getting maildrop to work with virtual users and
the courier mta.
In courierd I have:
DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop"
In userdb I have:
test...@domain.com <mailto:test...@domain.com>
uid=514|mail=/home/virtualusers/testuser1/Maildir|home=/home/virtualusers/te
stuser1|gid=514
test...@domain.com <mailto:test...@domain.com>
uid=514|mail=/home/virtualusers/testuser2/Maildir|home=/home/virtualusers/te
stuser2|gid=514
where uid 514 is for the virtualusers id
In /etc/courier/maildroprc I have:
#Tell maildrop to use spamassassin
logfile "maildrop.log"
if ( $SIZE < 26144 )
{
log "inside spamassassin"
exception {
xfilter "/usr/bin/spamassassin"
}
}
Now my confusion comes from the fact that for every mail delivered to a
virtualuser,
I would expect to get a log entry in /home/virtualusers/maildrop.log and I
would expect
all of this mail to have the spamassassin header info _or_ I would expect
nothing to get
delivered because Ive made a configuration error. Instead, my virtual user
mail get delivered
as always, but it doesn't get run thought SA.
Ive tried putting .mailfilter in ~virtualusers and
/home/virtualusers/testuser1 to no avail. I get no help
from the courier mail log, as far as its concerned everything is good.
The only way Ive been able to get the results I want is to create a real
account, point userdb
to that and put "|/usr/local/bin/maildrop || exit 77" into .courier
Im using the maildrop that built with the courier package, not the
standalone package.
Help!
Chris