Костырев Александр Алексеевич
2012-Jun-11 09:27 UTC
[Dovecot] director: non standart ports at backends
hello, I'm trying to figure out how to proxy pop3 and pop3s that listens on non-standart ports at backends. For example, pop3 is at 1110 and pop3s at 1995 (on backend side). is it possible? how should I separate this ports in director's config? it's easy for one port: for example lmtp - you just use passdb in protocol lmtp {}
On 11.6.2012, at 12.27, ???????? ????????? ?????????? wrote:> hello, > I'm trying to figure out how to proxy pop3 and pop3s that listens on non-standart ports at backends. > For example, pop3 is at 1110 and pop3s at 1995 (on backend side). > is it possible? > how should I separate this ports in director's config? > it's easy for one port: > for example lmtp - you just use passdb in protocol lmtp {}The passdb needs to return the "port" field. You can't use static passdb for this, since it has no conditionals and you can't do per-port configuration. Maybe use sqlite (simply to use it as a scripting engine - empty database) or checkpassword as your passdb.