SpamAssassin plugin for CommuniGate Pro 4.x, 5.x
Installation and usage instructions can be found at
http://www.stalker.com/CGPSpamCatcher/#Integrate
Copyright (C) 2003-2006 Andy Igoshin <[EMAIL PROTECTED]>
Version 1.1.3
ftp://ftp.vsu.ru/pub/apps/CGP/sa-cgp.c
ftp://ftp.vsu.ru/pub/apps/CGP/Mail-SpamAssassin-3.1.4-headers.diff
(SpamAssassin 3.1.x, patch required!)
---------------------------------------------------------------------------
Building:
AIX: cc_r sa-cgp.c libspamc.c utils.c -o sa-cgp
FreeBSD: cc -pthread -D_REENTRANT sa-cgp.c libspamc.c
utils.c -o sa-cgp
Linux: gcc -pthread sa-cgp.c libspamc.c utils.c -o
sa-cgp
Solaris: cc -mt sa-cgp.c libspamc.c utils.c -o sa-cgp
-lsocket -lnsl
gcc -threads sa-cgp.c libspamc.c utils.c -o sa-cgp
-lsocket -lnsl
Installation:
1. Since this patch changes the SpamAssassin core you
should install
or reinstall the SpamAssassin after applying this
patch.
2. Example of CGP Settings->Queue->Rules:
Any Route in LOCAL(*,LIST(*
Message Size less than 700000
Source not in trusted,authenticated
CGP 'Message Size' should be less than corresponding
max message size
from 'sa-cgp -s <max message size>'.
sa-cgp default max message size is 700*1024 bytes.
3. Quantities of CGP 'Message Enqueuer Processors' and
spamd 'num children'
should be coordinated (processors < num children). For
example:
Settings->Queue->Settings->Message Enqueuer Processors:
50
spamd -m 64 --max-conn-per-child=10
The spamd's '--max-conn-per-child' parameter may
increase
the stability of spamd.
---------------------------------------------------------------------------
Required option for SpamAssassin config:
/etc/spamassassin/local.cf:
report_safe 0
---------------------------------------------------------------------------
This new version allows per-user config options to be
implemented.
Usage: sa-cgp [options]
-d host[,host2] : specify host to connect to
[default: localhost]
-h : print this help message
-p <port> : specify port for connection
[default: 783]
-r {0|1} : rcpt mode: 0 - use single user
for all rcpt
: 1 - use rcpt
as user
-s <size> : specify max message size, any
bigger and it will
: timeout in seconds to
read from spamd.
: 0 disables, default:
600 sec
-u <username> : username used in single user mode
-U <path> : use UNIX domain socket with
path