Thank you! I tried, but only with first line and it didn't work. Now everything is fine.
Here is a snippet if anyone gets in trouble like me:
............................. service imap { executable = imap relayctl } service relayctl { executable = script-login /usr/local/bin/envdir /etc/relay-ctrl /usr/local/bin/relay-ctrl-chdir /usr/local/bin/dovecot-settcpremoteip /usr/local/bin/relay-ctrl-allow user = $default_internal_user unix_listener relayctl { } } ...........................
Thanks again!
On 19.12.2012 г. 17:46 ч., Timo Sirainen wrote:
On 19.12.2012, at 17.37, Nikolai Tsvetkov <koko@cybcom.net> wrote:
I try to use relay-ctrl with dovecot's imap, but with no luck. I think that the problem is with environment variables. Here are some information:
dovecot --version 2.1.12
service imap { executable = /usr/local/bin/envdir /etc/relay-ctrl /usr/local/bin/relay-ctrl-chdir /usr/local/bin/dovecot-settcpremoteip /usr/local/bin/relay-ctrl-allow /usr/local/libexec/dovecot/imap } Use the v2.x way of running post-login scripts: http://wiki2.dovecot.org/PostLoginScripting