Roundcube Community Forum

 

markasjunk2: apache (www) can't execute dspam

Started by cbrace, April 13, 2013, 08:10:28 PM

Previous topic - Next topic

cbrace

Hi all,
Some time ago, I had the markasjunk2 plugin working in conjunction with dspam. This worked fine:
$rcmail_config['markasjunk2_spam_cmd'] = "/usr/local/bin/dspam --user %i  --class=spam --source=error --signature=%xds"
However, some months ago I migrated to a different server, and in the process something broke. I now see this  in the apache error log when I click on the JUNK button:
/usr/local/bin/dspam: Permission denied
However, the dspam command above I can run fine with sudo in terminal.

Apache is user "www" and that in the dspam config "trusted user". dspam is in the "mail" and added apache to that group as well. Still not working.

What I have I forgotten here? Anyone know how I can configure my server so that apache can execute dspam?

cbrace

I ended up doing this:
# chmod o+x /usr/local/bin/dspam'
Crude, but it works ;)