MESpamC - MailEnable SpamAssassin Client [v 0.3.1 / 0.2.5]

Discussion, support and announcements for third party applications that work with MailEnable.
Post Reply
someone_else
Posts: 302
Joined: Tue Jul 19, 2005 1:12 pm
Location: 404

MESpamC 0.2.2

Post by someone_else » Sun Aug 06, 2006 7:39 pm

MESpamC 0.2.2 and MESpamCmde 0.2.2 are now available.


changes in this version:
- added: option to PassMEUsername to spamd
- fixed: bug with messages not being processed
- added: spamd ping test



notes:

- To test whether MESpamC can connect to spamd, you can open up a console, navigate to the MESpamC installation folder, and type: 'mespamc -pingspamd'.

- When 'PassMEUsername' is enabled, the username format that MESpamC passes to spamd is mailbox@postoffice. Of course, to use this feature, you'll need to be able to configure individual user preferences in SpamAssassin; otherwise, spamd will continue to use the default settings. For users of the win32 SA build, I recommend having spamd initialize with the '-x --virtual-config-dir=' parameters.
Example:
- spamd is installed in 'c:\usr'
- spamd is started with '-x --virtual-config-dir=vhome/%u'
- MailEnable receives a message for 'someuser@mydomain.com'
- MESpamC resolves 'someuser@mydomain.com' to 'someuser@MYPOSTOFFICE'
- spamd is called, and given the 'someuser@MYPOSTOFFICE' username
- spamd looks for 'c:\usr\vhome\someuser@MYPOSTOFFICE\user_prefs'
MailEnable plugins:
DKeyEvent - DomainKeys/DKIM
MESpamC - SpamAssassin integration

awardle
Posts: 21
Joined: Wed Feb 18, 2004 8:31 pm

Post by awardle » Mon Aug 07, 2006 9:30 pm

This is a great tool,

Just setup Spamd as a windows service and its working a treat, keep up the hard work.

Has anyone got any example config files for spam assasin for delete emails over a certain score?

Thanks

Aaron

awardle
Posts: 21
Joined: Wed Feb 18, 2004 8:31 pm

Post by awardle » Mon Aug 07, 2006 10:42 pm

Just found loads of these errors in my windows event log. Any ideas how to fix it
MESpamC terminated due to an exception. EAccessViolation Access violation at address 0047C2DF in module 'MESpamC.exe'. Read of address 000000C0
And the MESPamC.log file states:
2006/08/07 23:40:56 received truncated reply from 127.0.0.1
2006/08/07 23:41:04 received truncated reply from 127.0.0.1
2006/08/07 23:41:12 received truncated reply from 127.0.0.1
2006/08/07 23:41:29 received truncated reply from 127.0.0.1
2006/08/07 23:42:07 received truncated reply from 127.0.0.1
2006/08/07 23:42:34 received truncated reply from 127.0.0.1
Thanks

someone_else
Posts: 302
Joined: Tue Jul 19, 2005 1:12 pm
Location: 404

Errors

Post by someone_else » Tue Aug 08, 2006 7:11 am

The 'received truncated reply' is usually caused by timeouts; you should increase the spamd timeout setting in the MESpamC.ini file.

As for the first error you mentioned, you'll need to give me some more information. How often does it occur? Does it correlate with the 'truncated reply' messages? Check the timestamp, and cross-reference it to ME logs to see what kind of message it was trying to process (incoming/outgoing, local/remote, etc).
MailEnable plugins:
DKeyEvent - DomainKeys/DKIM
MESpamC - SpamAssassin integration

awardle
Posts: 21
Joined: Wed Feb 18, 2004 8:31 pm

Post by awardle » Tue Aug 08, 2006 7:22 am

