Author Topic: markasjunk2: apache (www) can't execute dspam  (Read 3254 times)

Offline cbrace

  • Full Member
  • ***
  • Posts: 75
markasjunk2: apache (www) can't execute dspam
« 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:
Code: [Select]
$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:
Code: [Select]
/usr/local/bin/dspam: Permission deniedHowever, 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?
« Last Edit: April 14, 2013, 03:21:30 PM by cbrace »

Offline cbrace

  • Full Member
  • ***
  • Posts: 75
Re: markasjunk2: apache (www) can't execute dspam
« Reply #1 on: April 15, 2013, 04:47:29 AM »
I ended up doing this:
Code: [Select]
# chmod o+x /usr/local/bin/dspam' Crude, but it works ;)