On 2016-07-22 14:38, Anton Aylward wrote:
I have some "blacklist_from" entries in my .spamassassin/user_prefs
blacklist_from *@sendio.pl blacklist_from *@supermailito.pl
The syntax is correct. I have entries in the same style.
and procmail pipes to spamassassin
:0 fw: /tmp/spamassassin.lock * < 256000 | /usr/bin/spamc
Here I do it differently: :0fw | /usr/bin/spamc -s 25000000 :0 aw: $HOME/Mail/.D-locks/zap_spam_coitt.lock * ^X-Spam-Status: Yes | $DELIVER -m zap_spam_coitt or :0fw | /usr/bin/spamc -s 25000000 :0 a * ^X-Spam-Status: Yes $HOME/Mail/zap_spam_ggle Your " * < 256000" line strikes me as weird.
I can't see why it shouldn't work. However those addresses are getting though! I can't see why.
I can add debug to my .procmail but that doesn't let me see the working *within* spamassassin. All I can see it how it rates SPAM, not what it does with blacklist items.
Are you sure that mail is being passed to spamc?
Any idea how I can drill down with the debug?
I have lines added to .procmailrc to detect what rules are being used. This is my entry section to the file: # http://pm-doc.sourceforge.net/doc/#variables_used_in_recipes # Pure newline NL = " " TODAYISO = `date '+%Y-%m-%d %H:%M:%S.%N%:z'` #TODAY = `date '+%Y-%m-%d'` #THISMONTH = `date '+%Y-%m'` THISWEEK = `date '+%Y-%m_%W'` DELIVER = "/usr/lib/dovecot/dovecot-lda" FORMAIL = "/usr/bin/formail" :0 h * ^Message-ID: MESSAGEID=| $FORMAIL -c -xMessage-ID: LOG="$NL+++----> EMPEZANDO REGISTRO $TODAYISO (msgid: $MESSAGEID) $NL" dummy = "you can use this dummy to tell things on the log - when verbose is on" much later: VERBOSE=off :0 * some rule { LOG="REGISTRANDO: seccion de tesa lists en proceso de cambio para usar dovecot-lda $NL" VERBOSE=on dummy = "Changing section to use DELIVER - zap_spam_tesa_lists" :0f # Aquí se producía un gran retraso, porque el lockfile estaba arriba en vez de abajo. # Todos los correos se chequean y esperaban de uno en uno durante el spamc, aunque luego no haya que moverlos porque no son spam. # deliver es rápido, spamc no. | /usr/bin/spamc -s 25000000 :0 aw: $HOME/Mail/.D-locks/zap_spam_tesa_lists.lock * ^X-Spam-Status: Yes # Esta linea siguiente estaba generando archivado en formato maildir del spam! En ~/Mail/new #$HOME/Mail/ zap_spam_tesa_lists | $DELIVER -m zap_spam_tesa_lists #in_spam_tesa2 VERBOSE=off The first comment applies to you. I'll translate. There was a big delay here, because the lockfile was above, not below. All posts are tested, and waited one by one during spamc, even though they don't have to be moved because they are not spam. deliver is fast, spamc is not. Ie, the placement of your "/tmp/spamassassin.lock" is wrong. Also, I would not use /tmp for this, being a global placement. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)