| ArGoStuff User to User Support Forums |
help needed with SA/MF integration Last Post 24 Oct 2007 03:30 AM by Dan. 26 Replies. | Sort: |
| Prev Next | You are not authorized to post a reply. | |
Dan
 Basic Member
 Posts:345
 | | 21 Oct 2007 07:39 AM |
| Hi there. I have setup mailfilter to scan emails with spamassassin.exe.... but I ran into trouble. This is my filter Version=4.1 Active=0 [SPAMassassin Direkte] 1 CINCA CRLC CRSTAC:\GratisEmail_SCRIPTS\Paranoid SPAM.txt ARUNC:\Program Files\ArgoSA2\spamassassin.exe¦{X-MF-Filename}¦30¦1 ARUNC:\GratisEmail_SCRIPTS\IMAPrefresh\IMAPRefresh.exe¦-user="{X-MF-To}" -imap="SPAM" -Message="{X-MF-Filename}" -Unique=16¦30¦1 ADEL ASTP As you see I use run application to scan the message, and then I use IMAPrefresh to save the message if it is spam. My problem is that I do not have any IF RETURNCODE = xx THEN in my filter, and I dont seem to be able to put two RUN APPLICATIONS in one filter, one in the IF sentence, and the other in the THEN sentence.... Is there a way around this, or do I have to create several filtes to handle this task? | | |
|
|
Roland - Forum Moderator
 Veteran Member
 Posts:1073

 | | 21 Oct 2007 10:17 AM |
| http://members.commstream.net/test/.../sawin.htmFirst setup MF/SA as shown in the tutorial above. Then create a filter which checks if X-Spam-Level: ****** is present and save the file by imaprefresh. Do not use the move method adviced in the tutorial as it will save the message with an invalid filename. -Roland | | | |
| Dan
 Basic Member
 Posts:345
 | | 21 Oct 2007 11:32 AM |
| Hmmm I have created the bat, and call it, but still nothing....
The headers doesnt even seem to embedded in the header?
I use this to MARK the messages as spam
[SPAMASSASSIN - CHECK IF SPAM] 1 CINCA CSZEBA200 CRLC ARUNC:\Program Files\ArgoSA2\sa.bat¦{X-MF-Filename}¦30¦1
And this to MOVE the spam messages
[SPAMASSASSIN - MOVE SPAM] 1 CINCA CHDR00AX-Spam-Flag: YES¦ ARUNC:\GratisEmail_SCRIPTS\IMAPrefresh\IMAPRefresh.exe¦-user="{X-MF-To}" -imap="SPAM" -Message="{X-MF-Filename}" -Unique=16¦30¦1 ADEL ASTP
sa.bat contains this
set tmpfile=%1.tmp C:\progra~1files\argosa2\spamassassin.exe < %1 > %tmpfile% move /Y %tmpfile% %1 | | | |
| Roland - Forum Moderator
 Veteran Member
 Posts:1073

 | | 21 Oct 2007 11:50 AM |
| C:\progra~1files\argosa2\spamassassin.exe < %1 > %tmpfile%
-->progra~1files
Can you move SA to a path without spaces?
-Roland | | | |
| Dan
 Basic Member
 Posts:345
 | | 22 Oct 2007 06:42 AM |
| Hi Roland
Thank you for your help.
The path was wrong yes ...... but I also found inconsistencies in the ArgoSA2 installation. No matter what I set the threshold to, it always showed required=6.3 in the email headers.
I figured it was using another local.cf from some where, just could not find it. Now I have downloaded a complete fresh SA from the official site, and installed it in C:\spamassassin\ and now it works........
I have also changed my filters... With ArgoSA2 I had no choice but to let SA scann all emails, but now I can ask MF to only scan the emails that are going to accounts that are paying for SA scans.... this really took a load of my server.
Also I got Paranoid up and running.... it is very effective, and I think I will purchase it as soon as the trial expires and I have trained it some more.
I still have to look in to the spamd/spamc solution, but that will come later. | | | |
| Roland - Forum Moderator
 Veteran Member
 Posts:1073

 | | 22 Oct 2007 07:49 AM |
| Dan, I would start with Paranoid 3.0 beta ... it is much more configurable and more efficient than 2.0. You will also have to update MailFilter if you use Paranoid 3.0. You find the most recent versions here: http://sss.schrunk.net-Roland | | | |
| Dan
 Basic Member
 Posts:345
 | | 22 Oct 2007 07:55 AM |
| Hi Roland
Yes I noticed the 3.0 but as it was only in BETA, I did not dare to install it on my production server :-(
I already have the latest version MF.
I Guess I have to setup a full testserver with Argo, PHP, MySql, SF, MF, SA, PSD so that I can test new rules, software and also so that we can test new versions of SQM without ...hickups :-) | | | |
| Roland - Forum Moderator
 Veteran Member
 Posts:1073

 | | 22 Oct 2007 08:07 AM |
| Yes ... use XAMPP !!! | | | |
| Dan
 Basic Member
 Posts:345
 | | 22 Oct 2007 02:35 PM |
