preline command with Qmail and Spamassassin
Hello,
Trying to implement spam filter on my Qmail mail server.
Spamassassin marks messages treated as spam, and now I need to move them into spam folder.
I think that problem is in file /home/vpopmail/domains/mydomain.com/.qmail-default.
It's content looks like this:
With that, email is marked as a spam, but it is not moved into Spam folder.
To move it into spam folder, I would use script from file /etc/mail/mailfilter, with content of .qmail-default like:
But with content like that, I receive no emails at all.
I tried to run this line in shell, but the message I got is
Can you help me what I'm doing wrong in this case, and how can I solve this problem?
Hello,
Trying to implement spam filter on my Qmail mail server.
Spamassassin marks messages treated as spam, and now I need to move them into spam folder.
I think that problem is in file /home/vpopmail/domains/mydomain.com/.qmail-default.
It's content looks like this:
Code:
| /home/vpopmail/bin/vdelivermail '' delete
With that, email is marked as a spam, but it is not moved into Spam folder.
To move it into spam folder, I would use script from file /etc/mail/mailfilter, with content of .qmail-default like:
Code:
| /var/qmail/bin/preline /usr/bin/maildrop /etc/mail/mailfilter
But with content like that, I receive no emails at all.
I tried to run this line in shell, but the message I got is
Code:
preline: usage: preline cmd [ arg ... ]
Can you help me what I'm doing wrong in this case, and how can I solve this problem?