putting $debug=1 and uncommenting a print statement in line 290 I did the folllowing confrontation between a server where I get the spam-unjunk mail report and the one where I do not get it:
1) Working:
video output of /usr/local/unjunkmgr/spamreminder.pl:
Found Spam email: hidden@mifar.com with score Spam (6.9) (0)Found Spam email: hidden@rotary2031.it with score Spam (5.2) (1)User : hidden (hidden)
corresponding message header where I extracted the spam relevant lines:
X-Spam-Level: ********
X-Spam-Status: Yes, hits=8.0 required=5.0 tests=HTML_IMAGE_ONLY_04,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,HTML_SHORT_LINK_IMG_1,MIME_BASE64_BLANKS,MIME_HTML_ONLY,MSGID_FROM_MTA_HEADER,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RDNS_NONE,T_KHOP_FOREIGN_CLICK,T_REMOTE_IMAGE,URIBL_BLOCKED
X-Spam-Flag: YES
X-Spam-Check-By: hidden-domain.it
X-Spam-Report: v=2.0 cv=TcwURGsh c=1 sm=1 p=tXbHRq2oAAAA:8
p=uClTJ7Xtslgvyvu4nGkA:9 a=qBtjWUSc9CMPdisi4oDSTw==:17 a=1rPLbuJyMEUA:10
a=YB88Tshpz5oA:10 a=jPJDawAOAc8A:10 a=zeH40u4Env0A:10 a=iJEPqD7cgKUA:10
a=IkcTkHD0fZMA:10 a=ksMLu6rquOUA:10 a=oGRXrEK-AAAA:8 a=QEXdDO2ut3YA:10
a=KxyxJeeqAQsA:10 a=Iq5J-LwyKFkA:10 a=0KDs1bEon0kA:10
a=qBtjWUSc9CMPdisi4oDSTw==:117
X-Spam-Rating: mxavas1.ad.aruba.it 1.6.2 0/1000/N
X-Old-Spam-Flag: YES
X-Old-Spam-Status: Yes
2) Not working:
video output of /usr/local/unjunkmgr/spamreminder.pl:
Found Spam email: noreply@wetransfer.com with score Unknown (0)Found Spam email: noreply@wetransfer.com with score Unknown (1)User : Segreteria Operativa (segreteria)
corresponding message header where I extracted the spam relevant lines:
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mx-avas-01.mvmnet.com
X-Spam-Flag: YES
X-Spam-Level: ******
X-Spam-Status: Yes, score=6.3 required=4.0 tests=HTML_IMAGE_RATIO_04,HTML_MESSAGE,MVMNET_UNSUB,MVMNET_XMAIL_GENMLR,MVMNET_XMAIL_PHPMAILER,MVMNET_XMAIL_PHPMLR,RDNS_NONE autolearn=disabled version=3.3.2
X-Spam-Relay-Country: DE DE
X-Spam-Report:
* 0.5 MVMNET_XMAIL_PHPMLR Moviement PHPMailer
* 0.5 MVMNET_XMAIL_GENMLR Generic Mailer
* 1.5 MVMNET_XMAIL_PHPMAILER Moviement phpmailer detected
* 1.8 MVMNET_UNSUB URI: Moviement link to path with unsubscribe
* 0.6 HTML_IMAGE_RATIO_04 BODY: HTML has a low ratio of text to image area
* 0.1 HTML_MESSAGE BODY: HTML included in message
* 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Spam-Prev-Subject: =?utf-8?Q?Citt=C3=A0_dei_balocchi?=
In one situation in X-Spam-Status is used the word "hits" to identify spam score, in the other it is used the word "score" (all done, I suppose by the ISP that manage the mail of the two customers - 2 different ISPs); I don't know if this makes any difference in the spamreminder.pl leaving $spamcount variable to 0 so preventing to create and send the reminder message - see line 200 of the code:
($spam, $score, $spamlimit) = $x =~ m/^X-Spam-Status: ([^\,]+)\, hits=([^\ ]+)\ required=(.*)/;
NIcola