[tpop3d-discuss]Permission problems with tpop3d

Kevin Bonner keb at pa.net
Thu, 11 Mar 2004 10:04:24 -0500


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 11 March 2004 06:54, Rob Fulton wrote:
> If we try and run with the more secure permissions, we get the following
> errors in the tpop3d.log :
>
> maildir_build_index: opendir(new): Permission denied
>
> This fault appears to be caused by the opendir call in maildir.c, as far =
as
> we can tell, if the directory isn't openable as group mail, the call fail=
s,
> even if the actual server can open it due to it being openable by user
> mail.
>
> Has anyone come across this problem or a fix?

I assume you have 'auth-mysql-mail-group: mail' in your tpop3d.conf file, a=
s=20
the group permissions are working correctly.

Make sure your auth-mysql-pass-query or auth-mysql-apop-query is returning =
the=20
desired username/uid to run as.  An example would be:

	SELECT CONCAT( [blah blah blah] ), CONCAT('{crypt}',master.passwd),
		'mail', 'maildir'
	FROM ....

The third item returned from the query is mail.  I believe this can be eith=
er=20
a user name or the actual uid to run as.

Kevin Bonner
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAUH/9/9i/ml3OBYMRAiU4AJ9IDSLyhaWGupKkeU/9GSXH036XfQCfbPj1
XqZvEy5xHL36qTjWhmIjZrI=3D
=3DPGN/
=2D----END PGP SIGNATURE-----