• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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