Hi.

LC_CTYPE=en_US.utf8
postgresql in UTF8

dbmail.conf:
encoding             = utf8
default_msg_encoding = utf8

Mail client TheBat! 3.99.1
Mozilla Thunderbird 2.0.0.4
dbmail-pop3d runs and normal work. Not crushed.

Log from mail client:
-------------------------------------------------------------------------------------<<
[13:19:39]  C: Connected to mail.xxx.ru, port 110
[13:19:40]  S: +OK DBMAIL pop3 server ready to rock <[EMAIL PROTECTED]>
[13:19:40]  C: USER user1
[13:19:40]  S: +OK Password required for maxik
[13:19:40]  C: PASS pass1
[13:19:41]  S: +OK user1 has 1 messages (1036 octets)
[13:19:41]  C: STAT
[13:19:41]  S: +OK 1 1036
[13:19:41]  C: LIST
[13:19:41]  S: +OK 1 messages (1036 octets)
[13:19:42]  S: 1 1036
[13:19:42]  S: .
[13:19:42]  C: UIDL
[13:19:42]  S: +OK Some very unique numbers for you
[13:19:43]  S: 1 c867ebf5621269b29b06a93d5ba52ec4
[13:19:43]  S: .
[13:19:43]  C: RETR 1
[13:19:43]  S: +OK 1036 octets
-------------------------------------------------------------------------------------<<


No message body!!!
-------------------------------------------------------------------------------------<<
Log from mail.log (other time and user):

Jun 21 17:59:12 bosko-l dbmail/pop3d[27564]: Info:[serverchild] 
serverchild.c,select_and_accept(+252): received
connection
Jun 21 17:59:12 bosko-l dbmail/pop3d[27564]: Info:[serverchild] 
serverchild.c,select_and_accept(+275):
connection accepted
Jun 21 17:59:12 bosko-l dbmail/pop3d[27564]: Message:[serverchild] 
serverchild.c,PerformChildTask(+341):
incoming connection from [81.211.32.230] by pid [27564]
Jun 21 17:59:12 bosko-l dbmail/pop3d[27564]: Debug:[serverchild] 
serverchild.c,PerformChildTask(+366): client
info init complete, calling client handler
Jun 21 17:59:12 bosko-l dbmail/pop3d[27564]: Debug:[misc] 
misc.c,create_unique_id(+111): created:
164a1e198210409666a86605a063af70
Jun 21 17:59:12 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+295): 
incoming buffer: [USER maxim]
Jun 21 17:59:12 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+309): 
command issued :cmd [USER], value
[maxim] 
Jun 21 17:59:12 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+321): 
command looked up as commandtype 1
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+295): 
incoming buffer: [PASS ---xxx---]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+309): 
command issued :cmd [PASS], value
[---xxx---] 
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+321): 
command looked up as commandtype 2
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [SELECT userid FROM
dbmail_usermap WHERE 1 = 2]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_use_usermap(+167): enabling usermap lookups
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_usermap_resolve(+4536): checking userid [maxim]
in usermap
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_usermap_resolve(+4547): client on inet socket
[inet:10.1.0.189:110]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [SELECT login, sock_allow,
sock_deny, userid FROM dbmail_usermap WHERE login in ('maxim','ANY') ORDER BY 
sock_allow, sock_deny]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_usermap_resolve(+4573): login [maxim] not found
in usermap
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [SELECT user_idnr FROM
dbmail_users WHERE lower(userid) = lower('maxim')]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [SELECT user_idnr, passwd,
encryption_type FROM dbmail_users WHERE user_idnr = 4]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[auth] 
authsql.c,auth_validate(+401): validating using
plaintext passwords
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [UPDATE dbmail_users SET
last_login = '2007-06-21 17:59:13' WHERE user_idnr = 4]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+413): 
validation OK, building a session
for user [maxim]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_findmailbox(+2519): looking for mailbox with FQN
[INBOX].
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [SELECT mailbox_idnr FROM
dbmail_mailboxes WHERE name ILIKE 'INBOX' AND owner_idnr=4]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_find_create_mailbox(+3370): mailbox [INBOX] found
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [SELECT pm.messagesize,
msg.message_idnr, msg.status, msg.unique_id FROM dbmail_messages msg, 
dbmail_physmessage pm WHERE
msg.mailbox_idnr = 2 AND msg.status < 2 AND msg.physmessage_id = pm.id ORDER BY 
msg.message_idnr ASC]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_createsession(+2242): adding items to list
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_createsession(+2267): adding succesful
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Message:[pop3] pop3.c,pop3(+430): 
user maxim logged in [messages=1,
octets=1036]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+295): 
incoming buffer: [STAT]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+321): 
command looked up as commandtype 3
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+295): 
incoming buffer: [LIST]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+321): 
command looked up as commandtype 4
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+295): 
incoming buffer: [UIDL]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+321): 
command looked up as commandtype 10
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+295): 
incoming buffer: [RETR 1]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+309): 
command issued :cmd [RETR], value
[1] 
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+321): 
command looked up as commandtype 5
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+487): 
RETR command, retrieving message
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[pop3] pop3.c,pop3(+495): 
RETR command, selecting message
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_send_message_lines(+2144): request for [-2] lines
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [SELECT physmessage_id FROM
dbmail_messages WHERE message_idnr = 6]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[db] 
db.c,db_send_message_lines(+2151): sending [-2] lines
from message [6]
Jun 21 17:59:13 bosko-l dbmail/pop3d[27564]: Debug:[sql] 
dbpgsql.c,db_query(+276): [SELECT messageblk, is_header
FROM dbmail_messageblks WHERE physmessage_id = 5 ORDER BY messageblk_idnr]
Jun 21 17:59:13 bosko-l dbmail/pop3d[20697]: Message:[server] 
pool.c,child_register(+294): register child [20697]
Jun 21 17:59:13 bosko-l dbmail/pop3d[20697]: Info:[server] 
pool.c,child_register(+319): initializing child_state
[20697] using slot [1]
Jun 21 17:59:13 bosko-l dbmail/pop3d[20697]: Info:[serverchild] 
serverchild.c,CreateChild(+194): signal handler
placed, going to perform task now
Jun 21 17:59:13 bosko-l dbmail/pop3d[20697]: Debug:[db] 
dbmodule.c,db_load_driver(+56): library_directory is
[/usr/local/lib/dbmail]
Jun 21 17:59:13 bosko-l dbmail/pop3d[20697]: Debug:[db] 
dbmodule.c,db_load_driver(+69): looking for pgsql as
/usr/local/lib/dbmail/libpgsql.so
Jun 21 17:59:13 bosko-l dbmail/pop3d[27557]: Message:[server] 
pool.c,scoreboard_state(+585): Scoreboard state:
children [2/20], spares [2 (2 - 10)]
Jun 21 17:59:13 bosko-l dbmail/pop3d[20697]: Debug:[auth] 
authmodule.c,auth_load_driver(+51): library_directory
is [/usr/local/lib/dbmail]
Jun 21 17:59:13 bosko-l dbmail/pop3d[20697]: Debug:[auth] 
authmodule.c,auth_load_driver(+64): looking for
auth_sql as /usr/local/lib/dbmail/libauth_sql.so
Jun 21 17:59:13 bosko-l dbmail/pop3d[20697]: Info:[serverchild] 
serverchild.c,select_and_accept(+223): waiting
for connection
--------------------------------------------------------------------------------<<

