ArGoSoft Mail Server .NET v1.1.0.5

118 views
Skip to first unread message

ArGoSoft Products

unread,
Sep 13, 2018, 11:42:03 AM9/13/18
to ArGoSoft Products
Hello,

We have another version of mail server at our download page.

Here is what's new:

  • Further fixes with IMAP SEARCH command, related to FROM and SUBJECT headers;
  • Added custom SOUNDEX IMAP extension. Currently is used by our upcoming ArGoSoft Email Google Assistant action only (still under development).   See more here;
Upgrade is free.

Thanks

Scott Keen

unread,
Sep 13, 2018, 2:17:06 PM9/13/18
to ArGoSoft Products
Thanks for the product upgrade, Archie!

I hope you'll someday soon also release an upgrade which includes the X-Spam headers in the messages that are returned from SpamAssassin. Email clients like Mozilla Thunderbird parse the message headers and look for the X-Spam headers to process the email as a Junk message.

Thanks,

Scott



Archie

unread,
Sep 13, 2018, 5:11:46 PM9/13/18
to ArGoSoft Products
Hi Scott,

I just pass message to SpamAssassin server, and getting back just a reply with spam rating.  I did not have a chance to figure out if there is the way to retrieve the message itself, modified by SpamAssassin.

I don't want to go as far as going inside of SpamAssassin configuration files and reading its settings.  I could add the header myself, but again, I am not sure what is their header format.  If you could give me an example, because, I guess, you already spent some time over it, I would appreciate it.  Just, how that X-Spam header looks like.

Thanks
Archie

Scott Keen

unread,
Sep 14, 2018, 12:16:14 PM9/14/18
to ArGoSoft Products
Hi Archie,

I found an old spam message from when I was using ArGoSoft Mail Server Pro with the external plugin Server Side Solutions Mail Filter Pro. SSSMFP would call SpamAssassin and include the X-Spam headers returned from SpamAssassin.

The SpamAssassin "X-Spam" headers are typically:
X-Spam-Score
X-Spam-Flag
X-Spam-Level
X-Spam-Status
X-Spam-Report

I would recommend capturing any and all the X-Spam headers.

Here's an example of the complete headers with the X-Spam headers after SpamAssassin has processed it (I [REDACTED] my server domain, IP, and email address for privacy):

Delivered-To: [REDACTED]
Received: by 10.194.216.170 with SMTP id or10csp501468wjc;
       
Tue, 8 Jul 2014 20:18:11 -0700 (PDT)
X
-Received: by 10.229.51.201 with SMTP id e9mr63394170qcg.2.1404875891101;
       
Tue, 08 Jul 2014 20:18:11 -0700 (PDT)
Return-Path: <[REDACTED]>
Received: from [REDACTED] ([REDACTED]. [[REDACTED]])
       
by mx.google.com with ESMTP id k1si43356940qan.109.2014.07.08.20.18.10
       
for <[REDACTED]>;
       
Tue, 08 Jul 2014 20:18:11 -0700 (PDT)
Received-SPF: none (google.com: [REDACTED] does not designate permitted sender hosts) client-ip=[REDACTED];
Authentication-Results: mx.google.com;
       spf
=neutral (google.com: [REDACTED] does not designate permitted sender hosts) smtp.mail=[REDACTED]
Received: from  [[REDACTED]] by [REDACTED] with SMTP ([REDACTED])
 
(ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.9.6)); Tue, 8 Jul 2014 23:18:09 -0400
X
-Spam-Score: 6.3
X
-Spam-Flag: YES
X
-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on [REDACTED]
X
-Spam-Level: ******
X
-Spam-Status: Yes, score=6.3 required=6.3 tests=BAYES_20,DATE_IN_PAST_03_06,
    DCC_CHECK
,DIET_1,HTML_MESSAGE,MIME_HTML_ONLY,RDNS_NONE,SUBJECT_DIET
    shortcircuit
=no autolearn=no version=3.2.3
X
-Spam-Report:
   
*  0.0 RDNS_NONE Delivered to trusted network by a host with no rDNS
   
