[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pop3 time out problem on qmail-ldap cluster


On Tue, Aug 31, 2004 at 02:40:54PM +0300, Tardu Demirel wrote:
> Hi, 
> I have two machines (A and B). A is backend (it has ldap database and
> user mailboxes) and B is frontend. They have both
> qmail-ldap-1.03-20040801.patch and services are installed via
> qmail-conf. Both have pop3, smtp, qmqp, qmtp services. On A,
> everything is working fine (pop3 service is working well on A). When B
> receives a mail, it passes the mail to the user mailbox on A without
> any problem. But when i try to make a pop delivery from B, it
> authenticates from ldap (i can see it in the logs) and then the
> process starts to wait about 30-40 sec. Then it gives the error
> message below and cuts the connection.
> 
> -ERR temporary error
> Connection closed by foreign host.
> 
> in pop3d logs i see these lines 
> 
> 2004-08-31 14:36:35.972236500 qldap_get_attr(mailQuotaSize): 10000000
> 2004-08-31 14:36:35.972277500 qldap_get_attr(mailQuotaCount): 5000
> 2004-08-31 14:36:35.972693500 qldap_open: init successful
> 2004-08-31 14:36:35.972730500 qldap_set_option: set referrals successful
> 2004-08-31 14:36:36.080313500 qldap_bind: successful
> 2004-08-31 14:36:36.080396500 check_ldap: password compare was successful
> 2004-08-31 14:36:36.080591500 setgid succeeded (502)
> 2004-08-31 14:36:36.080630500 setuid succeeded (503)
> 2004-08-31 14:36:36.080678500 environment successfully set: USER
> elvis@xxxxxxxxxx, HOME /var/qmail/maildirs/elvis, MAILDIR ./Maildir/
> 2004-08-31 14:37:06.081890500 warning: auth_error: authorization
> failed (timed out)
> 2004-08-31 14:37:06.082396500 tcpserver: end 20433 status 256
> 2004-08-31 14:37:06.082400500 tcpserver: status: 0/40
> 
> When i connect from A, i see the same logs except auth_error line. 
> 
> all DNS names are ok. i think there is someting about qmqpd but i
> couldn't find where is the problem.
> i am googling for about 3 days but couldn't find anything like my problem. 
> 
> Can anyone help me?

For some reasons not yet fully understood your machine B does no cluster
forward. There should be a log line like "check_ldap: forwarding session
to A". Check ~control/ldapcluster and the mailHost attribute.
Currently it tries a local pop3 session and fails horribly.
Could you post some more info? Mainly ~control/ldapclu* and a sample ldif?

This has nothing todo with qmqpd as the pop3 session forwarding is done
internaly.

-- 
:wq Claudio


This mailing list archive is a service of Copilot Consulting.