[tpop3d-discuss] Postfix & tpop3d problem (virtual new mailbox permissions)

egor234 egor234 at yandex.ru
Thu, 4 Dec 2003 11:01:50 +0300 (MSK)


Hi!

Can anybody help me to resolve my problem?
I use tpop3d with Postfix+Mysql.

[root@]# cat tpop3d.conf
listen-address: 10.0.0.1
max-children: 1024
log-facility: mail
auth-mysql-enable: yes
auth-mysql-mail-group: mail
auth-mysql-hostname: 127.0.0.1
auth-mysql-database: mail
auth-mysql-username: postfix
auth-mysql-password: qwe123
auth-mysql-pass-query: SELECT maildir,\
CONCAT('{crypt}',passwd),'mail','bsd' \
FROM users \
WHERE email='$(user)@mydomain.ru'

Everything work really fine, but postfix virtual create new mailbox in /var/spool/mail with permissions 600, so tpop3d cannot access mailbox, because there is no access for group "mail":

[root@]# ls -l /var/spool/mail
-rw-------    testmailbox 1000     mail         1554 Dec  4 12:19 777

Log said:

Dec  4 12:19:28 tpop3d[9971]: mailspool_new_from_file: Permission denied
Dec  4 12:19:28 tpop3d[9971]: dotfile_unlock(/var/spool/mail/testmailbox): open: No such file or directory

Is the only solution for that problem "chmod 660 /var/spool/mail/mailbox_name" after creating every new mailbox? 

BR, Egor