*  1.5 SUBJECT_DIET Subject talks about losing pounds
   
*  0.0 DATE_IN_PAST_03_06 Date: is 3 to 6 hours before Received: date
   
*  0.1 DIET_1 BODY: Lose Weight Spam
   
*  0.0 HTML_MESSAGE BODY: HTML included in message
   
*  1.5 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
   
* -0.7 BAYES_20 BODY: Bayesian spam probability is 5 to 20%
   
*      [score: 0.0647]
   
*  4.0 DCC_CHECK Listed in DCC (http://rhyolite.com/anti-spam/dcc/)
Received: from  [74.120.148.151] by [REDACTED] with SMTP (EHLO mailout.gigya-ugc.com)
 
(ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.9.6)); Tue, 8 Jul 2014 23:17:54 -0400
Received: from web507 (web507 [10.1.5.7])
   
by mailout.gigya-ugc.com (Postfix) with ESMTP id 2D5DF41E4
   
for <[REDACTED]>; Tue,  8 Jul 2014 18:52:52 -0400 (EDT)
X
-DomainKeys: Sendmail DomainKeys Filter v1.0.1 mailout.gigya-ugc.com 2D5DF41E4
X
-DKIM: Sendmail DKIM Filter v2.7.2 mailout.gigya-ugc.com 2D5DF41E4
Message-ID: <90c57be9a0d87e45a82d4509c32d6bdb@web507>
Date: Tue, 8 Jul 2014 18:52:52 -0400
Subject: *****SPAM( 6.3)***** Easy Way To Lose Weight
From: "[REDACTED]" <[REDACTED]>
List-Unsubscribe: <http://www.gigya.com/site/landing.aspx?ut=stCAARBUElLAAEAAABgAAAAU7e9qeyqYn_qJ6HNGCiPy0uJodQ1ewCEBgD1uyszgI8rer3V8taxGiSkjw8r7FHM5RSR-FkSF9KzkOFdellciqxpp33dQSrbbLR2c2sstsH5eWOPzLDA7PZgrmO8rTpHEAAAAMDshlLdycnOOeX3srEPKE0>
To: <[REDACTED]>
Content-Type: text/html;
    charset
="us-ascii"
Content-Transfer-Encoding: quoted-printable
X
-Sender-Ip: 181.168.154.93
X
-Site: 6148681
MIME
-Version: 1.0
Return-Path: <[REDACTED]>
X
-Spam-Prev-Subject: Easy Way To Lose Weight



Scott Keen

unread,
Sep 14, 2018, 12:24:25 PM9/14/18
to ArGoSoft Products
Archie, would it be simpler/easier to modify MailServer.NET to just capture-and-replace the entire message (or the entire header block) returned from SpamAssassin, rather than trying to parse out what it returns?

Archie

unread,
Sep 14, 2018, 12:33:44 PM9/14/18
to ArGoSoft Products
I will see what I can do over the weekend. Will let you know...

Scott Keen

unread,
Sep 14, 2018, 12:34:26 PM9/14/18
to ArGoSoft Products
Just a short explanation of a couple of the X-Spam headers:

X-Spam-Score = Sum total spam score of the scores found in X-Spam-Report
X-Spam-Level = A "bar graph" representation of the X-Spam-Score, rounded. A X-Spam-Score of "6.3" will have six ****** a X-Spam-Score with "8.9" will have 9 *********
X-Spam-Report = The spam tests that triggered scores. There are hundreds of spam tests, X-Spam-Report only shows the tests that triggered a score.

Archie

unread,
Sep 14, 2018, 2:43:56 PM9/14/18
to ArGoSoft Products
OK. I did figure out how to grab processed message from spamassain, with all appended headers.

I will add fourth option to my Spamassain options just to run it through Spamassain, and deliver it normally, without doing anything. Headers will be there.

I think, it will be enough.

Scott Keen

unread,
Sep 14, 2018, 5:38:15 PM9/14/18
to ArGoSoft Products
That's awesome, Archie!

Looking forward to it. Thanks

Archie

unread,
Sep 15, 2018, 5:31:32 PM9/15/18
to ArGoSoft Products
OK, we have a new pre-release (v1.1.0.51) at


