Hi, I've just installed Dspam 3.8.0 on a CentOS5 fully updated server.
This is my MXs relay server, (with no local accounts),which its only
purpose is to relay mail to my internal servers, see the picture
below:
[MXs Server] [Postfix]
[Postfix] -> { Delivery } --------------------- [Mail
Server 1]
-> [DSPAM] as a content filter
[DSPAM] --------------------- [Mail Server
2]
|___ (SMTP Reinjection)
____| ---------------------
[Mail Server 1]
....
I compile dspam with this options:
./configure --enable-shared --disable-static --enable-daemon
--enable-clamav --enable-syslog --enable-large-scale
--enable-virtual-users --with-gnu-ld --with-pic
--with-storage-driver=mysql_drv,hash_drv
--with-mysql-includes=/usr/include/mysql
--with-mysql-libraries=/usr/lib/mysql --enable-debug
These are my dspam.conf and master.cf.
dspam.conf:
Home /usr/local/var/dspam
StorageDriver /usr/local/lib/libmysql_drv.so
DeliveryHost 127.0.0.1
DeliveryPort 10025
DeliveryIdent localhost
DeliveryProto SMTP
OnFail error
Trust root
Trust mail
Trust mailnull
Trust smmsp
Trust daemon
Trust postfix
Trust postdrop
Trust dspam
Trust nobody
Trust apache
Debug *
TrainingMode teft
TestConditionalTraining on
Feature whitelist
Algorithm graham burton
Tokenizer chain
PValue bcr
WebStats on
Preference "spamAction=quarantine"
Preference "signatureLocation=message" # 'message' or 'headers'
Preference "showFactors=off"
AllowOverride trainingMode
AllowOverride spamAction spamSubject
AllowOverride statisticalSedation
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride signatureLocation
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
#MySQLServer /var/lib/mysql/mysql.sock
MySQLServer 127.0.0.1
MySQLPort 3306
MySQLUser dspamuser
MySQLPass beelkedo
MySQLDb dspamdb
MySQLCompress true
HashRecMax 98317
HashAutoExtend on
HashMaxExtents 0
HashExtentSize 49157
HashPctIncrease 10
HashMaxSeek 10
HashConnectionCache 10
Notifications off
PurgeSignatures 14 # Stale signatures
PurgeNeutral 90 # Tokens with neutralish probabilities
PurgeUnused 90 # Unused tokens
PurgeHapaxes 30 # Tokens with less than 5 hits (hapaxes)
PurgeHits1S 15 # Tokens with only 1 spam hit
PurgeHits1I 15 # Tokens with only 1 innocent hit
LocalMX 127.0.0.1
SystemLog on
UserLog on
Opt out
ServerPID /var/run/dspam.pid
ServerMode auto
ServerParameters "--deliver=innocent"
#ServerDomainSocketPath "/var/spool/postfix/tmp/dspam.sock"
ServerDomainSocketPath "/tmp/dspam.sock"
ProcessorURLContext on
ProcessorBias on
master.cf (the rest of the file is the default conf)
smtp inet n - n - - smtpd
-o content_filter=lmtp:unix:/tmp/dspam.sock
127.0.0.1:10025 inet n - n - - smtpd
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o receive_override_options=no_unknown_recipient_checks
>From the doc/postfix.txt I run as root dspam --daemon &
and try to send a mail to any user of my local email servers and I get
this error in maillog:
Dec 22 04:19:05 mail1 postfix/lmtp[18794]: 0A18F2F50D7:
to=<[EMAIL PROTECTED]>, orig_to=<mail1.domain>, relay=none,
delay=5.7, delays=5.6/0.01/0/0, dsn=4.4.1, status=deferred (connect to
mail1[/tmp/dspam.sock]: Permission denied)
Here you have Other info:
#ll /usr/local/var/dspam/
total 8
drwxrwx--- 2 root mail 4096 Dec 22 03:04 log
#netstat -anp|grep master
tcp 0 0 127.0.0.1:10025 0.0.0.0:*
LISTEN 18378/master
tcp 0 0 0.0.0.0:25 0.0.0.0:*
LISTEN 18378/master
#netstat -anp|grep dspam
tcp 0 0 127.0.0.1:42630 127.0.0.1:3306
ESTABLISHED 18835/dspam
tcp 0 0 127.0.0.1:42631 127.0.0.1:3306
ESTABLISHED 18835/dspam
tcp 0 0 127.0.0.1:42632 127.0.0.1:3306
ESTABLISHED 18835/dspam
unix 2 [ ACC ] STREAM LISTENING 85516 18835/dspam
/tmp/dspam.sock
Please, I'm stoped here.. can you help me?
thanks in advance
--
Regards;
Israel Garcia