Reply to this topicStart new topicStart Poll

> Spamassassin 3.1.0 On Win32 Servers In Serial Mode, A HowTo on how i did it....
BooT
Posted: Feb 12 2006, 09:24 PM
Quote Post


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.... smile.gif

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
CODE

SET RES_NAMESERVERS=ipaddress( This is your DNS Server)
SET LANG=en_US


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
CODE

add_header all Status _YESNO_, hits=_SCORE_ required=_REQD_ tests=_TESTS_
add_header all Checker-Version SpamAssassin _VERSION_

rewrite_subject         0

# Encapsulate spam in an attachment
report_safe             2
# Use terse version of the spam report
use_terse_report        0
# Enable the Bayes system
use_bayes               1
# Enable Bayes auto-learning
auto_learn              1
# Enable or disable network checks
skip_rbl_checks         0
use_razor2              0
use_dcc                 0
use_pyzor               0

trusted_networks xxx.xxx.xxx.xxx

whitelist_from user@domain.com
whitelist_from *@domain.com

blacklist_from user@domain.com
blacklist_from *@domain.com

---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
CODE
"e:\perl\bin\wperl.exe d:\mailroot2\filters\sa_filter2.pl" "-f" "-r" "@@RCPT" "-t" "@@FILE"

Remember to use TABS!!!!

- Edit SA_FILTER2.pl

Make sure the Path to the LOG and Temp Files are Correct!
CODE
my $XMAIL_LOG_PATH="d:\\mailroot2\\filters\\sa\\logs";
my $TMP_DIR="d:\\mailroot2\\filters\\sa\\tmp";


Make sure that SpamAssassin is called and not SPAMC:

CODE
# pass rest to spamc
my $checkedEmail=`spamassassin < $tmpFile`;


Make Sure Subject Modification is as per Flavour that u like?
CODE
#modify subject
$checkedEmail =~ s/\nSubject: /\nSubject: [->Possible SPAM<-] /i;


Make Sure Spam Level is set to The Amount of Hits for Deletion of mail:

CODE
exit 4 unless ($spamLevel <= 10.5);


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
CODE

#!/usr/bin/perl

# $Id: sa_filter.pl,v 1.4 2003/04/13 00:47:00 drake Exp $
#
# sa_filter2.pl
#
# Don Drake
# Drake Consulting
# don@drakeconsult.com
# http://www.drakeconsult.com/xmail/
#
#    sa_filter.pl Copyright (C) 2002 Don Drake - Drake Consulting
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#    Edited by BooT on 18 May 2005 to run in serial mode on WIN32 SYSTEM

use strict;
use Getopt::Std;

my $XMAIL_LOG_PATH="d:\\mailroot2\\filters\\sa\\logs";
my $TMP_DIR="d:\\mailroot2\\filters\\sa\\tmp";
my $MAX_SIZE=256000;

sub getCommandLine();
sub logit($$$);
sub openLog($$);
sub closeLog($);

my($rcpt,$fileName)=getCommandLine();
my $logHandle=openLog($XMAIL_LOG_PATH,$rcpt);

# Verify the arguments sent to us are valid.
if ($rcpt !~/^[\w@.-]/) {
logit($logHandle,"Invalid RCPT: $rcpt",$rcpt);
exit 1;
}

if (! -f $fileName) {
logit($logHandle,"Can't find email file $fileName",$rcpt);
exit 1;
}

if (-s $fileName > $MAX_SIZE) {
logit($logHandle,"EMAIL TOO BIG",$rcpt);
exit 1;
}

if (! -d $TMP_DIR) {
logit($logHandle,"TMP_DIR is not a directory",$rcpt);
exit 1;
}

if (! -w $TMP_DIR) {
logit($logHandle,"TMP_DIR is not writable",$rcpt);
exit 1;
}

#Need to take first 6 lines out of file (xmail header)
#so spamc doesn't see it.
my $randNum=rand $$ * 1000;
my $tmpFile="$TMP_DIR/tmp.DrakeSpam.$$.$randNum";
open my $inHandle, $fileName or die ("can't open filename: $fileName");
open my $tmpHandle, ">$tmpFile" or die ("can't open filename for writing: $tmpFile");
my $count=0;
my $xmailHeader="";
while (<$inHandle>) {
if ($count < 6) {
$xmailHeader.=$_;
} else {
print $tmpHandle $_;
}
$count++;
}
close $tmpHandle;
close $inHandle;

