Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[clue] fetchmail + spamassassin + qmailscanner
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
t0mcat
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2004
Posts: 111
Location: Catania, Italy

PostPosted: Mon Aug 22, 2005 5:00 pm    Post subject: [clue] fetchmail + spamassassin + qmailscanner Reply with quote

i had a problem with fetched mail not being scanned by SpamAssassin even if passing trough Qmail-Scanner.
there are many dudes over here having the same problem so here is the solution from the QS FAQ:

Quote:
Why are some mails not scanned by SpamAssassin?. Qmail-Scanner will only pass the message to SpamAssassin if it originates from an external SMTP client. This is defined by whether or not the standard Qmail RELAYCLIENT environment variable is set. i.e. if the mail originates locally, it isn't scanned by SA. This is done for performance reasons and to cut down on false positives (i.e. your local users will never complain that their email is being classified as spam :-) If you explicitly want to scan some/all local SMTP clients email too, then set QS_SPAMASSASSIN="on" within the tcpserver rules file.


hope it will helps someone, i've spent many hours searching over the forum but the solution was just there.
_________________
il gattaccio
a.k.a etienne
Back to top
View user's profile Send private message
Spooky Ghost
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 210
Location: Bristol, United Kingdom

PostPosted: Tue Aug 23, 2005 2:00 pm    Post subject: Reply with quote

I needed the same but achieved it in a slightly different way:

In my /etc/tcprules.d/tcp.qmail-smtp:

Code:
::ffff:127.255.255.254:25:allow,RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue"
127.255.255.254:allow,RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue"


In /etc/init.d/fetchmail change start() add -S 127.255.255.254 to command line

Code:
start() {
        checkconfig || return 1
 
        ebegin "Starting fetchmail"
        start-stop-daemon --start --quiet --exec /usr/bin/fetchmail \
                -- -d ${polling_period} -S 127.255.255.254 -f /etc/fetchmailrc
        eend ${?}
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum