Hi all,
I've followed the install docs many times, but I'm still lost as to how to
get dspam to process mail. I'm using Postfix and am going for using dspam
as a delivery proxy, since the content filter requires one to merge
aliases and virtual files [according to the wiki docs].
I compiled dspam:
./configure --with-storage-driver=mysql_drv --enable-daemon
--with-mysql-includes=/usr/local/mysql/include/mysql
--with-mysql-libraries=/usr/local/mysql/lib/mysql
--enable-preferences-extension --enable-clamav
[this is on an Ubuntu 6.06 server, AMD 64bit, no apt-gets, all hand
compiled].
I ran make and make install.
I edited /etc/postfix/main.cf:
mailbox_command = /usr/local/bin/dspam --deliver=innocent --user $USER -- -d %u
[it used to be mailbox_command = /usr/bin/procmail -Y -a $DOMAIN ]
I put in my /etc/aliases:
spam:"|/usr/local/bin/dspam --user root --class=spam --source=error"
notspam:"|/usr/local/bin/dspam --user root --class=innocent --source=error"
I created a dspam database on my MySQL 4.1 server and ran the
mysql_objects-4.1.sql file which created 4 tables [only one of which gets
populated though - the preferences only :( ].
I setup my Apache 1.3.x install with mod_auth_shadow and am running
/var/www/dspam in a virtual host with SSL [eg:
https://www.example.com/dspam].
I can login as myself or any of my users using that address. I can change
prefs, but there's no history/quarentine, etc. Mail [and spam] is
delivered normally. Most users have a .procmailrc file in their $HOME
setup so that when they are on vacation, an at job can activate a procmail
auto-reply recipe.
Oh, and I'm running /usr/local/bin/dspam --daemon & while I do all of this
[i'll make a startup script for /etc/init.d once things are running].
I made a few files/directories that apparently needed making:
/usr/local/var/dspam/opt-in
/usr/local/var/dspam/opt-in/vjl.dspan [an empty file]
/usr/local/var/dspam/log
/usr/local/var/dspam/txt
and I symlinked default.prefs to /var/www/dspam/cgi-bin/defaults.prefs
Postfix logs report:
Jan 13 02:11:14 jan postfix/local[20556]: 3F8C8169C001:
to=<jbu...@example.com>, relay=local, delay=0.65,
delays=0.55/0.01/0/0.09, dsn=2.0.0, status=sent (delivered to command:
/usr/local/bin/dspam --deliver=innocent --user $USER -- -d %u)
and same for v...@example.com
I've only opted in myself while I test this.
Oh, my /usr/local/etc/dspam.conf:
Home /usr/local/var/dspam
StorageDriver /usr/local/lib/libmysql_drv.so
TrustedDeliveryAgent "/usr/bin/procmail"
UntrustedDeliveryAgent "/usr/bin/procmail -d %u"
OnFail error
Trust root
Trust mail
Trust daemon
Trust dspam
Trust apache
Trust postfix
Trust nobody
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=on"
AllowOverride trainingMode
AllowOverride spamAction spamSubject
AllowOverride statisticalSedation
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride signatureLocation
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
MySQLServer /tmp/mysql.sock
MySQLUser dspam_user
MySQLPass ??????????
MySQLDb dspam
MySQLCompress true
MySQLConnectionCache 10
MySQLUIDInSignature on
Notifications on
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 1.2.3.4 # this is the public IP of this server
SystemLog on
UserLog on
Opt in
MaxMessageSize 4194304
ClamAVPort 3310
ClamAVHost 127.0.0.1
ClamAVResponse accept
ServerPort 24
ServerQueueSize 32
ServerPID /var/run/dspam.pid
ServerMode standard
ProcessorURLContext on
ProcessorBias on
The above is everything that is not commented out.
No log files are ever generated for dspam. Nothing in my postfix logs
stands out as dspam errors, nor with my apache logs. No signatures are
ever placed on any incoming e.mails and only one mysql table is populated
[the preference table with 10 rows].
Where do I start to debug this? What am I doing wrong? I have not yet
configured clamav other than making an alias for the clamav user; could
that be an issue?
Any enlightenment would be most appreciated!
/vjl/
--
Vince J. LaMonica Knowledge is knowing a street is one way.
v...@cullasaja.com <*> Wisdom is still looking in both directions.
Donate today, please: http://www.cancer.org/
!DSPAM:1011,496c4243150921907311838!