• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Horde - Using external Spam-programm not working

D

Daniel Stefanovski

Guest
Hello,


I'm on Plesk 9.2.2 (Ubuntu 8.04 x86_64) using Webmail (imp) H3 (4.1.6) and Webmail (horde) 3.1.7

I'm trying to implement functionality to let users mark email as spam and notspam with psa-spamassassin integration. The Problem ist that I'm not able to launch _any_ program from this.

When I click "mark as spam" it should be triggering a script '/var/qmail/popuser/bin/saver.sh'.

The [spam][program] parameter contains:

/var/qmail/popuser/bin/saver.sh %l %d spam > /dev/null 2> /dev/null

The file is actually there, readable, executable and working when launching it directly.

Now I go and click "mark as spam" in Horde and the Horde-Log shows:

Dec 14 14:59:41 HORDE [error] [imp] Error reporting spam: sh: /saver.sh: not found
[on line 114 of "/usr/share/psa-horde/imp/lib/Spam.php"]

The weird thing is that it seems to be adding a '/' and as a result cannot find /saver.sh.

I tried adding this to the path variable and only launch 'saver.sh ...' without the full path but the result remains the same. It adds this '/'.

I just tested around and entered incorrect paths to see how it behave:

'/var/qmail/popuser/bin saver.sh'

The above with a blank in the path gives as result:

Dec 14 15:18:45 HORDE [error] [imp] Error reporting spam: sh: /bin: Permission denied
[on line 114 of "/usr/share/psa-horde/imp/lib/Spam.php"]


I cannot even use 'ls' 'top' or anything...

Dec 14 15:26:21 HORDE [error] [imp] Error reporting spam: sh: /ls: not found
[on line 114 of "/usr/share/psa-horde/imp/lib/Spam.php"]


So what is going wrong here? Any ideas, suggestions or perhaps a script that could workaround this?


Thanks in advance!
 
Back
Top