After much shouting and screaming, I finally got DSPAM up and running as an appliance (SMTP relay). I followed the step by step guide as mentioned in my previous post, but came across a few stumbling blocks along the way. By noting here what I did to get around them, I hope to reduce the amount hair-pulling required my others (and myself next time). I hope to get this written up as a proper howto, but for now it will be more of an amendments guide to the other guide.
Right, here we go 🙂
- After installing Postfix, you need to test that it’s starts correctly which mine didn’t. I realised that a default minimal install of FC4 installs sendmail and configures it to start. I, therefore simply used chkconfig to disable sendmail and Postfix was then able to start.
- I’m not using relay_recipients at all, I don’t think this is needed as the users are stored in the mysql table.
- I had to add all my domains to virtual_mailbox_domains (main.cf), the same ones that you put in transport. This actually throws up a warning in the maillog but it doesn’t seem to hurt.
- When creating the SSL certificate, the directories referred to weren’t present, so I had to create them (mkdir ssl.key, ssl.crt)
- I couldn’t get the first Perl GD module to compile without adding /usr/local/lib to /etc/ld.so.conf and running ldconfig -v
- See the appliance doc at doc/appliance.txt with the DSPAM distribution for details on creating the users in the mysql database
- Start DSPAM with dspam –daemon [–debug]
- In order for the CGI to find the correct logs etc for users you need to symlink things as noted here
Other than that, it pretty much works! I can’t get the forward spam to work though, I think LMTP is not configured correctly.
I hope this helps.