Gossamer Forum
Home : General : Internet Technologies :

Qmail and SpamAssassin

Quote Reply
Qmail and SpamAssassin
Does anyone know of any good tutorials for setting up spam assassin with qmail?

Am I naive in thinking it is as simple as editing my .qmail file to pass the email into spamassassin?

Currently it contains:

Code:
| true
./Maildir/
Quote Reply
Re: [Paul] Qmail and SpamAssassin In reply to
Hmm, you could try:

| /path/to/spamassassin
./Maildir/

and see if it works. We use vpopmail and ours looks like:

| /path/to/spamassasin | /path/to/vdelivermail '' /patht/to/maildir

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Qmail and SpamAssassin In reply to
I gave that a try earlier today but that seems to stop my mail from being delivered.

I read some articles saying that spam assassin returns the filtered mail to STDOUT but qmail requires a file....does that make any sense?
Quote Reply
Re: [Paul] Qmail and SpamAssassin In reply to
Try

| /path/to/spamassassin | maildir ./Maildir/

so it sends it to spam assassin which reads from stdin, then writes the new email to stdout, maildir then reads it on it's stdin, and delivers it to your local maildir folder.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Qmail and SpamAssassin In reply to
Thanks, it didn't seem to work though :(

All the mail I sent to the test address just disappeared. There was nothing in maillog.

Crazy

I've just implemented another solution using rblsmtpd