[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable_to_chdir_to_maildir



hello all

I m new to qmail-mysql...

first see below my setup ...

Qmail Source Dir: /netqmail-1.05/qmail-1.03
Qmail- SQl patch: qmail-sql-0.26pre4.patch ( i m using mysql)

Now i have appiled the patch and config file as per below..
[root@mail qmail-1.03]# cat sqltype.h
#define SQLTYPE MYSQLTYPE
[root@mail qmail-1.03]# cat sql.headers
-I/usr/include/mysql
[root@mail qmail-1.03]# cat mysql.h (Copied from /usr/include/mysql & edited)
-I/usr/include/mysql
[root@mail qmail-1.03]# cat sql.lib
-lmysqlclient
[root@mail qmail]# ls -l sqlhome/
total 4
drwx------    5 root     nofiles      4096 Aug 14 12:14 test
[root@mail qmail]# cd control/
[root@mail control]# ls -l sqlserver
-rwxrwxrwx    1 qmails   nofiles       592 Aug 14 11:54 sqlserver
[root@mail control]# cat sqlserver
query_timeout 5
connection_timeout 5
check_host yes
connectionstring user=qmailsql password=qmailsql dbname=qmailsql
popconnectionstring user=qmailsql password=qmailsql dbname=qmailsql
dbtable passwd
virt_host_field virtual_host
login_field login
uid_field uid
gid_field gid
home_field home
quota_field hardquota
enabled_field enabled
startdate_field startdate
stopdate_field stopdate
passwd_field password
lastlogin_field lastlogin
use_dotqmail_field use_dotqmail
dotqmailtable dotqmails
dotqmail_field dotqmail
extension_field extension
rcpthosts_from_db yes
allowed_recipients_from_db yes


Now database qmailsql are as per below.
mysql> show tables;
+--------------------+
| Tables_in_qmailsql |
+--------------------+
| dotqmails          |
| locals             |
| passwd             |
+--------------------+
3 rows in set (0.00 sec)

mysql> select * from passwd;
+-------+------+------+--------------------+-------------------+----------+-----
------+----------
-----------+----------+---------+--------------+-----------+
| login | uid  | gid  | home               | virtual_host      | password | 
hardquota | startdate
           | stopdate | enabled | use_dotqmail | lastlogin |
+-------+------+------+--------------------+-------------------+----------+-----
------+----------
-----------+----------+---------+--------------+-----------+
| alias | 1000 | 1000 | /home/gnfc.com     | gnfc.com          | NULL     
|         0 | 0000-00-0
0 00:00:00 | NULL     |       1 |            0 | NULL      |
| alias | 1000 | 1000 | /var/qmail/sqlhome | gnfcinfotower.com | NULL     
|         0 | 0000-00-0
0 00:00:00 | NULL     |       1 |            0 | NULL      |
| test  | 1000 | 1000 | /var/qmail/sqlhome | gnfcinfotower.com | NULL     
|         0 | 0000-00-0
0 00:00:00 | NULL     |       1 |            0 | NULL      |
+-------+------+------+--------------------+-------------------+----------+-----
------+----------
-----------+----------+---------+--------------+-----------+
3 rows in set (0.00 sec)

and my test results are as per below.

[root@mail qmail-1.03]# ./qmail-getpw test gnfcinfotower.com
test10001000/var/qmail/sqlhome0[root@mail qmail-1.03]#

So i think test is working..

But when i sendthe mail to test@xxxxxxxxxxxxxxxxx which i had created in 
qmailsql database in passwd table.....the qmail log show me below error..

@4000000042feeacd0e9fd3ec starting delivery 32: msg 114649 to local 
test@xxxxxxxxxxxxxxxxx
@4000000042feeacd0e9feb5c status: local 1/10 remote 0/20
@4000000042feeacd0f01fcd4 delivery 32: deferral: Unable_to_chdir_to_maildir._
(#4.2.1)/
@4000000042feeacd0f021c14 status: local 0/10 remote 0/20


Kindly give me the solution...

Thanks in advance

-suhag.

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/