[Dovecot] environment variables not set
Nikolai Tsvetkov
koko at cybcom.net
Wed Dec 19 17:37:06 EET 2012
hi, all!
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
dovecot -n
# 2.1.12: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 3.2.29-smp i686 Slackware 14.0
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot-debug.log
disable_plaintext_auth = no
first_valid_uid = 89
info_log_path = /var/log/dovecot-info.log
listen = *
log_path = /var/log/dovecot.log
mail_location = maildir:~/Maildir
passdb {
driver = shadow
}
protocols = imap
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
}
ssl = no
userdb {
driver = passwd
}
/usr/local/bin/dovecot-settcpremoteip:
#!/bin/sh
#
# Wrapper for relay-ctrl-allow that sets TCPREMOTEIP.
TCPREMOTEIP="${IP}"; export TCPREMOTEIP
exec "$@"
More information about the dovecot
mailing list