From wplug at tblive.com Tue Jun 3 18:55:44 2003
From: wplug at tblive.com (Ryan Brown)
Date: Tue, 3 Jun 2003 13:55:44 -0400
Subject: [tpop3d-discuss] File locks and dead processes problems
Message-ID: <005901c329f9$760488b0$6401a8c0@lokomoko>
This is a multi-part message in MIME format.
------=_NextPart_000_005A_01C329D7.EEF2E8B0
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
I have been using tpop3d for about 2 years now and never ran into this
problem until recently with version 1.4.2 (Same version is working fine =
on
other servers of mine).
=20
Basically I am having 2 different problem which may or may not be =
related.
The first is file locks. IT seems that mailoxes are locked and the lock =
is
never removed on certain accounts (just under 1 domain, no problems with =
any
of the other domains I am hosting).
=20
The 2nd problem has to do with dead processes. Every few days tpop3d =
seems
to hang and crash the server. The result is a bunch of "D" processes of
tpop3 children that never finish and close, so they back up and soon the
server load is at 20 due to a bunch of D tpop3d processes.
=20
I have tried recompiling tpop3d on the server and it did not fix the
problem.
=20
Does anyone have any suggestions or have you seen this before?=20
=20
Thanks in advance
=20
Ryan
=20
------=_NextPart_000_005A_01C329D7.EEF2E8B0
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Message
I have =
been using=20
tpop3d for about 2 years now and never ran into this problem until =
recently with=20
version 1.4.2 (Same version is working fine on other servers of=20
mine).
Basically I am=20
having 2 different problem which may or may not be related. The first =
is =20
file locks. IT seems that mailoxes are locked and the lock is never =
removed on=20
certain accounts (just under 1 domain, no problems with any of the other =
domains=20
I am hosting).
The =
2nd problem has=20
to do with dead processes. Every few days tpop3d seems to hang and crash =
the=20
server. The result is a bunch of "D" processes of tpop3 children that =
never=20
finish and close, so they back up and soon the server load is at 20 due =
to a=20
bunch of D tpop3d processes.
I have =
tried=20
recompiling tpop3d on the server and it did not fix the=20
problem.
Does =
anyone have any=20
suggestions or have you seen this before?
Thanks =
in=20
advance
Ryan
------=_NextPart_000_005A_01C329D7.EEF2E8B0--
From chris at ex-parrot.com Tue Jun 3 19:04:16 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Tue, 3 Jun 2003 19:04:16 +0100
Subject: [tpop3d-discuss] File locks and dead processes problems
In-Reply-To: <005901c329f9$760488b0$6401a8c0@lokomoko>
References: <005901c329f9$760488b0$6401a8c0@lokomoko>
Message-ID: <20030603180416.GA23471@caesious.cold.local>
On Tue, Jun 03, 2003 at 01:55:44PM -0400, Ryan Brown wrote:
> Does anyone have any suggestions or have you seen this before?
Can you look at the .lock files which are left behind, and
grep for log entries from the PID given in the file?
tpop3d should report any crash, with a message like
quit: signal (signal number) post_fork = (0 or 1)
Turning on verbose logging might be helpful too.
Without more information I can't help much.
--
``A little inaccuracy can save tons of explanation.'' (Saki)
From wplug at tblive.com Fri Jun 6 04:20:50 2003
From: wplug at tblive.com (Ryan Brown)
Date: Thu, 5 Jun 2003 23:20:50 -0400
Subject: [tpop3d-discuss] File locks and dead processes problems
In-Reply-To: <20030603180416.GA23471@caesious.cold.local>
Message-ID: <002201c32bda$b6651a90$6401a8c0@lokomoko>
Well the problem seemed to fix it self. I hav ebeen waiting for it to happen
to check these things but it hasn't yet now which I geuss is good.
-----Original Message-----
From: tpop3d-discuss-admin@lists.beasts.org
[mailto:tpop3d-discuss-admin@lists.beasts.org] On Behalf Of Chris Lightfoot
Sent: Tuesday, June 03, 2003 2:04 PM
To: Ryan Brown
Cc: tpop3d-discuss@lists.beasts.org
Subject: Re: [tpop3d-discuss] File locks and dead processes problems
On Tue, Jun 03, 2003 at 01:55:44PM -0400, Ryan Brown wrote:
> Does anyone have any suggestions or have you seen this before?
Can you look at the .lock files which are left behind, and
grep for log entries from the PID given in the file?
tpop3d should report any crash, with a message like
quit: signal (signal number) post_fork = (0 or 1)
Turning on verbose logging might be helpful too.
Without more information I can't help much.
--
``A little inaccuracy can save tons of explanation.'' (Saki)
_______________________________________________
tpop3d-discuss mailing list
tpop3d-discuss@lists.beasts.org
http://lists.beasts.org/mailman/listinfo/tpop3d-discuss
From pasha at mts.by Mon Jun 9 15:17:41 2003
From: pasha at mts.by (Krivosheev Pavel)
Date: Mon, 09 Jun 2003 17:17:41 +0300
Subject: [tpop3d-discuss] tpop3d + LDAP
Message-ID: <3EE49705.1040903@mts.by>
I have: Solaris 9 with tpop3d v.1.4.2 + OpenLdap v.2.1.12 (alredy working)
I do the following:
1)
# ./configure --prefix=/usr/local \
--sysconfdir=/usr/local/etc \
--localstatedir=/usr/local/var \
--mandir=/usr/local/man \
--enable-mbox-bsd \
--enable-auth-ldap \
--enable-dotfile-locking \
--enable-cclient-fcntl \
--with-openldap-root=/var/tmp/openldap-2.1.12/ - here is my dir from
which I previously installed OpenLdap.
# make
# make install
2) in tpop3d.conf:
listen-address: 10.128.10.3
# mailbox: bsd:/var/mail/$(user)
max-children: 1024
log-facility: mail
timeout-seconds: 300
auth-ldap-enable: yes
auth-ldap-url: ldap://backup:389/dc=mts,dc=by??base?(objectClass=*)
auth-ldap-searchdn: cn=Manager,dc=mts,dc=by
auth-ldap-password: blablabla
auth-ldap-filter: (&(objectclass=MTSperson)(userPassword=*))
auth-ldap-scope: subtree
auth-ldap-mailbox: bsd:/var/mail/$(user) - my mailboxes in /var/mail/
directory
# auth-ldap-mailbox-attr: mail
# auth-ldap-mboxtype-attr: bsd
auth-ldap-mail-user-attr: muser - in LDAP directory i have
auth-ldap-mail-group-attr: mgroup
#auth-ldap-mail-user: mail
#auth-ldap-mail-group: mail
3) # /usr/local/sbin/tpop3d -f /usr/local/etc/tpop3d.conf -v
4) Example of user from my LDAP
version: 1
dn: cn=spam,dc=mts,dc=by
objectClass: MTSperson
o:: MTS
l:: Minsk
sn:: IA==
telephoneNumber: 7776020, 7576020, 2379820
title:: sysadm
ou:: IT department
muser: spam
mgroup: mail
cn: spam
userPassword: hello - User Password in
Unencrypted form (i didnt use crypted PASWD)
mail: spam@backup.inside.mts.by
!!! Question !!!
When i connect from Netscape like user spam@mts.by on server "backup" in
/var/log/mail i saw:
Jun 9 16:15:50 backup tpop3d[15164]: [ID 702911 mail.info] net_loop:
restarting on signal 1
Jun 9 16:15:50 backup tpop3d[15222]: [ID 702911 mail.info] listening on
address 10.128.10.3, port 110, domain inside.mts.by
Jun 9 16:15:50 backup tpop3d[15222]: [ID 702911 mail.debug]
auth_ldap_init: using DN dc=mts,dc=by on backup:389
Jun 9 16:15:50 backup tpop3d[15222]: [ID 702911 mail.info] 1
authentication drivers successfully loaded
Jun 9 16:15:50 backup tpop3d[15222]: [ID 702911 mail.info] net_loop:
tpop3d version 1.4.2 successfully started
Jun 9 16:16:11 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_sendresponse: client [5]10.128.10.113/inside.mts.by: sent
`+OK '
Jun 9 16:16:11 backup tpop3d[15222]: [ID 702911 mail.info]
listeners_post_select: client [5]10.128.10.113/inside.mts.by: connected
Jun 9 16:16:11 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_parsecommand: client [5]10.128.10.113/inside.mts.by: received
`USER spam'
Jun 9 16:16:11 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_sendresponse: client [5]10.128.10.113/inside.mts.by: sent
`+OK Tell me your password.'
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_parsecommand: client [5]10.128.10.113/inside.mts.by: received
`PASS [...]'
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.debug]
auth_ldap_new_user_pass: LDAP search filter:
(&(objectclass=MTSperson)(userPassword=*))
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
auth_ldap_new_user_pass: search returned 8 entries
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_sendresponse: client [5]10.128.10.113/inside.mts.by: sent
`-ERR Lies! Try again!'
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
connection_do: client `[5]10.128.10.113/inside.mts.by': username `spam':
1 authentication failures
!!! Why "authentication failures" IF i enter the RIGHT passwd "hello"
I have user spam with mailbox /var/mail/spam with OWN - spam:mail and
MOD - 660 and passwd = hello
When I connect to my LDAP like user "spam" and passwd = hello from other
applications everything is fine !!!
!!! Please help !!!
From chris at ex-parrot.com Mon Jun 9 15:21:58 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Mon, 9 Jun 2003 15:21:58 +0100
Subject: [tpop3d-discuss] tpop3d + LDAP
In-Reply-To: <3EE49705.1040903@mts.by>
References: <3EE49705.1040903@mts.by>
Message-ID: <20030609142158.GA30254@aquila.esc.cam.ac.uk>
On Mon, Jun 09, 2003 at 05:17:41PM +0300, Krivosheev Pavel wrote:
> Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
> auth_ldap_new_user_pass: search returned 8 entries
Your search filter must return only one result.
--
Murder is always a mistake.... One should never do anything which
one cannot talk about after dinner (Wilde)
From chris at ex-parrot.com Mon Jun 9 16:46:13 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Mon, 9 Jun 2003 16:46:13 +0100
Subject: [tpop3d-discuss] tpop3d + LDAP
In-Reply-To: <3EE4A647.3000803@mts.by>
References: <3EE49705.1040903@mts.by> <20030609142158.GA30254@aquila.esc.cam.ac.uk> <3EE4A647.3000803@mts.by>
Message-ID: <20030609154613.GA11286@aquila.esc.cam.ac.uk>
[ please keep discussion on-list, so that others may
benefit from it ]
On Mon, Jun 09, 2003 at 06:22:47PM +0300, Krivosheev Pavel wrote:
> Chris Lightfoot wrote:
> >On Mon, Jun 09, 2003 at 05:17:41PM +0300, Krivosheev Pavel wrote:
> >>Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
> >> auth_ldap_new_user_pass: search returned 8 entries
> >
> >Your search filter must return only one result.
>
> In my LDAP base only 8 users have UserPassword and result = 8.
> When delete 7 (its test users) of them and leave only user "spam" with
> attribute userPassword then everything work.
[...]
> But how to force work with others users. What SEARCH FILTER must be ???
It must use the $(user), $(local_part) or whatever
attributes to narrow down the search to a specific user.
Something like
(objectclass=MTSperson)(muser=$(user))
?
--
``After all, what is your hosts' purpose in having a party? Surely not for
you to enjoy yourself; if that were their sole purpose, they'd have simply
sent champagne and women over to your place by taxi.'' (P. J. O'Rourke)
From pasha at mts.by Tue Jun 10 12:33:11 2003
From: pasha at mts.by (Krivosheev Pavel)
Date: Tue, 10 Jun 2003 14:33:11 +0300
Subject: [tpop3d-discuss] tpop3d + LDAP
References: <3EE49705.1040903@mts.by> <20030609142158.GA30254@aquila.esc.cam.ac.uk> <3EE4A647.3000803@mts.by> <20030609154613.GA11286@aquila.esc.cam.ac.uk>
Message-ID: <3EE5C1F7.1020602@mts.by>
--------------010102030901030708030906
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Chris Lightfoot wrote:
> [ please keep discussion on-list, so that others may
> benefit from it ]
>
>On Mon, Jun 09, 2003 at 06:22:47PM +0300, Krivosheev Pavel wrote:
>
>
>>Chris Lightfoot wrote:
>>
>>
>>>On Mon, Jun 09, 2003 at 05:17:41PM +0300, Krivosheev Pavel wrote:
>>>
>>>
>
>
>
>>>>Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
>>>> auth_ldap_new_user_pass: search returned 8 entries
>>>>
>>>>
>>>Your search filter must return only one result.
>>>
>>>
>>In my LDAP base only 8 users have UserPassword and result = 8.
>>When delete 7 (its test users) of them and leave only user "spam" with
>>attribute userPassword then everything work.
>>
>>
> [...]
>
>
>>But how to force work with others users. What SEARCH FILTER must be ???
>>
>>
>
>It must use the $(user), $(local_part) or whatever
>attributes to narrow down the search to a specific user.
>Something like
>
> (objectclass=MTSperson)(muser=$(user))
>
>?
>
>
>
Thats WORK just FINE !!!
Thanks a LOT Chris !!!
--------------010102030901030708030906
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Chris Lightfoot wrote:
[ please keep discussion on-list, so that others may
benefit from it ]
On Mon, Jun 09, 2003 at 06:22:47PM +0300, Krivosheev Pavel wrote:
Chris Lightfoot wrote:
On Mon, Jun 09, 2003 at 05:17:41PM +0300, Krivosheev Pavel wrote:
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
auth_ldap_new_user_pass: search returned 8 entries
Your search filter must return only one result.
In my LDAP base only 8 users have UserPassword and result = 8.
When delete 7 (its test users) of them and leave only user "spam" with
attribute userPassword then everything work.
[...]
But how to force work with others users. What SEARCH FILTER must be ???
It must use the $(user), $(local_part) or whatever
attributes to narrow down the search to a specific user.
Something like
(objectclass=MTSperson)(muser=$(user))
?
Thats WORK just FINE !!!
Thanks a LOT Chris !!!
--------------010102030901030708030906--
From wash at wananchi.com Fri Jun 27 11:24:25 2003
From: wash at wananchi.com (ODHIAMBO Washington)
Date: Fri, 27 Jun 2003 13:24:25 +0300
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
Message-ID: <20030627102425.GA45283@ns2.wananchi.com>
I have changed my Exim to deliver to /var/spoo/virtual/$(domain)/$(user)/Maildir
but now I am stuck. Deliveries occur normally, but authentication with tpop3d
fails.
In tpop3d.conf I have
mailbox: maildir:/var/spool/virtual/$(domain)/$(user)/Maildir/ maildir:$(home)/Maildir
When I tryto access a mailbox, I get this:
wash@ns2 ('tty') ~ 12 -> telnet 0 110
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
+OK <4c4c81cfee1f9b1a47b13254bd9bcc83@pop.wananchi.com>
user wash@airoquip.com
+OK Tell me your password.
pass wash
-ERR Unable to open mailbox; it may be locked by another concurrent session.
Connection closed by foreign host.
I have even changed the permissions on the Maildirs to be 775 but no luck.
Any help??
-Wash
--
Odhiambo Washington "The box said 'Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,'
Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD."
GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-)
Science is what happens when preconception meets verification.
From chris at ex-parrot.com Fri Jun 27 11:28:33 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Fri, 27 Jun 2003 11:28:33 +0100
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
In-Reply-To: <20030627102425.GA45283@ns2.wananchi.com>
References: <20030627102425.GA45283@ns2.wananchi.com>
Message-ID: <20030627102833.GD5161@aquila.esc.cam.ac.uk>
On Fri, Jun 27, 2003 at 01:24:25PM +0300, ODHIAMBO Washington wrote:
>
> I have changed my Exim to deliver to /var/spoo/virtual/$(domain)/$(user)/Maildir
> but now I am stuck. Deliveries occur normally, but authentication with tpop3d
> fails.
> In tpop3d.conf I have
[...]
> -ERR Unable to open mailbox; it may be locked by another concurrent session.
> Connection closed by foreign host.
>
>
> I have even changed the permissions on the Maildirs to be 775 but no luck.
>
> Any help??
>
can you run tpop3d with the -v option and tell me what
appears in the log?
--
``All human actions are equivalent, and all are doomed to failure.'' (Sartre)
From wash at wananchi.com Fri Jun 27 11:40:27 2003
From: wash at wananchi.com (ODHIAMBO Washington)
Date: Fri, 27 Jun 2003 13:40:27 +0300
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
In-Reply-To: <20030627102833.GD5161@aquila.esc.cam.ac.uk>
References: <20030627102425.GA45283@ns2.wananchi.com> <20030627102833.GD5161@aquila.esc.cam.ac.uk>
Message-ID: <20030627104027.GA33499@ns2.wananchi.com>
* Chris Lightfoot [20030627 13:29]: wrote:
> On Fri, Jun 27, 2003 at 01:24:25PM +0300, ODHIAMBO Washington wrote:
> >
> > I have changed my Exim to deliver to /var/spoo/virtual/$(domain)/$(user)/Maildir
> > but now I am stuck. Deliveries occur normally, but authentication with tpop3d
> > fails.
> > In tpop3d.conf I have
> [...]
> > -ERR Unable to open mailbox; it may be locked by another concurrent session.
> > Connection closed by foreign host.
> >
> >
> > I have even changed the permissions on the Maildirs to be 775 but no luck.
> >
> > Any help??
> >
>
> can you run tpop3d with the -v option and tell me what
> appears in the log?
All users are getting this error:
Jun 27 13:37:31 ns2 tpop3d[34581]: connection_sendresponse: client [8]wash@airoquip.com(62.8.64.4): sent `-ERR Unable to open
mailbox; it may be locked by another concurrent session.'
Best regards,
Odhiambo Washington
Wananchi Online Ltd.
___W_A_N_A_N_C_H_I__O_N_L_I_N_E__L_T_D___The People's Choice______
Wananchi Head Office |*| Tel: +254 2 313 985-9
1st Flr Loita, Loita St.|*| Fax: +254 2 313 922
10286-GPO, NAIROBI, KE |*| e-mail:
------------------------------------------------------------------
++
"GUIs normally make it simple to accomplish simple actions and
impossible to accomplish complex actions."
--Doug Gwyn (22/Jun/91 in comp.unix.wizards)
From wash at wananchi.com Fri Jun 27 11:43:02 2003
From: wash at wananchi.com (ODHIAMBO Washington)
Date: Fri, 27 Jun 2003 13:43:02 +0300
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
In-Reply-To: <20030627102833.GD5161@aquila.esc.cam.ac.uk>
References: <20030627102425.GA45283@ns2.wananchi.com> <20030627102833.GD5161@aquila.esc.cam.ac.uk>
Message-ID: <20030627104302.GB33499@ns2.wananchi.com>
* Chris Lightfoot [20030627 13:29]: wrote:
> On Fri, Jun 27, 2003 at 01:24:25PM +0300, ODHIAMBO Washington wrote:
> >
> > I have changed my Exim to deliver to /var/spoo/virtual/$(domain)/$(user)/Maildir
> > but now I am stuck. Deliveries occur normally, but authentication with tpop3d
> > fails.
> > In tpop3d.conf I have
> [...]
> > -ERR Unable to open mailbox; it may be locked by another concurrent session.
> > Connection closed by foreign host.
> >
> >
> > I have even changed the permissions on the Maildirs to be 775 but no luck.
> >
> > Any help??
> >
>
> can you run tpop3d with the -v option and tell me what
> appears in the log?
Jun 27 13:41:25 ns2 tpop3d[34482]: listeners_post_select: client [8]62.8.65.182/pop.wananchi.com: connected
Jun 27 13:41:26 ns2 tpop3d[34482]: connection_parsecommand: client [8]62.8.65.182/pop.wananchi.com: received `USER
karim@monaco.co.ke'
Jun 27 13:41:26 ns2 tpop3d[34482]: connection_sendresponse: client [8]62.8.65.182/pop.wananchi.com: sent `+OK Tell me your
password.'
Jun 27 13:41:26 ns2 tpop3d[34482]: connection_parsecommand: client [8]62.8.65.182/pop.wananchi.com: received `PASS [...]'
Jun 27 13:41:26 ns2 tpop3d[34482]: auth_mysql_new_user_pass: SQL query: SELECT concat(domain.path, '/', popbox.mbox_name),
popbox.password_hash, domain.unix_user, 'bsd' FROM popbox, domain WHERE popbox.local_part = 'karim' AND popbox.domain_name =
'monaco.co.ke' AND popbox.domain_name = domain.domain_name
Jun 27 13:41:26 ns2 tpop3d[34482]: authcontext_new_user_pass: began session for `karim@monaco.co.ke' with mysql; uid 69, gid
6
Jun 27 13:41:26 ns2 tpop3d[34482]: fork_child: [8]karim@monaco.co.ke(62.8.65.182): successfully authenticated with mysql
Best regards,
Odhiambo Washington
Wananchi Online Ltd.
___W_A_N_A_N_C_H_I__O_N_L_I_N_E__L_T_D___The People's Choice______
Wananchi Head Office |*| Tel: +254 2 313 985-9
1st Flr Loita, Loita St.|*| Fax: +254 2 313 922
10286-GPO, NAIROBI, KE |*| e-mail:
------------------------------------------------------------------
++
``I need an immediately distinguishable character...
so I'll use something that no-one will recognise.'' (maths lecture)
From chris at ex-parrot.com Fri Jun 27 11:44:51 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Fri, 27 Jun 2003 11:44:51 +0100
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
In-Reply-To: <20030627104302.GB33499@ns2.wananchi.com>
References: <20030627102425.GA45283@ns2.wananchi.com> <20030627102833.GD5161@aquila.esc.cam.ac.uk> <20030627104302.GB33499@ns2.wananchi.com>
Message-ID: <20030627104451.GC8569@aquila.esc.cam.ac.uk>
On Fri, Jun 27, 2003 at 01:43:02PM +0300, ODHIAMBO Washington wrote:
> popbox.password_hash, domain.unix_user, 'bsd' FROM popbox, [...]
^^^^^
You need to change the mailbox type being returned by the
SQL query. Look at auth-mysql-pass-query.
--
Theoreticians have always succeeded in providing an understanding for
all observed phenomena--even those which later proved to be incorrect
(anonymous)
From wplug at tblive.com Tue Jun 3 18:55:44 2003
From: wplug at tblive.com (Ryan Brown)
Date: Tue, 3 Jun 2003 13:55:44 -0400
Subject: [tpop3d-discuss] File locks and dead processes problems
Message-ID: <005901c329f9$760488b0$6401a8c0@lokomoko>
This is a multi-part message in MIME format.
------=_NextPart_000_005A_01C329D7.EEF2E8B0
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
I have been using tpop3d for about 2 years now and never ran into this
problem until recently with version 1.4.2 (Same version is working fine =
on
other servers of mine).
=20
Basically I am having 2 different problem which may or may not be =
related.
The first is file locks. IT seems that mailoxes are locked and the lock =
is
never removed on certain accounts (just under 1 domain, no problems with =
any
of the other domains I am hosting).
=20
The 2nd problem has to do with dead processes. Every few days tpop3d =
seems
to hang and crash the server. The result is a bunch of "D" processes of
tpop3 children that never finish and close, so they back up and soon the
server load is at 20 due to a bunch of D tpop3d processes.
=20
I have tried recompiling tpop3d on the server and it did not fix the
problem.
=20
Does anyone have any suggestions or have you seen this before?=20
=20
Thanks in advance
=20
Ryan
=20
------=_NextPart_000_005A_01C329D7.EEF2E8B0
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Message
I have =
been using=20
tpop3d for about 2 years now and never ran into this problem until =
recently with=20
version 1.4.2 (Same version is working fine on other servers of=20
mine).
Basically I am=20
having 2 different problem which may or may not be related. The first =
is =20
file locks. IT seems that mailoxes are locked and the lock is never =
removed on=20
certain accounts (just under 1 domain, no problems with any of the other =
domains=20
I am hosting).
The =
2nd problem has=20
to do with dead processes. Every few days tpop3d seems to hang and crash =
the=20
server. The result is a bunch of "D" processes of tpop3 children that =
never=20
finish and close, so they back up and soon the server load is at 20 due =
to a=20
bunch of D tpop3d processes.
I have =
tried=20
recompiling tpop3d on the server and it did not fix the=20
problem.
Does =
anyone have any=20
suggestions or have you seen this before?
Thanks =
in=20
advance
Ryan
------=_NextPart_000_005A_01C329D7.EEF2E8B0--
From chris at ex-parrot.com Tue Jun 3 19:04:16 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Tue, 3 Jun 2003 19:04:16 +0100
Subject: [tpop3d-discuss] File locks and dead processes problems
In-Reply-To: <005901c329f9$760488b0$6401a8c0@lokomoko>
References: <005901c329f9$760488b0$6401a8c0@lokomoko>
Message-ID: <20030603180416.GA23471@caesious.cold.local>
On Tue, Jun 03, 2003 at 01:55:44PM -0400, Ryan Brown wrote:
> Does anyone have any suggestions or have you seen this before?
Can you look at the .lock files which are left behind, and
grep for log entries from the PID given in the file?
tpop3d should report any crash, with a message like
quit: signal (signal number) post_fork = (0 or 1)
Turning on verbose logging might be helpful too.
Without more information I can't help much.
--
``A little inaccuracy can save tons of explanation.'' (Saki)
From wplug at tblive.com Fri Jun 6 04:20:50 2003
From: wplug at tblive.com (Ryan Brown)
Date: Thu, 5 Jun 2003 23:20:50 -0400
Subject: [tpop3d-discuss] File locks and dead processes problems
In-Reply-To: <20030603180416.GA23471@caesious.cold.local>
Message-ID: <002201c32bda$b6651a90$6401a8c0@lokomoko>
Well the problem seemed to fix it self. I hav ebeen waiting for it to happen
to check these things but it hasn't yet now which I geuss is good.
-----Original Message-----
From: tpop3d-discuss-admin@lists.beasts.org
[mailto:tpop3d-discuss-admin@lists.beasts.org] On Behalf Of Chris Lightfoot
Sent: Tuesday, June 03, 2003 2:04 PM
To: Ryan Brown
Cc: tpop3d-discuss@lists.beasts.org
Subject: Re: [tpop3d-discuss] File locks and dead processes problems
On Tue, Jun 03, 2003 at 01:55:44PM -0400, Ryan Brown wrote:
> Does anyone have any suggestions or have you seen this before?
Can you look at the .lock files which are left behind, and
grep for log entries from the PID given in the file?
tpop3d should report any crash, with a message like
quit: signal (signal number) post_fork = (0 or 1)
Turning on verbose logging might be helpful too.
Without more information I can't help much.
--
``A little inaccuracy can save tons of explanation.'' (Saki)
_______________________________________________
tpop3d-discuss mailing list
tpop3d-discuss@lists.beasts.org
http://lists.beasts.org/mailman/listinfo/tpop3d-discuss
From pasha at mts.by Mon Jun 9 15:17:41 2003
From: pasha at mts.by (Krivosheev Pavel)
Date: Mon, 09 Jun 2003 17:17:41 +0300
Subject: [tpop3d-discuss] tpop3d + LDAP
Message-ID: <3EE49705.1040903@mts.by>
I have: Solaris 9 with tpop3d v.1.4.2 + OpenLdap v.2.1.12 (alredy working)
I do the following:
1)
# ./configure --prefix=/usr/local \
--sysconfdir=/usr/local/etc \
--localstatedir=/usr/local/var \
--mandir=/usr/local/man \
--enable-mbox-bsd \
--enable-auth-ldap \
--enable-dotfile-locking \
--enable-cclient-fcntl \
--with-openldap-root=/var/tmp/openldap-2.1.12/ - here is my dir from
which I previously installed OpenLdap.
# make
# make install
2) in tpop3d.conf:
listen-address: 10.128.10.3
# mailbox: bsd:/var/mail/$(user)
max-children: 1024
log-facility: mail
timeout-seconds: 300
auth-ldap-enable: yes
auth-ldap-url: ldap://backup:389/dc=mts,dc=by??base?(objectClass=*)
auth-ldap-searchdn: cn=Manager,dc=mts,dc=by
auth-ldap-password: blablabla
auth-ldap-filter: (&(objectclass=MTSperson)(userPassword=*))
auth-ldap-scope: subtree
auth-ldap-mailbox: bsd:/var/mail/$(user) - my mailboxes in /var/mail/
directory
# auth-ldap-mailbox-attr: mail
# auth-ldap-mboxtype-attr: bsd
auth-ldap-mail-user-attr: muser - in LDAP directory i have
auth-ldap-mail-group-attr: mgroup
#auth-ldap-mail-user: mail
#auth-ldap-mail-group: mail
3) # /usr/local/sbin/tpop3d -f /usr/local/etc/tpop3d.conf -v
4) Example of user from my LDAP
version: 1
dn: cn=spam,dc=mts,dc=by
objectClass: MTSperson
o:: MTS
l:: Minsk
sn:: IA==
telephoneNumber: 7776020, 7576020, 2379820
title:: sysadm
ou:: IT department
muser: spam
mgroup: mail
cn: spam
userPassword: hello - User Password in
Unencrypted form (i didnt use crypted PASWD)
mail: spam@backup.inside.mts.by
!!! Question !!!
When i connect from Netscape like user spam@mts.by on server "backup" in
/var/log/mail i saw:
Jun 9 16:15:50 backup tpop3d[15164]: [ID 702911 mail.info] net_loop:
restarting on signal 1
Jun 9 16:15:50 backup tpop3d[15222]: [ID 702911 mail.info] listening on
address 10.128.10.3, port 110, domain inside.mts.by
Jun 9 16:15:50 backup tpop3d[15222]: [ID 702911 mail.debug]
auth_ldap_init: using DN dc=mts,dc=by on backup:389
Jun 9 16:15:50 backup tpop3d[15222]: [ID 702911 mail.info] 1
authentication drivers successfully loaded
Jun 9 16:15:50 backup tpop3d[15222]: [ID 702911 mail.info] net_loop:
tpop3d version 1.4.2 successfully started
Jun 9 16:16:11 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_sendresponse: client [5]10.128.10.113/inside.mts.by: sent
`+OK '
Jun 9 16:16:11 backup tpop3d[15222]: [ID 702911 mail.info]
listeners_post_select: client [5]10.128.10.113/inside.mts.by: connected
Jun 9 16:16:11 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_parsecommand: client [5]10.128.10.113/inside.mts.by: received
`USER spam'
Jun 9 16:16:11 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_sendresponse: client [5]10.128.10.113/inside.mts.by: sent
`+OK Tell me your password.'
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_parsecommand: client [5]10.128.10.113/inside.mts.by: received
`PASS [...]'
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.debug]
auth_ldap_new_user_pass: LDAP search filter:
(&(objectclass=MTSperson)(userPassword=*))
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
auth_ldap_new_user_pass: search returned 8 entries
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.debug]
connection_sendresponse: client [5]10.128.10.113/inside.mts.by: sent
`-ERR Lies! Try again!'
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
connection_do: client `[5]10.128.10.113/inside.mts.by': username `spam':
1 authentication failures
!!! Why "authentication failures" IF i enter the RIGHT passwd "hello"
I have user spam with mailbox /var/mail/spam with OWN - spam:mail and
MOD - 660 and passwd = hello
When I connect to my LDAP like user "spam" and passwd = hello from other
applications everything is fine !!!
!!! Please help !!!
From chris at ex-parrot.com Mon Jun 9 15:21:58 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Mon, 9 Jun 2003 15:21:58 +0100
Subject: [tpop3d-discuss] tpop3d + LDAP
In-Reply-To: <3EE49705.1040903@mts.by>
References: <3EE49705.1040903@mts.by>
Message-ID: <20030609142158.GA30254@aquila.esc.cam.ac.uk>
On Mon, Jun 09, 2003 at 05:17:41PM +0300, Krivosheev Pavel wrote:
> Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
> auth_ldap_new_user_pass: search returned 8 entries
Your search filter must return only one result.
--
Murder is always a mistake.... One should never do anything which
one cannot talk about after dinner (Wilde)
From chris at ex-parrot.com Mon Jun 9 16:46:13 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Mon, 9 Jun 2003 16:46:13 +0100
Subject: [tpop3d-discuss] tpop3d + LDAP
In-Reply-To: <3EE4A647.3000803@mts.by>
References: <3EE49705.1040903@mts.by> <20030609142158.GA30254@aquila.esc.cam.ac.uk> <3EE4A647.3000803@mts.by>
Message-ID: <20030609154613.GA11286@aquila.esc.cam.ac.uk>
[ please keep discussion on-list, so that others may
benefit from it ]
On Mon, Jun 09, 2003 at 06:22:47PM +0300, Krivosheev Pavel wrote:
> Chris Lightfoot wrote:
> >On Mon, Jun 09, 2003 at 05:17:41PM +0300, Krivosheev Pavel wrote:
> >>Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
> >> auth_ldap_new_user_pass: search returned 8 entries
> >
> >Your search filter must return only one result.
>
> In my LDAP base only 8 users have UserPassword and result = 8.
> When delete 7 (its test users) of them and leave only user "spam" with
> attribute userPassword then everything work.
[...]
> But how to force work with others users. What SEARCH FILTER must be ???
It must use the $(user), $(local_part) or whatever
attributes to narrow down the search to a specific user.
Something like
(objectclass=MTSperson)(muser=$(user))
?
--
``After all, what is your hosts' purpose in having a party? Surely not for
you to enjoy yourself; if that were their sole purpose, they'd have simply
sent champagne and women over to your place by taxi.'' (P. J. O'Rourke)
From pasha at mts.by Tue Jun 10 12:33:11 2003
From: pasha at mts.by (Krivosheev Pavel)
Date: Tue, 10 Jun 2003 14:33:11 +0300
Subject: [tpop3d-discuss] tpop3d + LDAP
References: <3EE49705.1040903@mts.by> <20030609142158.GA30254@aquila.esc.cam.ac.uk> <3EE4A647.3000803@mts.by> <20030609154613.GA11286@aquila.esc.cam.ac.uk>
Message-ID: <3EE5C1F7.1020602@mts.by>
--------------010102030901030708030906
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Chris Lightfoot wrote:
> [ please keep discussion on-list, so that others may
> benefit from it ]
>
>On Mon, Jun 09, 2003 at 06:22:47PM +0300, Krivosheev Pavel wrote:
>
>
>>Chris Lightfoot wrote:
>>
>>
>>>On Mon, Jun 09, 2003 at 05:17:41PM +0300, Krivosheev Pavel wrote:
>>>
>>>
>
>
>
>>>>Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
>>>> auth_ldap_new_user_pass: search returned 8 entries
>>>>
>>>>
>>>Your search filter must return only one result.
>>>
>>>
>>In my LDAP base only 8 users have UserPassword and result = 8.
>>When delete 7 (its test users) of them and leave only user "spam" with
>>attribute userPassword then everything work.
>>
>>
> [...]
>
>
>>But how to force work with others users. What SEARCH FILTER must be ???
>>
>>
>
>It must use the $(user), $(local_part) or whatever
>attributes to narrow down the search to a specific user.
>Something like
>
> (objectclass=MTSperson)(muser=$(user))
>
>?
>
>
>
Thats WORK just FINE !!!
Thanks a LOT Chris !!!
--------------010102030901030708030906
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Chris Lightfoot wrote:
[ please keep discussion on-list, so that others may
benefit from it ]
On Mon, Jun 09, 2003 at 06:22:47PM +0300, Krivosheev Pavel wrote:
Chris Lightfoot wrote:
On Mon, Jun 09, 2003 at 05:17:41PM +0300, Krivosheev Pavel wrote:
Jun 9 16:16:16 backup tpop3d[15222]: [ID 702911 mail.error]
auth_ldap_new_user_pass: search returned 8 entries
Your search filter must return only one result.
In my LDAP base only 8 users have UserPassword and result = 8.
When delete 7 (its test users) of them and leave only user "spam" with
attribute userPassword then everything work.
[...]
But how to force work with others users. What SEARCH FILTER must be ???
It must use the $(user), $(local_part) or whatever
attributes to narrow down the search to a specific user.
Something like
(objectclass=MTSperson)(muser=$(user))
?
Thats WORK just FINE !!!
Thanks a LOT Chris !!!
--------------010102030901030708030906--
From wash at wananchi.com Fri Jun 27 11:24:25 2003
From: wash at wananchi.com (ODHIAMBO Washington)
Date: Fri, 27 Jun 2003 13:24:25 +0300
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
Message-ID: <20030627102425.GA45283@ns2.wananchi.com>
I have changed my Exim to deliver to /var/spoo/virtual/$(domain)/$(user)/Maildir
but now I am stuck. Deliveries occur normally, but authentication with tpop3d
fails.
In tpop3d.conf I have
mailbox: maildir:/var/spool/virtual/$(domain)/$(user)/Maildir/ maildir:$(home)/Maildir
When I tryto access a mailbox, I get this:
wash@ns2 ('tty') ~ 12 -> telnet 0 110
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
+OK <4c4c81cfee1f9b1a47b13254bd9bcc83@pop.wananchi.com>
user wash@airoquip.com
+OK Tell me your password.
pass wash
-ERR Unable to open mailbox; it may be locked by another concurrent session.
Connection closed by foreign host.
I have even changed the permissions on the Maildirs to be 775 but no luck.
Any help??
-Wash
--
Odhiambo Washington "The box said 'Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,'
Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD."
GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-)
Science is what happens when preconception meets verification.
From chris at ex-parrot.com Fri Jun 27 11:28:33 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Fri, 27 Jun 2003 11:28:33 +0100
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
In-Reply-To: <20030627102425.GA45283@ns2.wananchi.com>
References: <20030627102425.GA45283@ns2.wananchi.com>
Message-ID: <20030627102833.GD5161@aquila.esc.cam.ac.uk>
On Fri, Jun 27, 2003 at 01:24:25PM +0300, ODHIAMBO Washington wrote:
>
> I have changed my Exim to deliver to /var/spoo/virtual/$(domain)/$(user)/Maildir
> but now I am stuck. Deliveries occur normally, but authentication with tpop3d
> fails.
> In tpop3d.conf I have
[...]
> -ERR Unable to open mailbox; it may be locked by another concurrent session.
> Connection closed by foreign host.
>
>
> I have even changed the permissions on the Maildirs to be 775 but no luck.
>
> Any help??
>
can you run tpop3d with the -v option and tell me what
appears in the log?
--
``All human actions are equivalent, and all are doomed to failure.'' (Sartre)
From wash at wananchi.com Fri Jun 27 11:40:27 2003
From: wash at wananchi.com (ODHIAMBO Washington)
Date: Fri, 27 Jun 2003 13:40:27 +0300
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
In-Reply-To: <20030627102833.GD5161@aquila.esc.cam.ac.uk>
References: <20030627102425.GA45283@ns2.wananchi.com> <20030627102833.GD5161@aquila.esc.cam.ac.uk>
Message-ID: <20030627104027.GA33499@ns2.wananchi.com>
* Chris Lightfoot [20030627 13:29]: wrote:
> On Fri, Jun 27, 2003 at 01:24:25PM +0300, ODHIAMBO Washington wrote:
> >
> > I have changed my Exim to deliver to /var/spoo/virtual/$(domain)/$(user)/Maildir
> > but now I am stuck. Deliveries occur normally, but authentication with tpop3d
> > fails.
> > In tpop3d.conf I have
> [...]
> > -ERR Unable to open mailbox; it may be locked by another concurrent session.
> > Connection closed by foreign host.
> >
> >
> > I have even changed the permissions on the Maildirs to be 775 but no luck.
> >
> > Any help??
> >
>
> can you run tpop3d with the -v option and tell me what
> appears in the log?
All users are getting this error:
Jun 27 13:37:31 ns2 tpop3d[34581]: connection_sendresponse: client [8]wash@airoquip.com(62.8.64.4): sent `-ERR Unable to open
mailbox; it may be locked by another concurrent session.'
Best regards,
Odhiambo Washington
Wananchi Online Ltd.
___W_A_N_A_N_C_H_I__O_N_L_I_N_E__L_T_D___The People's Choice______
Wananchi Head Office |*| Tel: +254 2 313 985-9
1st Flr Loita, Loita St.|*| Fax: +254 2 313 922
10286-GPO, NAIROBI, KE |*| e-mail:
------------------------------------------------------------------
++
"GUIs normally make it simple to accomplish simple actions and
impossible to accomplish complex actions."
--Doug Gwyn (22/Jun/91 in comp.unix.wizards)
From wash at wananchi.com Fri Jun 27 11:43:02 2003
From: wash at wananchi.com (ODHIAMBO Washington)
Date: Fri, 27 Jun 2003 13:43:02 +0300
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
In-Reply-To: <20030627102833.GD5161@aquila.esc.cam.ac.uk>
References: <20030627102425.GA45283@ns2.wananchi.com> <20030627102833.GD5161@aquila.esc.cam.ac.uk>
Message-ID: <20030627104302.GB33499@ns2.wananchi.com>
* Chris Lightfoot [20030627 13:29]: wrote:
> On Fri, Jun 27, 2003 at 01:24:25PM +0300, ODHIAMBO Washington wrote:
> >
> > I have changed my Exim to deliver to /var/spoo/virtual/$(domain)/$(user)/Maildir
> > but now I am stuck. Deliveries occur normally, but authentication with tpop3d
> > fails.
> > In tpop3d.conf I have
> [...]
> > -ERR Unable to open mailbox; it may be locked by another concurrent session.
> > Connection closed by foreign host.
> >
> >
> > I have even changed the permissions on the Maildirs to be 775 but no luck.
> >
> > Any help??
> >
>
> can you run tpop3d with the -v option and tell me what
> appears in the log?
Jun 27 13:41:25 ns2 tpop3d[34482]: listeners_post_select: client [8]62.8.65.182/pop.wananchi.com: connected
Jun 27 13:41:26 ns2 tpop3d[34482]: connection_parsecommand: client [8]62.8.65.182/pop.wananchi.com: received `USER
xxxxx@xxxxxx.xx.ke'
Jun 27 13:41:26 ns2 tpop3d[34482]: connection_sendresponse: client [8]62.8.65.182/pop.wananchi.com: sent `+OK Tell me your
password.'
Jun 27 13:41:26 ns2 tpop3d[34482]: connection_parsecommand: client [8]62.8.65.182/pop.wananchi.com: received `PASS [...]'
Jun 27 13:41:26 ns2 tpop3d[34482]: auth_mysql_new_user_pass: SQL query: SELECT concat(domain.path, '/', popbox.mbox_name),
popbox.password_hash, domain.unix_user, 'bsd' FROM popbox, domain WHERE popbox.local_part = 'xxxxx' AND popbox.domain_name =
'xxxxxx.xx.ke' AND popbox.domain_name = domain.domain_name
Jun 27 13:41:26 ns2 tpop3d[34482]: authcontext_new_user_pass: began session for `xxxxx@xxxxxx.xx.ke' with mysql; uid 69, gid
6
Jun 27 13:41:26 ns2 tpop3d[34482]: fork_child: [8]xxxxx@xxxxxx.xx.ke(62.8.65.182): successfully authenticated with mysql
Best regards,
Odhiambo Washington
Wananchi Online Ltd.
___W_A_N_A_N_C_H_I__O_N_L_I_N_E__L_T_D___The People's Choice______
Wananchi Head Office |*| Tel: +254 2 313 985-9
1st Flr Loita, Loita St.|*| Fax: +254 2 313 922
10286-GPO, NAIROBI, KE |*| e-mail:
------------------------------------------------------------------
++
``I need an immediately distinguishable character...
so I'll use something that no-one will recognise.'' (maths lecture)
From chris at ex-parrot.com Fri Jun 27 11:44:51 2003
From: chris at ex-parrot.com (Chris Lightfoot)
Date: Fri, 27 Jun 2003 11:44:51 +0100
Subject: [tpop3d-discuss] Maildir auth failure - Panic mode!!
In-Reply-To: <20030627104302.GB33499@ns2.wananchi.com>
References: <20030627102425.GA45283@ns2.wananchi.com> <20030627102833.GD5161@aquila.esc.cam.ac.uk> <20030627104302.GB33499@ns2.wananchi.com>
Message-ID: <20030627104451.GC8569@aquila.esc.cam.ac.uk>
On Fri, Jun 27, 2003 at 01:43:02PM +0300, ODHIAMBO Washington wrote:
> popbox.password_hash, domain.unix_user, 'bsd' FROM popbox, [...]
^^^^^
You need to change the mailbox type being returned by the
SQL query. Look at auth-mysql-pass-query.
--
Theoreticians have always succeeded in providing an understanding for
all observed phenomena--even those which later proved to be incorrect
(anonymous)
From wash at wananchi.com Fri Jun 27 15:16:10 2003
From: wash at wananchi.com (ODHIAMBO Washington)
Date: Fri, 27 Jun 2003 17:16:10 +0300
Subject: [tpop3d-discuss] Maildir auth failure - SOLVED
In-Reply-To: <20030627104451.GC8569@aquila.esc.cam.ac.uk>
References: <20030627102425.GA45283@ns2.wananchi.com> <20030627102833.GD5161@aquila.esc.cam.ac.uk> <20030627104302.GB33499@ns2.wananchi.com> <20030627104451.GC8569@aquila.esc.cam.ac.uk>
Message-ID: <20030627141610.GF9172@ns2.wananchi.com>
* Chris Lightfoot [20030627 13:44]: wrote:
> On Fri, Jun 27, 2003 at 01:43:02PM +0300, ODHIAMBO Washington wrote:
> > popbox.password_hash, domain.unix_user, 'bsd' FROM popbox, [...]
> ^^^^^
> You need to change the mailbox type being returned by the
> SQL query. Look at auth-mysql-pass-query.
Without modifying anything in vmail-sql, I used this query in tpop3d.conf:
auth-mysql-pass-query: SELECT CONCAT(domain.path, '/', popbox.mbox_name), \
popbox.password_hash, \
domain.unix_user, \
'maildir' \
FROM popbox, domain \
WHERE popbox.local_part = '$(local_part)' \
AND popbox.domain_name = '$(domain)' \
AND popbox.domain_name = domain.domain_name
And voila!!
Best regards,
Odhiambo Washington
Wananchi Online Ltd.
___W_A_N_A_N_C_H_I__O_N_L_I_N_E__L_T_D___The People's Choice______
Wananchi Head Office |*| Tel: +254 2 313 985-9
1st Flr Loita, Loita St.|*| Fax: +254 2 313 922
10286-GPO, NAIROBI, KE |*| e-mail:
------------------------------------------------------------------
++
``After all, what is your hosts' purpose in having a party? Surely not for
you to enjoy yourself; if that were their sole purpose, they'd have simply
sent champagne and women over to your place by taxi.'' (P. J. O'Rourke)