Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: cbrace on April 13, 2013, 08:10:28 PM

Title: markasjunk2: apache (www) can't execute dspam
Post by: cbrace on April 13, 2013, 08:10:28 PM
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?
Title: Re: markasjunk2: apache (www) can't execute dspam
Post by: cbrace on April 15, 2013, 04:47:29 AM
I ended up doing this:
# chmod o+x /usr/local/bin/dspam'
Crude, but it works ;)