preline command with Qmail and Spamassassin

icen

New member
Joined
Dec 21, 2013
Messages
1
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:

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?
 
You're on the wrong forum; this is a forum for the DirectAdmin hosting control panel, which uses exim as MTA, and usually as local delivery agent. Qmail is well beyond our scope and our expertise.

Rather than delete your post I've decided to move it to our off-topic subfgorum; there's always the possibility one of our readers has enough qmail experience to help you.

However I strongly suggest you look and ask elsewhere.

Jeff
 
Back
Top