This is from the MTA Debug log.
08/08/06 08:18:01 ME-MTA-ROUTE [39CDB1A80CEB4CA685E1D271BC76A10B.MAI] from [LS] Connector queued to [LS] Connector as [5B12D4A9214147C8A0168EE698D22FD1.MAI]
08/08/06 08:18:01 Processing file 39EA105FDA614054BCB894C9766BEE99.MAI from queue LS
08/08/06 08:18:01 Pre Pickup Event executing: C:\Program Files\MESpamC\MESpamC.exe 39EA105FDA614054BCB894C9766BEE99.MAI LS
08/08/06 08:18:02 ME-MTA-ROUTE [39EA105FDA614054BCB894C9766BEE99.MAI] from [LS] Connector queued to [LS] Connector as [C27B5FD0EDEA4F78BAEF2598ACECAA87.MAI]
08/08/06 08:18:03 Processing file 3A1D15C2BD65487D9F2740F4F028E3F2.MAI from queue LS
08/08/06 08:18:03 Pre Pickup Event executing: C:\Program Files\MESpamC\MESpamC.exe 3A1D15C2BD65487D9F2740F4F028E3F2.MAI LS
08/08/06 08:18:05 ME-MTA-ROUTE [3A1D15C2BD65487D9F2740F4F028E3F2.MAI] from [LS] Connector queued to [LS] Connector as [5DA0A3DB0FEC44FDBD08D54B95D159F2.MAI]
08/08/06 08:18:05 Processing file 3A4346B6086A45FE979C8FE26CAD8A66.MAI from queue LS
08/08/06 08:18:05 Pre Pickup Event executing: C:\Program Files\MESpamC\MESpamC.exe 3A4346B6086A45FE979C8FE26CAD8A66.MAI LS
08/08/06 08:18:08 ME-MTA-ROUTE [3A4346B6086A45FE979C8FE26CAD8A66.MAI] from [LS] Connector queued to [LS] Connector as [043CBA188C2046C085C3D583CB3A64FB.MAI]
08/08/06 08:18:09 Processing file 3A60A49983904D0D8EB891A9A811EE47.MAI from queue LS
08/08/06 08:18:09 Pre Pickup Event executing: C:\Program Files\MESpamC\MESpamC.exe 3A60A49983904D0D8EB891A9A811EE47.MAI LS
The timeout is set at 60 originally was 30.

Also the event log errors are every few seconds as if its getting an error on every message.

http://www.pcjuice.com/errors.gif

someone_else
Posts: 302
Joined: Tue Jul 19, 2005 1:12 pm
Location: 404

MESpamC 0.2.2.11

Post by someone_else » Tue Aug 08, 2006 10:32 am

New revisions of MESpamC 0.2.2.11 and MESpamCmde 0.2.2.11 are now available.


changes in this version:
- fixed: bug with truncated messages causing errors
- added: option to AllowMessagesToBeTruncated
- added: filtering options based on spam score



notes:

- Under normal circumstances, 'AllowMessagesToBeTruncated' should be left disabled. A standard build of SpamAssassin will not truncate messages; some plugins, however, might remove parts of the message as per user or even default settings. This option, therefore, should only be used when you expect that messages might be legitimately truncated by SpamAssassin; otherwise, you should leave it disabled, so as to avoid transfer problems resulting in malformed messages.
MailEnable plugins:
DKeyEvent - DomainKeys/DKIM
MESpamC - SpamAssassin integration

someone_else
Posts: 302
Joined: Tue Jul 19, 2005 1:12 pm
Location: 404

deleting messages based on SA spam score

Post by someone_else » Tue Aug 08, 2006 12:39 pm

awardle wrote:Has anyone got any example config files for spam assasin for delete emails over a certain score?
The standard build of SpamAssassin has no option to delete messages (as it is considered to be a bad practice) though you can use the content filtering in MESpamC to do so.

As of build 0.2.2.11, under '[Content-Filtering-PostSA]' you will see two options: 'DeleteIfSpamScoreIsHigherThan' and 'MoveIfSpamScoreIsHigherThan'. It is advised, however, to use caution when employing these settings; generally speaking, you should never set a delete threshold lower than, say, 15.0.
MailEnable plugins:
DKeyEvent - DomainKeys/DKIM
MESpamC - SpamAssassin integration

chan
Posts: 19
Joined: Tue Sep 27, 2005 3:19 am
Location: Malaysia

Post by chan » Thu Aug 10, 2006 2:44 am

Great tool! I had spamassassin and MESpamC installed and my spams are reduced by at least 99%.

Unfortunately I don't have the figure as I don't know how to get the statistics. I come across many great tools for *nix systems but none of them is mentioning Windows (except commercial products).

Can any one recommend some statistic tools for Windows system?
Also another quick question, is there anyway to 'release' the quarantined message?

My Setup:
Windows Server 2003
Mail Enable 1.75
MEFilter 6.21
Spam Assassin 3.1.3 (Win32 Version)
MESpamC 0.2.2

Thanks in advance.

Chan

Dacdonran
Posts: 1
Joined: Sat Aug 12, 2006 2:17 pm
Location: USA

Post by Dacdonran » Sat Aug 12, 2006 2:39 pm

Achtung!!

Annelies
Posts: 5
Joined: Tue Aug 01, 2006 10:49 pm

