Invoking spamc / spamd instead of spamassassin


#1

I have a working setup of Spamassassin 3.10.
My bayes and AWL information is stored in a SQL database, as described here: http://www.unsaturated.com/projects.spamassassinMySQL.html

My ~/procmail/spam.rc looks like this:

spam.rc: procmail recipes to process email through SpamAssassin

:0fw: spamassassin.lock
| $HOME/bin/spamassassin

Unfortunately, spamassassin can’t retrieve the user_prefs data from a SQL database, only spamc/spamd can. So I thought I had to invoke spamc instead of spamassassin in the spam.rc. It should work like this:

:0fw
| $HOME/bin/spamc

Unfortunately, it doesn’t work. I can’t even start the daemonized spamd -d in the shell. I always get the following error:

[32089] error: spamd: could not create INET socket on 127.0.0.1:783: Permission denied
spamd: could not create INET socket on 127.0.0.1:783: Permission denied

What am I missing here ?

TIA.


#2

The error message is because spamd by default listens on a privileged port. You can change that, but I don’t think you can leave spamd running on a shared hosting acct.