Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: ewok2 on June 04, 2024, 02:51:11 PM

Title: Spamassassin whitelist is not taken into account
Post by: ewok2 on June 04, 2024, 02:51:11 PM
I have a postfix / dovecot /roundcube running on a ubuntu 22.04
I have some user which get mail with a false warning on SPAM
=>     [***** SPAM 6.2 *****] xxxx
With a score higher than 4 which is the value I set in the conf.

I have add the mail of the sender in "/usr/share/spamassassin/local.cf"
Quoteshortcircuit USER_IN_WHITELIST       on
shortcircuit USER_IN_DEF_WHITELIST   on
whitelist_from notif-colissimo-laposte.info
reboot the server

But mail from the sender still arrive with a SPAM score higer than 4...

any idea why ?

Thanks

Title: Re: Spamassassin whitelist is not taken into account
Post by: pschmehl on June 16, 2024, 04:47:38 PM
Would you mind posting the headers so we can see what sa is triggering on?
Title: Re: Spamassassin whitelist is not taken into account
Post by: ewok2 on June 17, 2024, 02:07:58 PM
Of course

Quotepts rule name              description
---- ---------------------- --------------------------------------------------
3.5 BAYES_99               BODY: Bayes spam probability is 99 to 100%
                            [score: 1.0000]
0.2 BAYES_999              BODY: Bayes spam probability is 99.9 to 100%
                            [score: 1.0000]
-0.0 SPF_PASS               SPF: sender matches SPF record
-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
0.0 HTML_MESSAGE           BODY: HTML included in message
0.8 MPART_ALT_DIFF         BODY: HTML and text parts are different
0.1 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
                            valid
-0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
-0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
                            envelope-from domain
-0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
                            author's domain
2.5 MIXED_ES               Too many es are not es
-0.0 T_SCC_BODY_TEXT_LINE   No description available.
0.0 MIME_HTML_ONLY_MULTI   Multipart message only has text/html MIME
                            parts
0.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted
                            Colors in HTML
1.6 LONG_HEX_URI           Very long purely hexadecimal URI

But I am wrong if I say that if a sender is in the white liste, whatever his message is bad, it should pass ?
Title: Re: Spamassassin whitelist is not taken into account
Post by: pschmehl on June 18, 2024, 03:39:30 AM
OK. Some questions.

What version of SpamAssassin?
What version of the ShortCircuit plugin?
How is your whitelist configured?
Title: Re: Spamassassin whitelist is not taken into account
Post by: ewok2 on June 18, 2024, 02:22:41 PM
Thanks for help
When trying to send my conf I have seen that my "whitelist_from_rcvd" in my local.cf where behind the endif...
I will try with above ;-)
And let you know if it works

Title: Re: Spamassassin whitelist is not taken into account
Post by: ewok2 on June 30, 2024, 11:53:35 AM
... still not works...
So I answer to your questions :-)

Spamassassin version :
QuoteSpamAssassin Server version 3.4.6
  running on Perl 5.34.0
  with SSL support (IO::Socket::SSL 2.074)
  with zlib support (Compress::Zlib 2.102)

Shortcircuit plugin? are you talking about spamass-milter ? :
spamass-milter 0.4.0

my conf in '/usr/share/spamassassin/local.cf' :
Quoteifplugin Mail::SpamAssassin::Plugin::Shortcircuit
shortcircuit USER_IN_WHITELIST       on
shortcircuit USER_IN_DEF_WHITELIST   on
whitelist_from_rcvd *@notif-colissimo-laposte.info notif-colissimo-laposte.info
whitelist_from_rcvd *@infos.digiposte.fr infos.digiposte.fr
whitelist_from_rcvd *@leboncoin.fr leboncoin.fr
endif

Thanks for help if you have any idea ?