[horde] [whups]: error on script pipe in postfix
Carsten
horde-groupware at familie-lahme.de
Tue Mar 13 07:32:02 UTC 2018
Hi all,
sorry for TOFU, but the thread seems to grow too much, and the previous
kontent should be readable from the history.
I went to the postfix mailing list and described the issue. I got a hint
pointing to chroot of postfix, and this is the current status:
#####C&P from the postfix mailing list################
###
Hi again,
the hint to chroot has brought me to some more testing. There seems to
be some related thing with it.
If I extend the file "whups-mail-filter" with these lines:
"..
$shellex = shell_exec("logger INFO my id: $(id)");
$shellex = shell_exec("logger INFO my groups: $(groups)");
.."
I get this output in the syslog:
"...
Mar 12 17:56:42 derdapp004 logger: INFO my id: uid=1001(postfix-pipe)
gid=1002(postfix-pipe) groups=1002(postfix-pipe)
Mar 12 17:56:42 derdapp004 logger: INFO my groups: postfix-pipe
..."
You can see, the group "www-horde" is missing completely.
Yes, indeed, postfix is chrooted by master.cf.
No I startet to experiment a little bit around, but did not find any
solution by now.
I have copied the files "/etc/passwd" and "/etc/group" into the folder
"/var/spool/postfix/etc" and restarted postfix.
No visible change to the behavior.
The question seems to be: "How do I get postfix with chroot to the point
to read a valid group-file?"
Any ideas?
br
Carsten
###
#####################
Am 12.03.2018 um 15:25 schrieb Carsten:
>
>
> Am 12.03.2018 um 14:46 schrieb Patrick Boutilier:
>> On 03/12/2018 10:04 AM, Carsten wrote:
>>>
>>>
>>> Am 12.03.2018 um 13:36 schrieb Patrick Boutilier:
>>>> On 03/11/2018 08:52 PM, Carsten wrote:
>>>>>
>>>>>
>>>>> Am 11.03.2018 um 23:57 schrieb Jan Schneider:
>>>>>>
>>>>>> Zitat von Carsten <horde-groupware at familie-lahme.de>:
>>>>>>
>>>>>>> Am 11.03.2018 um 21:05 schrieb Jan Schneider:
>>>>>>>>
>>>>>>>> Zitat von Carsten <horde-groupware at familie-lahme.de>:
>>>>>>>>
>>>>>>>>> Am 11.03.2018 um 13:07 schrieb Carsten:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Am 11.03.2018 um 12:35 schrieb Carsten:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Am 10.03.2018 um 21:00 schrieb Jan Schneider:
>>>>>>>>>>>>
>>>>>>>>>>>> Zitat von Carsten <horde-groupware at familie-lahme.de>:
>>>>>>>>>>>>
>>>>>>>>>>>>> Am 10.03.2018 um 11:20 schrieb Jan Schneider:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Zitat von Carsten <horde-groupware at familie-lahme.de>:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Am 09.03.2018 um 11:38 schrieb Jan Schneider:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> 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
>>>>>>>>>>>>>>>>
>>> [..snipped out some parts, because got size warning from mailinglist..]
More information about the horde
mailing list