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: #!/bin/sh TCPREMOTEIP=`echo "$@" | sed -e 's|.* ||' -e 's|]$||'` export TCPREMOTEIP 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.
Amitai Schlair schrieb:> 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: > > #!/bin/sh > TCPREMOTEIP=`echo "$@" | sed -e 's|.* ||' -e 's|]$||'` > export TCPREMOTEIP > 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.Thou shalt not use POP/IMAP-before-SMTP.