[Dovecot] Proxying LMTP - Auth PASS lookup failed

Edward Carraro ednitido at gmail.com
Tue Oct 5 04:11:17 EEST 2010


I added this to "10-director.conf" on the proxy server only (correct spot?)

protocol lmtp {
 passdb {
  driver = static
  args = proxy=y nopassword=y port=1234
  }
}

but still the same thing.

The proxy receives mail from the postfix server that does the mail
validation and, i would think it would then pass it along to the backend
mail server, getting the hostname/ip from director (postfix shows the
hostname of the proxy itself, but in the dovecot logs it shows the correct
IP for the backend mail server)

Postfix log:
postfix/smtpd[21340]: connect from validate.domain.com[192.168.12.203]
postfix/smtpd[21340]: E8B6B4502C4: client=validate.domain.com
[192.168.12.203]
postfix/cleanup[21344]: E8B6B4502C4:
message-id=<22143348.2682.1286239482405.JavaMail.web at application>
postfix/qmgr[12730]: E8B6B4502C4: from=<user at domain.com>, size=2300, nrcpt=1
(queue active)
postfix/smtpd[21340]: disconnect from validate.domain.com[192.168.12.203]
postfix/lmtp[21346]: E8B6B4502C4: to=<user at dev.domain.com>, relay=
proxy.domain.com[private/dovecot-lmtp], delay=0.1,
delays=0.02/0.01/0.04/0.03, dsn=4.4.0, status=deferred (host
proxy.domain.com[private/dovecot-lmtp] said: 451 4.4.0 Remote server not
answering (connect) (in reply to end of DATA command))

Dovecot log:
lmtp(21249): Debug: none: root=, index=, control=, inbox=
auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth
auth: Debug: master in: PASS    1       user at dev.domain.com   service=lmtp
auth: Debug: static(user at dev.domain.com): lookup
auth: Debug: password(user at dev.domain.com): Credentials:
auth: Debug: master out: PASS   1       user=user at dev.domain.com      proxy
lmtp(21249): Debug: auth input: user=user at dev.domain.com proxy
host=192.168.12.205 proxy_refresh=450
auth: Debug: master in: PASS    2       user at dev.domain.com   service=lmtp
auth: Debug: static(user at dev.domain.com): lookup
auth: Debug: password(user at dev.domain.com): Credentials:
auth: Debug: master out: PASS   2       user=user at dev.domain.com      proxy
lmtp(21249): Debug: auth input: user=user at dev.domain.com proxy
host=192.168.12.205 proxy_refresh=450
lmtp(21249): Error: lmtp client: connect(192.168.12.205, 0) failed:
Connection refused



If I add port 1234 to postfix/master.cf in the backend dovecot server, I'd
get:

Postfix log:
postfix/lmtp[21334]: 45D434502C4: to=<user at dev.domain.com>, relay=
proxy.domain.com[private/dovecot-lmtp], delay=457,
delays=457/0.03/0.01/0.02, dsn=4.5.2, status=deferred (host
proxy.domain.com[private/dovecot-lmtp]
said: 402 4.5.2 Error: command not recognized (in reply to end of DATA
command))

Dovecot log:
lmtp(21297): Debug: none: root=, index=, control=, inbox=
auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth
auth: Debug: master in: PASS    1       user at dev.domain.com   service=lmtp
auth: Debug: static(user at dev.domain.com): lookup
auth: Debug: password(user at dev.domain.com): Credentials:
auth: Debug: master out: PASS   1       user=user at dev.domain.com
proxy   port=1234
lmtp(21297): Debug: auth input: user=user at dev.domain.com proxy port=1234
host=192.168.12.205 proxy_refresh=450
lmtp(21297): Error: lmtp client: connect(192.168.12.205, 1234) failed:
Connection refused


More information about the dovecot mailing list