Post by Annelies » Wed Aug 16, 2006 1:38 pm

It's working beautifully! Thank you so much! :D

Just one little problem:

This is in mij spam.bat:
-----------------
cd c:\usr
spamd -x --virtual-config-dir=vhome/%u --syslog="spamd.log"
-------------------

spamd.log gives me:

Wed Aug 16 15:15:36 2006 [1564] info: spamd: using default config for annelies@techpostoffice: vhome/u/user_prefs



So spamD seems to know me (the user), but it looks like the %u is not translated into the user.

Annelies
Posts: 5
Joined: Tue Aug 01, 2006 10:49 pm

Never mind..

Post by Annelies » Thu Aug 17, 2006 12:32 am

Ah ha, using %%

AndyC
Posts: 3
Joined: Tue Dec 07, 2004 11:41 am

Post by AndyC » Fri Aug 18, 2006 1:48 pm

Firstly, thanks for making this plugin available.

I've installed the win32 version of SA as outlined in a previous post and have the spamd service running from the standard batch file:
cd \usr
spamd.exe --syslog="spamd.log"

The SA downloaded zip is installed in c:\usr

Processing of emails seems to be taking place as evidenced from the SA log, but I have noticed a few anomalies I'm hoping someone can help with.

Fri Aug 18 08:12:40 2006 [2192] info: spamd: connection from xxxxxxx[127.0.0.1] at port 1778
Fri Aug 18 08:12:40 2006 [2192] warn: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody at spamd line 1196, <GEN19> line 3.
Fri Aug 18 08:12:40 2006 [2192] info: spamd: processing message <1082db130608180611l9b68c7dxa3afab690c02ab39@mail.gmail.com> for (unknown):0
Fri Aug 18 08:13:22 2006 [2192] warn: razor2: razor2 check failed: No such file or directory razor2: razor2 had unknown error during get_server_info at /PerlApp/Mail/SpamAssassin/Plugin/Razor2.pm line 179, <GEN19> line 104. at /PerlApp/Mail/SpamAssassin/Plugin/Razor2.pm line 317, <GEN19> line 104.
Fri Aug 18 08:13:27 2006 [2192] warn: dcc: check failed: failed to read header
Fri Aug 18 08:13:27 2006 [2192] info: spamd: clean message (0.0/6.3) for (unknown):0 in 47.5 seconds, 4848 bytes.
Fri Aug 18 08:13:27 2006 [2192] info: spamd: result: . 0 - DK_SIGNED,DK_VERIFIED,HTML_MESSAGE scantime=47.5,size=4848,user=(unknown),uid=0,required_score=6.3,rhost=xxxxxxxx,raddr=127.0.0.1,rport=1778,mid=<1082db130608180611l9b68c7dxa3afab690c02ab39@mail.gmail.com>,autolearn=ham

Notice the error message for Razor2 and dcc, and also the very long processing time, 40+ seconds. There is aslo the warning on the user.

Does anyone have any idea why these would be happening (server is dedicated 2x XEON), and where I can view emails deemed as spam by SA.

Many thanks,
Andy

someone_else
Posts: 302
Joined: Tue Jul 19, 2005 1:12 pm
Location: 404

SA errors

Post by someone_else » Fri Aug 18, 2006 5:05 pm

The dcc and user/root error you can safely ignore; the Razor error... I don't really know. As for the 40+ seconds execution time, well, that is indeed very high. I'm really not that familiar with the Win32 SA build, though, so I couldn't really say what could be causing it...
MailEnable plugins:
DKeyEvent - DomainKeys/DKIM
MESpamC - SpamAssassin integration

Brett Rowbotham
Posts: 544
Joined: Mon Nov 03, 2003 7:48 am
Location: Cape Town

Post by Brett Rowbotham » Mon Aug 21, 2006 6:10 am

Try setting:

use_razor2 0
use_dcc 0

in local.cf to disable the Razor and DCC tests.

avatel
Posts: 58
Joined: Mon Oct 27, 2003 3:02 pm
Location: France

Post by avatel » Thu Aug 24, 2006 9:19 am

Hi,

your SA client is great and works fine...
except when I try to setup WinSpamC to delete mails with score above 15.

As soon as I set

Code: Select all

DeleteIfSpamScoreIsHigherThan=15
the following errors appear in Windows Event logs and my mails are no longer tagged :

Code: Select all

MESpamC terminated due to an exception. EConvertError '16.4' is not a valid floating point value
Do you have any idea of the problem ?

TIA
Arno

Post Reply