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.
On Feb 28, 2007, at 10:36 AM, Matthias Andree wrote:
Thou shalt not use POP/IMAP-before-SMTP.
Thanks for the advice, but I like being able to send mail from my
remarkably dumb smartphone, and I'm satisfied with the tradeoffs.
Regardless, this no longer pertains to Dovecot, so I'll try to keep
it on topic:
Timo, how would you feel about exporting TCPREMOTEIP from imap-login?
It's not terribly needed, but would make things even simpler, and
probably has terribly low risk, too.
participants (3)
-
Amitai Schlair
-
Matthias Andree
-
Timo Sirainen