Mail service & SpamAssassin

Whitehill

Registered
In Server Admin on the panel Mail -> Settings -> Filters, I checked "Scan email for junk mail", set the minimum score to 5, and told it to deliver junk after adding "*** JUNK MAIL ***" to the subject.

I think this is not doing anything. I use Mail.app in which I have added a rule to note mails with "*** JUNK MAIL ***" in the subject and deposit same in a special folder. Nothing ever arrives there.

Have I missed a step?
 
Adding to the above, using webmin, I added an explicit blacklist to /etc/mail/spamassassin/local.cf with the line

blacklist_from *@freebies-news.com

The log lines for a message a couple of hours ago are below. It sure looks like is passing all checks and being delivered as non-spam.

Mar 30 11:03:28 ...: (26575-06) ESMTP::10024 /var/amavis/amavis-20060330T104406-26575: <bounce-heskkdjktsaj@freebies-news.com> -> <mike@somedomain.com> Received: SIZE=5496 from server.home.net ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26575-06 for <mike@somedomain.com>; Thu, 30 Mar 2006 11:03:28 -0500 (EST)
Mar 30 11:03:29 ...: (26575-06) Checking: [64.20.227.200] <bounce-heskkdjktsaj@freebies-news.com> -> <mike@somedomain.com>Mar 30 11:03:29 localhost /usr/bin/amavisd[26575]: (26575-06) p003 1 Content-Type: multipart/alternativeMar 30 11:03:29 localhost /usr/bin/amavisd[26575]: (26575-06) p001 1/1 Content-Type: text/plain, size: 1192 B, name:
Mar 30 11:03:29 ...: (26575-06) p002 1/2 Content-Type: text/html, size: 2514 B, name:
Mar 30 11:03:29 ...: (26575-06) FWD via SMTP: [127.0.0.1]:10025 <bounce-heskkdjktsaj@freebies-news.com> -> <mike@somedomain.com>
Mar 30 11:03:29 ...: (26575-06) Passed, <bounce-heskkdjktsaj@freebies-news.com> -> <mike@somedomain.com>, Message-ID: <23629868.1143734553595.JavaMail.root@freebies-news.com>, Hits: 2.332Mar 30 11:03:29 localhost /usr/bin/amavisd[26575]: (26575-06) Passed CLEAN, <bounce-heskkdjktsaj@freebies-news.com> -> <mike@somedomain.com>, Hits: 2.332, tag=-999, tag2=5, kill=22, 0/Y/0/0Mar 30 11:03:29 localhost /usr/bin/amavisd[26575]: (26575-06) TIMING [total 694 ms] - SMTP EHLO: 4 (1%), SMTP pre-MAIL: 2 (0%), SMTP pre-DATA-flush: 3 (0%), SMTP DATA: 273 (39%), body_hash: 1 (0%), mime_decode: 16 (2%), get-file-type2: 41 (6%), decompose_part: 3 (0%), parts_decode: 1 (0%), spam-wb-list: 9 (1%), SA msg read: 2 (0%), SA parse: 6 (1%), SA check: 163 (23%), update_cache: 1 (0%), fwd-connect: 26 (4%), fwd-mail-from: 1 (0%), fwd-rcpt-to: 2 (0%), write-header: 3 (0%), fwd-data: 1 (0%), fwd-data-end: 127 (18%), fwd-rundown: 1 (0%), main_log_entry: 8 (1%), update_snmp: 0 (0%), unlink-2-files: 1 (0%), rundown: 1 (0%)
 
Whitehill said:
In Server Admin on the panel Mail -> Settings -> Filters, I checked "Scan email for junk mail", set the minimum score to 5, and told it to deliver junk after adding "*** JUNK MAIL ***" to the subject.

I think this is not doing anything. I use Mail.app in which I have added a rule to note mails with "*** JUNK MAIL ***" in the subject and deposit same in a special folder. Nothing ever arrives there.

Have I missed a step?

I made the settings in the mail server also. I see an occasionally marking of an email. I expect the filter is not sensitive enough to pick out more mails. Maybe you should set the value 5 differently (MAIL does the JUNK separation for me for about 95%), so i do not care enough about it.

Also check the setting what the server must do with the marked mail. 1 of the options is dispose of it.


Good luck, Kees
 
I have been away for some time. Since my last post I have been nudging the minimum score down - it's now at 1 so I'm at the end of this line of investigation. I continue to monitor the logs as time permits. In Mail.app my first "rule" is to check subject for "JUNK MAIL" and move it to a special folder, which is now and always has been empty.

To the best of my knowledge, this thing has never marked even one piece of mail as junk.
 
In Server Admin / Mail / Settings / Filters, I changed the setting for Junk mail messages should be from Delivered to Redirected, to spam-quarantine@home.net.

Then I added spam-quarantine as an alias for my user name, created a new mail folder Quarantine, and added a rule to dump messages there if they contain the header X-Quarantine-Id followed by the word spam somewhere.

What do you know? Instantly messages started appearing in the new folder with the expected SpamAssassin headers!!

It appears that the setting Delivered doesn't perform as expected - at least, as I expected.
 
Whitehill said:
It appears that the setting Delivered doesn't perform as expected - at least, as I expected.

As mentioned before, I do get an occasional message marked as SPAM (I changed the setting to a lower value, but i ended up by 4 as otherwise some message were marked as SPAM incorrectly). I have the setting to delivered.

I am not impressed by this option as it does not find enough messages which are really SPAM.

Also maybe some message you find are not marked by this program, but by other programs. Best to try out by changed the MARKER to a private value.


Good luck, Kees
 
Back
Top