[Dovecot] relay-ctrl works

Amitai Schlair schmonz at schmonz.com
Wed Feb 28 15:27:57 UTC 2007

In case anyone still cares, relay-ctrl works with Dovecot. Dovecot's  
end of the bargain requires a dirty little script to set TCPREMOTEIP  
based on the arguments passed from imap-login:

TCPREMOTEIP=`echo "$@" | sed -e 's|.* ||' -e 's|]$||'`
exec "$@"

And this (long) line in dovecot.conf:

mail_executable: 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

For the SMTP end of the bargain, relay-ctrl has docs for qmail-smtpd  
and mailfront.

More information about the dovecot mailing list