I added another, fourth option at Anti-Spam - SpamAsassin - When Spam is Detected: Process with SpamAssassin and deliver.

If this option is selected, all non-spam messages are getting X-Spam headers, supplied by SpamAssassin.

However, there is an issue here:  if message was detected as spam, SpamAssassin, by default, generates new message warning that it is a spam, and attaches original message as a text/rfc822 attachment.

This can be overridden by setting report_safe to 0 in the local.cf file, but default setting is 1, and some people may not like it.

X-Spam headers are there though.

So, if any other than new option is selected, I am still serving original message (of course, it will be processed by mail server, either by appending SPAM to subject, or placing it into the junk folder), but it will not have X-Spam headers, because we don't want to do double processing:  it will be processed either by SpamAssasin, or by us.

Good side effect is that for messages which are not spam, X-Spam headers will be still there.

I think, it is the right way to handle things.

Archie

Archie

unread,
Sep 16, 2018, 3:27:42 AM9/16/18
to ArGoSoft Products
OK, we have further changes...

Fourth option for SpamAssassin processing is now "Leave processing to SpamAssassin".

If it is selected, messages will be processed according to SpamAssassin settings, and returned by SpamAssassin message will be placed to users Inbox.  It will include all X-Spam headers (unless they are disabled in SpamAssassin configuration) and all.

If any other option is selected, then processing will occur the way as it was working before:  message will be delivered with SPAM in subject, or into Spam folder, or just rejected.  If delivered, there will be no SpamAssassin processing results there.

This way seems to be more logical.

New pre-release version number is 1.1.0.52, and it can be found at


Archie

Scott Keen

unread,
Sep 16, 2018, 1:32:26 PM9/16/18
to ArGoSoft Products
Thanks Archie!

I will try and install it today. I don't have a test server, just a live production server. Is there a way to revert back to the previous version if this has problems?

Cheers,
Scott

Archie

unread,
Sep 16, 2018, 3:34:58 PM9/16/18
to ArGoSoft Products
Yes, of course, if something goes wrong, just download an official release from


and install it as if you are upgrading.

Archie

Message has been deleted

Scott Keen

unread,
Sep 17, 2018, 10:52:27 PM9/17/18
to ArGoSoft Products

Archie,


Your SpamAssassin update is working well!


I've set my Mozilla Thunderbird email client to check SpamAssassin headers and by default it adds these Junk message filters, looking for the "X-Spam-Status" header in the message. It's filtering Junk mail and putting it in the Junk folder.


thunderbird-spamassassin-20180917.JPG




For anyone who might need this tip:

1. The spamd.exe service uses the local.cf configuration file found in <spamassassin-root-folder>\etc\spamassassin\local.cf which in my case is C:\SA\etc\spamassassin\local.cf

2. Restart the spamd.exe service for changes to local.cf to take effect!


Thanks for making this change, Archie. It's working well.


Scott

Mika Fursjö

unread,
Sep 18, 2018, 2:25:01 AM9/18/18
to ArGoSoft Products
Hi, I'm wondering if you can implement DKIM. Domainkey function is a little bit old school. Maybe time to follow the new standard.

Many Thanks

/Mika Fursjö

Archie

unread,
Sep 18, 2018, 6:06:24 AM9/18/18
to ArGoSoft Products

Archie

unread,
Sep 18, 2018, 6:08:25 AM9/18/18
to ArGoSoft Products
I moved one step further (do not have a new pre-release version for download available yet), which would include SpamAssassin processed data even when using older options.

I thought, it would be useful to spam scores even for messages that did go through.

Archie

unread,
Sep 18, 2018, 9:19:18 AM9/18/18
to ArGoSoft Products
There is also an option in Thunderbird, at Tools - Account Settings - Junk Settings:

Capture.JPG


Scott Keen

unread,
Sep 18, 2018, 11:32:15 AM9/18/18
to ArGoSoft Products
Yes, that's what you choose. Then it creates the "SpamAssassinYes" message filter that I screen captured. :-)


Reply all
Reply to author
Forward
0 new messages