Konstantin Shalygin
2018-Mar-28 04:01 UTC
[sieve][pigeonhole] Can't catch stdout for pipe script after upgrade Dovecot 2.2 -> 2.3
Hi. I use custom script:> require [ "vnd.dovecot.pipe", "variables" ]; > > if address :is :all "from" "snip at snap" > { > ? pipe "sieve_to_owncloud"; > }sieve_to_owncloud:> DATE=`date +%Y-%m-%d_%H-%M-%S` > PYTHONIOENCODING=utf8 python /opt/sieve-pipe/python-imap-to-owncloud.py \ > ? --owncloud-host https://<snip-snap> \ > ? --owncloud-user user \ > ? --owncloud-password secret \ > ? --owncloud-path /path/to/here &>/tmp/sieve_logger_py_${DATE}On dovecot 2.2 after script execution I will get plaintext log files on /tmp. After upgrade - don't. I also changed transport to lmtp when upgrade. Any ideas where is my stdout? k -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180328/fe7262ef/attachment.html>
Stephan Bosch
2018-Mar-28 08:08 UTC
[sieve][pigeonhole] Can't catch stdout for pipe script after upgrade Dovecot 2.2 -> 2.3
Op 3/28/2018 om 6:01 AM schreef Konstantin Shalygin:> > Hi. > > > I use custom script: > >> require [ "vnd.dovecot.pipe", "variables" ]; >> >> if address :is :all "from" "snip at snap" >> { >> ? pipe "sieve_to_owncloud"; >> } > > > sieve_to_owncloud: > >> DATE=`date +%Y-%m-%d_%H-%M-%S` >> PYTHONIOENCODING=utf8 python /opt/sieve-pipe/python-imap-to-owncloud.py \ >> ? --owncloud-host https://<snip-snap> \ >> ? --owncloud-user user \ >> ? --owncloud-password secret \ >> ? --owncloud-path /path/to/here &>/tmp/sieve_logger_py_${DATE} > > > On dovecot 2.2 after script execution I will get plaintext log files > on /tmp. After upgrade - don't. > > I also changed transport to lmtp when upgrade. Any ideas where is my > stdout? >The most common cause would be that systemd is configured with PrivateTmp for the Dovecot service, which means that the created log files are not visible from another (shell) process. Try another location outside /tmp. Regards, Stephan.
Konstantin Shalygin
2018-Mar-29 07:06 UTC
[sieve][pigeonhole] Can't catch stdout for pipe script after upgrade Dovecot 2.2 -> 2.3
On 03/28/2018 03:08 PM, Stephan Bosch wrote:> The most common cause would be that systemd is configured with > PrivateTmp for the Dovecot service, which means that the created log > files are not visible from another (shell) process. Try another location > outside /tmp.You 100% right, I was override *"PrivateTmp=false"* now works fine. Thanks. k ** -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180329/eda44120/attachment-0001.html>
Apparently Analagous Threads
- [sieve][pigeonhole] Can't catch stdout for pipe script after upgrade Dovecot 2.2 -> 2.3
- [Sieve] Is the way to run external script to get attachment?
- [Sieve] Is the way to run external script to get attachment?
- question: dovecot lda running as special user (vmail) or normal user (marcel)?
- Fwd: Re: EPEL-ANNOUNCE Re: Upcoming OwnCloud changes in EPEL