2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
XMail Forum · Newbies read here ! All about SMTP,MX-Records,DNS etc. | Help Search Members Calendar |
Welcome Guest ( Log In | Register ) | Resend Validation Email |
BooT |
Posted: Feb 12 2006, 09:24 PM
|
||||||||||||||||||||
Guru Group: Members Posts: 747 Member No.: 375 Joined: 29-November 02 |
Ok...Just an Update on this... Works 100 % now. This is a repost of this topic from one of the other sections... I think it will find a home here.... This is for WINDOWS. Tried and Tested. Hi all...Here is my install procedure and scripts for installing SA 3.1.0 on a WIN32 Server. This will use SA in Serial mode... No SPAMC or SPAMD Use it.... or don't.... Oh...and one more thing.... do not attemp this if u do not have at least 256MB of RAM available on your system!!! ( That is FREE RAM that is not used) Thanx BooT PS: U will need NMAKE. Download the file and rename it to nmake.exe and put in ..\PERL\BIN Folder. http://download.microsoft.com/download/vc1...-US/Nmake15.exe _____________________________________________________ Upgrading from an older version: - Make sure all other Spam Checking Filters/Programs are stopped and/or Disabled. - Stop Xmail Server. - Rename the old SA folder to something else(SA OLD). - Copy the new SA (SA303) to the root folder of C Drive Backup your customized local.cf (It is located at: /Perl/site/etc/mail/spamassassin) Delete these directories if they exist: c:\perl\etc\mail\spamassassin c:\perl\share\spamassassin c:\perl\site\lib\mail\spamassassin.pm and spamassassin folder c:\perl\etc\mail\spamassassin or c:\perl\site\etc\mail\spamassassin c:\perl\html\site\lib\mail\spamassassin or c:\spamdocs or whereever you put the docs last time c:\perl\bin\spamassassin.* and c:\perl\bin\sa-learn.* _____________________________ Upgrade PPM Modules for PERL: Just copy and past one line at a time to a DOS Prompt and it will Upgrade Each module. ppm install Win32-Registry-File ppm install Net-DNS ppm install DB_File ppm install Time-HiRes ppm install IP-Country ppm install Mail-SPF-Query _____________________________ From a DOS box in the SPAMSOURCE directory, type: perl makefile.pl Answer the questions as they are asked. Remember you can NOT build spamc without a C compiler installed and its environment set up. PLS Note: You need to Answer NO to the Question of Compiling here. _____________________________ nmake _____________________________ nmake install _____________________________ Find \perl\bin\spamasasssin.bat ( It is Read Only ) Change Attribute Before and After Edit! ADD the folowing after @ECHO OFF line at the top of the file
Do the same with the file called: sa-learn.bat _____________________________ Critical: Ok, we will try a test. From the SPAMSOURCE directory, type spamassassin -D < sample-spam.txt spamassassin -D -t < sample-nonspam.txt > nospam.txt spamassassin -D -t < sample-spam.txt > spam.txt You should not have any errors!!! Nospam should return a score of 0 Spam should return a score of 1001 OK SA is now Installed! _____________________________ Reconfigure local.cf to reflect the changes: Add any othe Changes that you have made in your original file if they are not displayed here already. -- Begin Local.cf
---END local.cf _____________________________ Make a folder under Mailroot/Filters: SA In SA Folder create 2 other folders: logs tmp _____________________________ Now Copy SA_FILTER2.tab and SA_FILTER2.pl to the Filters Folder Edit your Path's to reflect your OWN servers Path's!!! -Edit SA_FILTER2.tab Make sure that the path to PERl and the Path to the .pl File is correct! I used wperl in stead of perl... seems to be faster and less memory intensive This is my SA_FILTER2.tab file. Create a file on your system (With the same name) and copy and past the code in that file and save it
Remember to use TABS!!!! - Edit SA_FILTER2.pl Make sure the Path to the LOG and Temp Files are Correct!
Make sure that SpamAssassin is called and not SPAMC:
Make Sure Subject Modification is as per Flavour that u like?
Make Sure Spam Level is set to The Amount of Hits for Deletion of mail:
This is my SA_FILTER2.pl file. Create a file on your system(With the same name) and copy and past the code in that file and save it
_____________________________ Edit Filters.in.tab Add this to it. This starts the SpamAssassin Filter to Run:
REMEMBER to use TABS Start X-Mail in debug mode to see if filters fire: change to mailroot/bin folder run: Xmail --debug -Md _____________________________ :::: If all is Well.... Restart Server _____________________________ HINT: Add to "CustMapsList" in server.tab. Remove all entries that are there curently
This is for spam checking aswell..... -------------------- ________________________________________________________________________________
--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =-- [--- Ran Xmail on 2000 Server till Aug 2006 ---] [--- 1.21 From 21 June 2005 till 15 Jan 2006---] [--- 1.20 From 20 July 2004 till 21 June 2005---] [--- 1.17 From 20 October 2003 till 20 July 2004---] |
||||||||||||||||||||
Roi |
Posted: Feb 15 2006, 01:49 PM
|
||||
Junior Member Group: Members Posts: 34 Member No.: 1894 Joined: 31-January 06 |
Stack here. when running the first test, I get
I have triad to find a solution for the problem but nothing up untill now. If anybody have a solution... |
||||
Roi |
Posted: Feb 15 2006, 02:14 PM
|
||||
Junior Member Group: Members Posts: 34 Member No.: 1894 Joined: 31-January 06 |
Solved,
you need to put in :
Don't put the ip No. in the "()". (2 day's gone) |
||||
BooT |
Posted: Feb 19 2006, 09:17 AM
|
Guru Group: Members Posts: 747 Member No.: 375 Joined: 29-November 02 |
So is it working now?
-------------------- ________________________________________________________________________________
--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =-- [--- Ran Xmail on 2000 Server till Aug 2006 ---] [--- 1.21 From 21 June 2005 till 15 Jan 2006---] [--- 1.20 From 20 July 2004 till 21 June 2005---] [--- 1.17 From 20 October 2003 till 20 July 2004---] |
Roi |
Posted: Feb 19 2006, 01:34 PM
|
Junior Member Group: Members Posts: 34 Member No.: 1894 Joined: 31-January 06 |
Nop
I think it's the local.cf part (now) as AS go over the test fine. Maybe you can post your local.cf ? |
BooT |
Posted: Feb 22 2006, 12:49 PM
|
Guru Group: Members Posts: 747 Member No.: 375 Joined: 29-November 02 |
That is my Local.cf file
Just make sure that in the .pl script that u copied that the paths to all your folders are correct. -------------------- ________________________________________________________________________________
--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =-- [--- Ran Xmail on 2000 Server till Aug 2006 ---] [--- 1.21 From 21 June 2005 till 15 Jan 2006---] [--- 1.20 From 20 July 2004 till 21 June 2005---] [--- 1.17 From 20 October 2003 till 20 July 2004---] |
Roi |
Posted: Feb 23 2006, 11:24 PM
|
Junior Member Group: Members Posts: 34 Member No.: 1894 Joined: 31-January 06 |
I may had the path in the SA_FILTER2.tab set wrong.
it said: "e:\perl\bin\wperl.exe d:\mailroot2\filters\sa_filter2.pl" "-f" "-r" "@@RCPT" "-t" "@@FILE" while sa_filter2.pl site at "d:\mailroot2\filters\SA\sa_filter2.pl" I'll know soon enoght..... |
BooT |
Posted: Feb 24 2006, 03:59 AM
|
Guru Group: Members Posts: 747 Member No.: 375 Joined: 29-November 02 |
yea...if u did a default instalation your path would be :
c:\mailroot\ -------------------- ________________________________________________________________________________
--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =-- [--- Ran Xmail on 2000 Server till Aug 2006 ---] [--- 1.21 From 21 June 2005 till 15 Jan 2006---] [--- 1.20 From 20 July 2004 till 21 June 2005---] [--- 1.17 From 20 October 2003 till 20 July 2004---] |
Roi |
Posted: Feb 24 2006, 01:14 PM
|
Junior Member Group: Members Posts: 34 Member No.: 1894 Joined: 31-January 06 |
I have changed the drive letter to 'c'.
I was missing the "SA" sub directory : c:\mailroot2\filters\SA\sa_filter2.pl I have been starting to get some of the SPAM marked with " [-> Possible SPAM <-] so it's working. Now all I have to learn is how to tweek SA's filters..... |
BooT |
Posted: Feb 24 2006, 07:57 PM
|
Guru Group: Members Posts: 747 Member No.: 375 Joined: 29-November 02 |
Happy to have helped...
I would suggest to also install this. Helps a lot aswell: http://xmailforum.homelinux.net/index.php?showtopic=3060 Thanx BooT -------------------- ________________________________________________________________________________
--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =-- [--- Ran Xmail on 2000 Server till Aug 2006 ---] [--- 1.21 From 21 June 2005 till 15 Jan 2006---] [--- 1.20 From 20 July 2004 till 21 June 2005---] [--- 1.17 From 20 October 2003 till 20 July 2004---] |
BooT |
Posted: Aug 17 2006, 10:26 AM
|
Guru Group: Members Posts: 747 Member No.: 375 Joined: 29-November 02 |
This install method now works on SA 3.1.4 aswell. Installed it using this guide and it works 100 %
Thanx BooT -------------------- ________________________________________________________________________________
--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =-- [--- Ran Xmail on 2000 Server till Aug 2006 ---] [--- 1.21 From 21 June 2005 till 15 Jan 2006---] [--- 1.20 From 20 July 2004 till 21 June 2005---] [--- 1.17 From 20 October 2003 till 20 July 2004---] |
Yukka |
Posted: Aug 31 2006, 09:33 AM
|
||||||
Newbie Group: Members Posts: 20 Member No.: 2013 Joined: 15-May 06 |
Sorry, but something wrong... PATH=c:\Perl\bin\;[CUT];E:\X-Mail\sa; _________________________________ path to perl and spamassassin
If i use spamassassin.exe manually they works correctly :-)
I created customdomain
Mails relayed correctly, but SA dont want working :-( Help... |
||||||
BooT |
Posted: Aug 31 2006, 12:10 PM
|
Guru Group: Members Posts: 747 Member No.: 375 Joined: 29-November 02 |
Hi
As far as i know, custome domains does not work with filtersin.tab. You need to add the filter to your filtersout.tab. Try that and see if it works. Did you do the test after you have installed SA? And did they work correctly in the output files? _____________________ Critical: Ok, we will try a test. From the SPAMSOURCE directory, type spamassassin -D < sample-spam.txt spamassassin -D -t < sample-nonspam.txt > nospam.txt spamassassin -D -t < sample-spam.txt > spam.txt You should not have any errors!!! __________________________ -------------------- ________________________________________________________________________________
--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =-- [--- Ran Xmail on 2000 Server till Aug 2006 ---] [--- 1.21 From 21 June 2005 till 15 Jan 2006---] [--- 1.20 From 20 July 2004 till 21 June 2005---] [--- 1.17 From 20 October 2003 till 20 July 2004---] |
Yukka |
Posted: Aug 31 2006, 12:38 PM
|
||||
Newbie Group: Members Posts: 20 Member No.: 2013 Joined: 15-May 06 |
Thank you for fast answer!
SA works correctly.
Trying. |
||||
Yukka |
Posted: Sep 1 2006, 01:22 PM
|
Newbie Group: Members Posts: 20 Member No.: 2013 Joined: 15-May 06 |
I found trouble... If my spamassassin.exe run out of e:\X-Mail\sa folder, they won't work :-(
|