# pass rest to spamc
my $checkedEmail=`spamassassin < $tmpFile`;

#results are in $checkedEmail, don't need the temp file anymore.
unlink $tmpFile;

my $isSpam="NOT SPAM";
if ($checkedEmail=~/X-Spam-Flag: YES/) {
$isSpam="SPAM";
#$checkedEmail=~s/(?<!\r)\n/\r\n/g;
$xmailHeader=~s/(?<!\r)\n/\r\n/g;

#modify subject
$checkedEmail =~ s/\nSubject: /\nSubject: [->Possible SPAM<-] /i;
}

# looking for:
# X-Spam-Status: No, hits=-4.3 required=5.0 tests=
my $spamLevel=0;
if ($checkedEmail =~/X-Spam-Status: .*? hits=(-?\d+\.\d+) /) {
$spamLevel=$1;
}
exit 4 unless ($spamLevel <= 10.5);


# put first 6 lines back on returned message
# put it back in the file
open my $outHandle,">$fileName" or die("Can't open file $fileName for writing");
print $outHandle $xmailHeader;
print $outHandle $checkedEmail;
close $outHandle;

# log results
logit($logHandle,$isSpam,$rcpt);

closeLog($logHandle);

# We're always modifying the message because spamassassin will add some X-Spam- headers
# if it's spam or not.

#chose you version:

#Version 1.15 or before
#exit 100;

# Version 1.16
exit 7;

sub openLog($$) {
my ($logPath,$rcpt)=(@_);

my ($sec,$min,$hour,$dmon,$mon,$year,$wday,$yday,$isdst) = localtime(time());
$year+=1900;
$mon++;

# format the filename similar to other xmail log files.
my $date = sprintf("%04d%02d%02d",$year,$mon,$dmon );

my $logFile = "$logPath/spam-${date}-$rcpt.txt";

open (my $logHandle, ">>$logFile") or die("Can't open log file $logFile");
return $logHandle;
}

sub closeLog($) {
my ($logHandle)=@_;

close($logHandle);
}

sub logit($$$) {
my ($logHandle,$msg,$rcpt)=@_;

#Strip any new lines.
$msg=~s/\n|\r//g;
my ($sec,$min,$hour,$dmon,$mon,$year,$wday,$yday,$isdst) = localtime(time());
$year+=1900;
$mon++;

my $dateTime = sprintf("\"%04d-%02d-%02d %02d:%02d:%02d\"",$year,$mon,$dmon,$hour,$min,$sec);
$msg="\"$msg\"";
$rcpt="\"$rcpt\"";
print $logHandle "$dateTime\t$msg\t$rcpt\n";
}

sub getCommandLine() {
use vars qw($opt_r $opt_t );

      $opt_r=$opt_t="";
      #getopt('r:t:');
$opt_r = $ARGV[2];
$opt_t = $ARGV[4];
if (substr($opt_t,0,4) eq '\\\\?\\')
{
$opt_t = substr($ARGV[4],4);
}
      if ($opt_r eq "" || $opt_t eq "" ) {
              die "usage: $0 -f -r \@\@RCPT -t \@\@TMPFILE \n";
      }
      return ($opt_r,$opt_t);
}



_____________________________

Edit Filters.in.tab

Add this to it. This starts the SpamAssassin Filter to Run:
CODE

"*" "*" "0.0.0.0/0" "0.0.0.0/0" "sa_filter2.tab"

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

CODE
sbl-xbl.spamhaus.org.:0,combined.njabl.org.:0,bl.spamcop.net.:0


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---]
PMEmail Poster
Top
Roi
Posted: Feb 15 2006, 01:49 PM
Quote Post


Junior Member
**

Group: Members
Posts: 34
Member No.: 1894
Joined: 31-January 06



QUOTE (BooT @ Feb 12 2006, 09:24 PM)
_____________________________

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


Stack here.
when running the first test, I get
CODE

