[tpop3d-discuss] Maildir Support

Hakan Terzioglu terzioglu at teklan.net
27 Aug 2002 19:10:03 +0300


Hi All,

I am testing vmail-sql,tpop3d,Mysq combo to use in a large production
server. I am trying to use maildir instead of mbox. I configured tpop3d
via these :

./configure --prefix=/usr --disable-auth-pam  \
--with-mailspool-directory=/var/spool/exim --enable-auth-mysql \
--disable-mbox-bsd --enable-mbox-maildir

My tpop3d.conf ::

listen-address: 0.0.0.0
log-facility: local5
auth-mysql-enable: true
mailbox: maildir :/var/spool/exim/$(domain)/$(local_part)
auth-mysql-hostname: localhost
auth-mysql-database: vmailsqldb
auth-mysql-username: vmail
auth-mysql-password: vmailpassword

My Exim 3.36 conf :: 

virtual_localdelivery:
  driver = appendfile
  maildir_format
  create_directory
 directory =  ${lookup mysql{select path from domain left join \
domain_alias on domain_alias.domain_name = domain.domain_name where \
domain.domain_name = '${quote_mysql:$domain}' or domain_alias.alias = \
'${quote_mysql:$domain}'}{$value}fail}/${lookup mysql{select mbox_name \
from popbox left join domain_alias on popbox.domain_name = \
domain_alias.domain_name where (popbox.domain_name = \
'${quote_mysql:$domain}' or domain_alias.alias = \
'${quote_mysql:$domain}') and local_part = \
'${quote_mysql:$local_part}'}{$value}fail} \
  delivery_date_add
  envelope_to_add
  return_path_add
  user = ${lookup mysql{select unix_user from domain left join \
domain_alias on domain_alias.domain_name = domain.domain_name where \
domain.domain_name = '${quote_mysql:$domain}' or domain_alias.alias = \
'${quote_mysql:$domain}'}{$value}fail} \
  mode = 0660

Problem:: tpop3d welcomes authenticated user, but do not show any mail
in maildir. here is output:

fork_child: [6]selam@teklan.net(195.174.7.58): successfully
authenticated with mysql
fork_child: new child is PID 14929
mailbox_new(/var/spool/exim/teklan.net/selam): request for unknown
mailbox type bsd
connection_sendresponse: client [6]selam@teklan.net(195.174.7.58): sent
`+OK Welcome aboard! You have no messages at all.'