[tpop3d-discuss] Maildir auth failure - SOLVED

ODHIAMBO Washington wash at wananchi.com
Fri, 27 Jun 2003 17:16:10 +0300


* Chris Lightfoot <chris@ex-parrot.com> [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: <wash at wananchi dot com>
------------------------------------------------------------------
++

``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)