[tpop3d-discuss] maildir woes

Colin colin at shaw.ca
Mon, 03 Mar 2003 00:25:46 -0700


I'm trying to install tpop3d using vmail-sql with maildirs.
I can authenticate, and log into tpop3d no problem, but I can't find 
mail that's sitting in the directories.  If I have exim deliver in 
mailbox format, everything works fine (with no changes to the 
tpop3d.conf file).  Maybe I'm just reading stuff wrong, so here are my 
configs and what stuff looks like when logging into tpop3d (This has 
happened for both 1.4.1 and 1.4.2, currently using 1.4.1)

first I delivered a test message to the test account:
--------------------------------------

# /usr/eximtest/bin/exim -v testing@the-cave.net
From: stolen@thecave.net
To: testing@the-cave.net
Subject: Testing.

Here's a test message to read.
.
LOG: MAIN
   <= root@derf.thecave.net U=root P=local S=330
[root@derf tpop3d-1.4.1]# LOG: MAIN
   => testing <testing@the-cave.net> R=MySql_local_user 
T=MySql_local_delivery
LOG: MAIN
   Completed

--------------------------------------
I then verified that there's a message there:
--------------------------------------

# ls -al /var/mail/SERVERS/the-cave.net/testing/
total 12
drwx------    2 the-cave the-cave     4096 Mar  3 00:00 .
drwxrwxrwt    5 the-cave the-cave     4096 Mar  3 00:00 ..
-rw-rw----    1 the-cave the-cave      448 Mar  3 00:00 q18pjwO-606273

# cat /var/mail/SERVERS/the-cave.net/testing/q18pjwO-606273
Return-path: <root@derf.thecave.net>
Envelope-to: testing@the-cave.net
Delivery-date: Mon, 03 Mar 2003 00:00:48 -0700
Received: from root by derf.thecave.net with local (Exim 4.12)
         id 18pjvy-0007O4-00
         for testing@the-cave.net; Mon, 03 Mar 2003 00:00:43 -0700
From: stolen@thecave.net
To: testing@the-cave.net
Subject: Testing.
Message-Id: <E18pjvy-0007O4-00@derf.thecave.net>
Date: Mon, 03 Mar 2003 00:00:43 -0700

Here's a test message to read.

--------------------------------------
and then I logged in to the tpop3d server:
--------------------------------------

# telnet localhost 111
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <e6162856d91fd60c24ab9afc7d266314@derf.thecave.net>
user testing@the-cave.net
+OK Tell me your password.
pass xxxxxxx
+OK Welcome aboard! You have no messages at all.
list
+OK Scan list follows:
.
quit
+OK Done

--------------------------------------
So no messages for me, even tho there is one waiting in the box.
Here's what the mail server session looked like:
--------------------------------------

# tpop3d -dv
listener_new: gethostbyaddr(0.0.0.0): cannot resolve name
listener_new: 0.0.0.0: no domain suffix can be appended for this address
listener_new: 0.0.0.0: using fallback domain suffix `derf.thecave.net'
listening on address 0.0.0.0, port 111, domain derf.thecave.net
1 authentication drivers successfully loaded
net_loop: tpop3d version 1.4.1 successfully started
connection_sendresponse: client [6]127.0.0.1/derf.thecave.net: sent `+OK 
<5e5b3eb61d135ef8f91a5f179240cff4@derf.thecave.net>'
listeners_post_select: client [6]127.0.0.1/derf.thecave.net: connected
connection_parsecommand: client [6]127.0.0.1/derf.thecave.net: received 
`user testing@the-cave.net'
connection_sendresponse: client [6]127.0.0.1/derf.thecave.net: sent `+OK 
Tell me your password.'
connection_parsecommand: client [6]127.0.0.1/derf.thecave.net: received 
`pass [...]'
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 = 'testing' AND 
popbox.domain_name = 'the-cave.net' AND popbox.domain_name = 
domain.domain_name
authcontext_new_user_pass: began session for `testing@the-cave.net' with 
mysql; uid 1068, gid 1068
fork_child: [6]testing@the-cave.net(127.0.0.1): successfully 
authenticated with mysql
fork_child: new child is PID 32074
connection_sendresponse: client [6]testing@the-cave.net(127.0.0.1): sent 
`+OK Welcome aboard! You have no messages at all.'
connection_parsecommand: client [6]testing@the-cave.net(127.0.0.1): 
received `list'
connection_sendresponse: client [6]testing@the-cave.net(127.0.0.1): sent 
`+OK Scan list follows:'
connection_do: client [6]testing@the-cave.net(127.0.0.1): sent 1-line 
scan list
connection_parsecommand: client [6]testing@the-cave.net(127.0.0.1): 
received `quit'
connection_sendresponse: client [6]testing@the-cave.net(127.0.0.1): sent 
`+OK Done'
connections_post_select: client [6]testing@the-cave.net(127.0.0.1): 
disconnected
authcontext_delete: finished session for `testing@the-cave.net' with mysql

--------------------------------------
I'm thinking that by this line:
	popbox.mbox_name), popbox.password_hash, domain.unix_user, 'bsd'
That the server is still trying to use the bsd mailbox format.
here's what tpop3d -h shows for available mailbox drivers:
Available mailbox drivers:

   bsd              BSD (`Unix') mailspool
   maildir          Qmail-style maildir
   empty            Empty mailbox

and here's what I've tried to specify in my config:
	mailbox: maildir:/var/mail/SERVERS/$(domain)/$(localpart)
(I've also tried with bsd: and both maildir and bsd)

Where am I going wrong?