Richard
To configure DSPAM we need to edit the default configuration file dspam.conf in /usr/local/etc/ I’m only showing you the changes i made to the default settings otherwise it would be a very long list of settings.
# to insert the email back into postfix:
DeliveryHost 127.0.0.1
DeliveryPort 10026
DeliveryIdent localhost
DeliveryProto SMTP
Trust _dspam
Trust _postfix
Trust _www
# get all the info we need to check if it all works.
# You can comment this out when it works as expected
Debug *
Preference “signatureLocation=headers”
Preference “showFactors=on”
Preference “spamAction=tag”
Preference “spamSubject=[SPAM]”
# access to the database:
MySQLServer /tmp/mysql.sock
MySQLPort 3306
MySQLUser dspam
MySQLPass yourpassword
MySQLDb dspam
MySQLCompress true
MySQLVirtualTable dspam_virtual_uids
MySQLVirtualUIDField uid
MySQLVirtualUsernameField username
MySQLUIDInSignature on
SystemLog on
UserLog on
ParseToHeaders on
ChangeModeOnParse on
ChangeUserOnParse full
ServerPID /var/run/dspam.pid
ServerParameters “–deliver=innocent, spam”
ServerIdent “localhost.local”
I’ve decided, until I get the webgui or some other solution working, every email will be delivered. Spam email will be tagged in the subject with [SPAM] which you can filter out with your email client to be put into the Trash, Junk or a separate directory.
Next we need to administer the proper rights to the executable, please execute the following command:



Comments
10:45 pm
failed: /usr/local/lib/dspam/libmysql_drv.so: dlopen(/usr/local/lib/dspam/libmysql_drv.so, 2): image not found
after hours of searching google with no help, I noticed in the notes in dspam.conf that some systems, such as Mac OSX may use something other than the.so in libmysql_drv.so. Sure enough. I changed it to libmysql_drv.dylib and solved the storage driver access problem.
8:18 pm
@Dennis, you are so right, I completely missed this and didn’t copy it correctly from my test server. Sorry for the inconvenience.
9:05 am
Dennis thanks, saved me a ton of time!