Log from gdb:
--------------------------------------------------------------------------------<<
(gdb) file /usr/local/sbin/dbmail-pop3d
Reading symbols from /usr/local/sbin/dbmail-pop3d...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) set args -n
(gdb) run
Starting program: /usr/local/sbin/dbmail-pop3d -n
[Thread debugging using libthread_db enabled]
[New Thread -1211902272 (LWP 20979)]
+OK DBMAIL pop3 server ready to rock <[EMAIL PROTECTED]>
USER maxim
+OK Password required for maxik
PASS 123456
+OK maxik has 1 messages (1036 octets)
Jun 21 18:26:48 bosko-l.br.urban dbmail-pop3d[20979]: Message:[pop3] 
pop3.c,pop3(+430): user maxim logged in
[messages=1, octets=1036]
STAT
+OK 1 1036
LIST
+OK 1 messages (1036 octets)
1 1036
.
UIDL
+OK Some very unique numbers for you
1 c867ebf5621269b29b06a93d5ba52ec4
.
RETR 1
+OK 1036 octets
Received: by bosko-l.br.urbannet.ru (Postfix, from userid 119)
        id BBA3E5FCA18; Thu, 21 Jun 2007 13:06:01 +0400 (MSD)
X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on
        bosko-l.br.urbannet.ru
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=7.0 tests=none autolearn=failed
        version=3.2.1
Received: from root.ntsystem.com (root.ntsystem.com [81.211.32.230])
        by bosko-l.br.urbannet.ru (Postfix) with ESMTP id 46FA35FCA16
        for <[EMAIL PROTECTED]>; Thu, 21 Jun 2007 13:05:57 +0400 (MSD)
Received: from [192.168.0.12] (unknown [192.168.0.12])
        by root.ntsystem.com (Postfix) with ESMTP id 0BAF5F0C8B
        for <[EMAIL PROTECTED]>; Thu, 21 Jun 2007 13:05:57 +0400 (MSD)
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 21 Jun 2007 13:05:23 +0400
From: Maxim Zaitsev <[EMAIL PROTECTED]>
User-Agent: Thunderbird 2.0.0.4 (Windows/20070604)
To: [EMAIL PROTECTED]
Subject: test 10
Return-Path: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit
X-DBMail-PhysMessage-ID: 5

test 10

.
QUIT
Jun 21 18:28:16 bosko-l.br.urban dbmail-pop3d[20979]: Message:[pop3] 
pop3.c,pop3_handle_connection(+178): user
maxim logging out [messages=1, octets=1036]
+OK see ya later

Program exited normally.
(gdb)
-----------------------------------------------------------------------------<<

message body is returned! 8-()

There is an opinion why it occurs and how to force this all to work normally?
HELP PLEASE!!!


-- 
С уважением,
 Maxim                          mailto:[EMAIL PROTECTED]

_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to