| ok I will take it to this forum instead... as it is a MF issue... Now I have copied my settings to all 3 files mentioned here at this old forum thread: http://www.argostuff.com/Forums/tab...aspx So it seems like it runs SA with my settings (how could it anything else)... now when I run SA from MF it is run as SYSTEM, and the bayes, whitelists etc. are saved under DEFAULT USER. But when I go to train SA using the sa-learn.exe it is run as ADMINISTRATOR, so the bayes are saved under ADMINISTRATOR..... the same goes when I use sa-update.... | | | |
| Dan
 Basic Member
 Posts:345
 | | 22 Oct 2007 07:30 PM |
| OK I solved it. I just made includes in the ADMIN and DEFAULT USER files that pointed to the local.cf file.... Then I setup fixed links to bayes and whitelists in the local.cf, and its working. | | | |
| Dan
 Basic Member
 Posts:345
 | | 22 Oct 2007 07:39 PM |
| By the way, I also have the results for the spamassassin.exe vs. the spamc/spamd solution
Spamassassin.exe used as much as 13 sec!!!!
Spamc/spamd used from 300-4000 ms | | | |
| Dan
 Basic Member
 Posts:345
 | | 23 Oct 2007 11:14 PM |
| Roland
I have setup Parnoid 3.0 now, but it keeps saying Core status
what to do?? | | | |
| Alexander - Server Side Solutions Developer
 Basic Member
 Posts:289
 | | 24 Oct 2007 12:10 AM |
| | | | -- Alex -- | |
| Dan
 Basic Member
 Posts:345
 | | 24 Oct 2007 12:19 AM |
| yes it is installed, and the database is created.
What rights does the MySql user need to have in the DB? | | | |
| Alexander - Server Side Solutions Developer
 Basic Member
 Posts:289
 | | 24 Oct 2007 12:23 AM |
| Administrator rights with all priveleges for Paranoid database. From your previous post I didn't understand what it saying "Core status ..." ? | | | -- Alex -- | |
| Dan
 Basic Member
 Posts:345
 | | 24 Oct 2007 12:29 AM |
| in the bottom of PND 3 it says Core status NOT RUNNING.
DB may be the issue as I only gave it basic user rights. read write create etc. | | | |
| Alexander - Server Side Solutions Developer
 Basic Member
 Posts:289
 | | 24 Oct 2007 12:32 AM |
| WHat happen if you click menu -> Service -> Start? | | | -- Alex -- | |
| Dan
 Basic Member
 Posts:345
 | | 24 Oct 2007 12:36 AM |
| Sorry Core status NOT INSTALLED | | | |
| Dan
 Basic Member
 Posts:345
 | | 24 Oct 2007 12:38 AM |
| Is the service name the same for PND2 and 3 or do I have to completely remove PND2 to test PND 3? | | | |
| Alexander - Server Side Solutions Developer
 Basic Member
 Posts:289
 | | 24 Oct 2007 12:54 AM |
| Yes, they are the same. You have to uninstall Paranoid 2 before install Paranoid 3. | | | -- Alex -- | |
|
| You are not authorized to post a reply. |
|
Active Forums 4.2 |
|  | | Mail Server v1.0.8.3 |
- Added support of STARTTLS (STLS) command for SMTP, POP3, IMAP, and SMTP relay and delivery, which will
allow secure, fully encrypted connections, when possible;
| | 11/6/2011 1:10:34 PM |
| Mail Server v1.0.8.2 |
- Optimized delivery speed. In earlier versions each "tick" which was checking whether messages were
in the outbox queue, was picking up only one message at a time. Now it will attempt to pick MaximumAllowedThreads-ActiveDelivery threads
messages, which should considerably increase deliver speed;
- Optimized SEARCH and STATUS IMAP commands. They appear to be used very extensively by Android, and (not that extensively, but still) by
iPhone. Now users who use mobile phones to access their IMAP accounts will see considerable improvement;
- Optimized STORE IMAP command. Before storing of IMAP flags was occuring one message at a time, which seemed to be fine
with SQL server, but proved to be slow for SQLite... Now it happens with single SQL call.
| | 10/8/2011 7:59:35 PM |
| ArGoSoft Mail Server v1.0.8.1 | -
Fixed a bug: when using IMAP via Firefox with "When I delete a message, move it
to Trash folder" option, marking messages in the trash folder was causing high CPU usage,
and was taking some time, making the server pretty much non-responsive. The problem was
happening only when using SQLite.
| | 6/6/2011 9:33:36 PM |
| ArGoSoft Mail Server v1.0.8.0 |
- Fixed a problem with web interface - was showing only first page of messages, and would not
switch to other pages; In order to fix the web interface, mail server itself has to be updated;
- When installint initially, was still using SQLite, even when SQL was requested;
- There was a problem with switching from SQLite database engine to SQL server database engine:
the SQL database was not being created;
| | 5/23/2011 5:53:55 PM |
| ArGoSoft Mail Server .NET v1.0.7.9 |
- The server no longer requires Microsoft SQL Server. If SQL server is not found, it will use
SQLite engine, which does not require separate installation. If SQL server is found, then user will be
prompted whether he wants to use it;
- Made other improvements, such as, now mailbox rebuild indexes orphaned records, rather then deleting them,
also added an opotion to increment UIDL validity of folder (both on the Mailbox viewer box);
- Made minor improvements on web interface;
| | 4/26/2011 9:47:25 PM |
| |
|  |  | |  |
|