Hi,
My apologies if this is very trivial (it might well be!).
I have a qmail-server installed, and it's running well. I have installed
qmail-scanner, and therefore maildrop. All is well.
I should like to use maildrop to filter mails, and have tried to enter
this line:
| /usr/local/bin/maildrop -d maildrop
in the (test) users .qmail file. This however results in the mail just
staying in the qmail queue.
If I run the command:
(echo "From: te...@gjerlov.dk" && echo "To: test...@gjerlov.dk" &&
echo "X-Spam-Status: Yes 22.6" && echo "Subject: SPAM test" && echo && echo
"body123") | /usr/local/bin/maildrop -d maildrop
The mail is correctly filtered by my .mailfilter
If I run:
(echo "From: te...@gjerlov.dk" && echo "To: test...@gjerlov.dk" &&
echo "X-Spam-Status: Yes 22.6" && echo "Subject: SPAM test" && echo && echo
"body") | /var/qmail/bin/qmail-inject
with:
| /usr/local/bin/maildrop -d maildrop
in my .qmail file, the the mail just stays in the queue
If I change the .qmail file to just delivering the mail to the user, then
the mail is delivered (but not filtered)
Having browsed for answers I think it might well be some compile options
for maildrop that need to be set, namely I am thinking of the
--enable-maildrop-uid
--enable-maildrop-gid
options. Should these be set to:
--enable-maildrop-uid=root
--enable-maildrop-gid=qmail
?
Is there a simple way to test where the problem might be?
Thanks in advance for any help!!