dbg: dns: name server: ipaddress(, family: 2, ipv6: 0
Error creating a DNS resolver socket: Invalid argument at lib/Mail/SpamAssassin/DnsResolver.pm line 202.


I have triad to find a solution for the problem but nothing up untill now.

If anybody have a solution...
PM
Top
Roi
Posted: Feb 15 2006, 02:14 PM
Quote Post


Junior Member
**

Group: Members
Posts: 34
Member No.: 1894
Joined: 31-January 06



Solved,

CODE
SET RES_NAMESERVERS=ipaddress( This is your DNS Server)


you need to put in :
CODE
SET RES_NAMESERVERS=1.2.3.4

Don't put the ip No. in the "()". nono.gif

(2 day's gone)
PM
Top
BooT
Posted: Feb 19 2006, 09:17 AM
Quote Post


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---]
PMEmail Poster
Top
Roi
Posted: Feb 19 2006, 01:34 PM
Quote Post


Junior Member
**

Group: Members
Posts: 34
Member No.: 1894
Joined: 31-January 06



Nop dontgetit.gif

I think it's the local.cf part (now) as AS go over the test fine.
Maybe you can post your local.cf ?
PM
Top
BooT
Posted: Feb 22 2006, 12:49 PM
Quote Post


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---]
PMEmail Poster
Top
Roi
Posted: Feb 23 2006, 11:24 PM
Quote Post


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.....
PM
Top
BooT
Posted: Feb 24 2006, 03:59 AM
Quote Post


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---]
PMEmail Poster
Top
Roi
Posted: Feb 24 2006, 01:14 PM
Quote Post


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.....
PM
Top
BooT
Posted: Feb 24 2006, 07:57 PM
Quote Post


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---]
PMEmail Poster
Top
BooT
Posted: Aug 17 2006, 10:26 AM
Quote Post


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---]
PMEmail Poster
Top
Yukka
Posted: Aug 31 2006, 09:33 AM
Quote Post


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
QUOTE

sa_filter2.tab
"C:\Perl\bin\wperl.exe E:\X-Mail\MailRoot\filters\sa_filter2.pl" "-f" "-r" "@@RCPT" "-t" "@@FILE"

filters.in
"*" "*" "0.0.0.0/0" "0.0.0.0/0" "sa_filter2.tab"

If i use spamassassin.exe manually they works correctly :-)
QUOTE

sa_filter2.pl
#!/usr/bin/perl

use strict;
use Getopt::Std;

my $MAX_SIZE=2048;
my $XMAIL_LOG_PATH="E:\\X-Mail\\sa\\logs"; <this path is correct
my $TMP_DIR="E:\\X-Mail\\sa\\tmp"; <this path is correct

sub getCommandLine();
sub logit($$$);
sub openLog($$);
sub closeLog($);

my($rcpt,$fileName)=getCommandLine();
my $logHandle=openLog($XMAIL_LOG_PATH,$rcpt);

# Verify the arguments sent to us are valid.
if ($rcpt !~/^[\w@.-]/) {
logit($logHandle,"Invalid RCPT: $rcpt",$rcpt);
exit 1;
}

if (! -f $fileName) {
logit($logHandle,"Can't find email file $fileName",$rcpt);
exit 1;
}

if (-s $fileName > $MAX_SIZE) {
logit($logHandle,"EMAIL TOO BIG",$rcpt);
exit 1;
}

if (! -d $TMP_DIR) {
logit($logHandle,"TMP_DIR is not a directory",$rcpt);
exit 1;
}

if (! -w $TMP_DIR) {
logit($logHandle,"TMP_DIR is not writable",$rcpt);
exit 1;
}

#Need to take first 6 lines out of file (xmail header)
#so spamc doesn't see it.
my $randNum=rand $$ * 1000;
my $tmpFile="$TMP_DIR/tmp.DrakeSpam.$$.$randNum";
open my $inHandle, $fileName or die ("can't open filename: $fileName");
open my $tmpHandle, ">$tmpFile" or die ("can't open filename for writing: $tmpFile");
my $count=0;
my $xmailHeader="";
while (<$inHandle>) {
if ($count < 6) {
$xmailHeader.=$_;
} else {
print $tmpHandle $_;
}
$count++;
}
close $tmpHandle;
close $inHandle;

