[horde] [HORDE][WHUPS]: error on script pipe in postfix

Jan Schneider jan at horde.org
Fri Mar 9 10:38:45 UTC 2018

Zitat von Carsten <horde-groupware at familie-lahme.de>:

> Hi all,
> I try the set up whups with automated ticket generation from mails.
> my postfix sends the incoming mail to the pipe, but returns such an error:
> Mar  8 12:40:38 derdapp004 postfix/local[30799]: 04C7040C4C:  
> to=<whups at localhost>, orig_to=<whups@[mydn.tdl]>, relay=local,  
> delay=0.58, delays=0.09/0.04/0/0.45, dsn=5.3.0, status=bounced  
> (Command died with status 255: "/usr/bin/whups-mail-filter -g".  
> Command output: PHP Warning:   
> require_once(/usr/share/php/www/horde/whups/lib/Application.php):  
> failed to open stream: No such file or directory in  
> /usr/bin/whups-mail-filter on line 73 PHP Fatal error:   
> require_once(): Failed opening required  
> '/usr/share/php/www/horde/whups/lib/Application.php'  
> (include_path='.:/usr/share/php:/usr/share/pear') in  
> /usr/bin/whups-mail-filter on line 73 )
> If I pipe with the local user (root) from the command line, it works perfect.
> I guess it is about a missing environment o.s.
> Can somebody advice, pls?
> br
> Carsten

You have set the horde_dir configuration setting in PEAR only for the  
user that installed Horde, not for the user that runs the pipe. Either  
use the same user for both (web server user is always a good choice),  
or set the PEAR configuration for the other user too, or set the  
configuration globally:
$ pear config-set -c horde horde_dir /real/path/to/horde
$ pear config-set -c horde horde_dir /real/path/to/horde system

Jan Schneider
The Horde Project

More information about the horde mailing list