# pass rest to spamc
my $checkedEmail=`spamassassin < $tmpFile`;
$checkedEmail =~ s/\nSubject: /\nSubject: [XMail] /i; < ADDED BY ME

#results are in $checkedEmail, don't need the temp file anymore.
unlink $tmpFile;

my $isSpam="NOT SPAM";
if ($checkedEmail=~/X-Spam-Flag: YES/) {
$isSpam="SPAM";
#$checkedEmail=~s/(?<!\r)\n/\r\n/g;
$xmailHeader=~s/(?<!\r)\n/\r\n/g;

#modify subject
$checkedEmail =~ s/\nSubject: /\nSubject: [***SPAM***] /i;
}

# looking for:
# X-Spam-Status: No, hits=-4.3 required=5.0 tests=
my $spamLevel=0;
if ($checkedEmail =~/X-Spam-Status: .*? hits=(-?\d+\.\d+) /) {
$spamLevel=$1;
}
exit 4 unless ($spamLevel <= 16.0);


# put first 6 lines back on returned message
# put it back in the file
open my $outHandle,">$fileName" or die("Can't open file $fileName for writing");
print $outHandle $xmailHeader;
print $outHandle $checkedEmail;
close $outHandle;

# log results
logit($logHandle,$isSpam,$rcpt);

closeLog($logHandle);

# We're always modifying the message because spamassassin will add some X-Spam- headers
# if it's spam or not.

#chose you version:

#Version 1.15 or before
#exit 100;

# Version 1.16
exit 7;

sub openLog($$) {
my ($logPath,$rcpt)=(@_);

my ($sec,$min,$hour,$dmon,$mon,$year,$wday,$yday,$isdst) = localtime(time());
$year+=1900;
$mon++;

# format the filename similar to other xmail log files.
my $date = sprintf("%04d%02d%02d",$year,$mon,$dmon );

my $logFile = "$logPath/spam-${date}-$rcpt.txt";

open (my $logHandle, ">>$logFile") or die("Can't open log file $logFile");
return $logHandle;
}

sub closeLog($) {
my ($logHandle)=@_;

close($logHandle);
}

sub logit($$$) {
my ($logHandle,$msg,$rcpt)=@_;

#Strip any new lines.
$msg=~s/\n|\r//g;
my ($sec,$min,$hour,$dmon,$mon,$year,$wday,$yday,$isdst) = localtime(time());
$year+=1900;
$mon++;

my $dateTime = sprintf("\"%04d-%02d-%02d %02d:%02d:%02d\"",$year,$mon,$dmon,$hour,$min,$sec);
$msg="\"$msg\"";
$rcpt="\"$rcpt\"";
print $logHandle "$dateTime\t$msg\t$rcpt\n";
}

sub getCommandLine() {
use vars qw($opt_r $opt_t );

      $opt_r=$opt_t="";
      #getopt('r:t:');
$opt_r = $ARGV[2];
$opt_t = $ARGV[4];
if (substr($opt_t,0,4) eq '\\\\?\\')
{
$opt_t = substr($ARGV[4],4);
}
      if ($opt_r eq "" || $opt_t eq "" ) {
              die "usage: $0 -f -r \@\@RCPT -t \@\@TMPFILE \n";
      }
      return ($opt_r,$opt_t);
}


I created customdomain
QUOTE

customdomain.tab

"FILTER" "1" "60" "C:\Perl\bin\wperl.exe E:\X-Mail\MailRoot\filters\sa_filter2.pl" "-f" "-r" "@@RCPT" "-t" "@@FILE"
"smtprelay" "1.1.1.1:25"


Mails relayed correctly, but SA dont want working :-(
Help...
PMEmail Poster
Top
BooT
Posted: Aug 31 2006, 12:10 PM
Quote Post


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---]
PMEmail Poster
Top
Yukka
Posted: Aug 31 2006, 12:38 PM
Quote Post


Newbie
*

Group: Members
Posts: 20
Member No.: 2013
Joined: 15-May 06



Thank you for fast answer!
QUOTE

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!!!
__________________________


SA works correctly.


QUOTE

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.


Trying.
PMEmail Poster
Top
Yukka
Posted: Sep 1 2006, 01:22 PM
Quote Post


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 :-(
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Fighting SPAM | Next Newest »

Reply to this topicStart new topicStart Poll