Hi Courier experts,

Just i installed Postfix+Mysql. Postfix is configured for mutiple 
virtual domains. For the mom is tested only for one domain, and works 
fine. 
The problem is with courier imap. I compiled from source, and i 
configured to use ONLY mysql for authenticate users.
To short this message, i used for configuration this HOWTO:
http://kirb.insanegenius.net/postfix.html

See below a tenet session on port 110

[alex@rudolf alex]$ telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user mimi.3323
+OK Password required.
pass xxx
-ERR Maildir: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Connection closed by foreign host.
[alex@rudolf alex]$ 

Now, some details about postfix and mysql:

in main.cf i have:
virtual_mailbox_base = /home/mailusers
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virt.cf

# mysql_virt.cf
user = postfix
password = postfix
dbname = maildb
table = users
select_field = maildir
where_field = address
hosts = localhost

Everithing is fine till here. I tested if postfix is works and is ok, 
each maidir is created fine in /home/mailusers/test.ro directory.

i started pop3daemon: /usr/lib/courier-imap/libexec/pop3d.rc start

Acording to courier-mysql docs, i added user [EMAIL PROTECTED] in table users 
in this way:
INSERT INTO users (id, address, clear, name, uid, gid, maildir) VALUES 
('mimi.3323', '[EMAIL PROTECTED]', 'xxx', 'Mita Fainita', 12345, 12345, 
'test.ro/mimi/Maildir/');

after that:
UPDATE users SET crypt=encrypt('xxx') WHERE id='mimi.3323'
flush privileges;

Here 12345 is UID and GID which run posftix daemon!
Mysql is configured to listen on local socket (/tmp/mysql.sock)
See below the users table:

mysql> select id, address, crypt, clear, name, uid, gid, home, maildir 
from users;
+-----------+--------------+---------------+-------+--------------+-------+-------+------+-----------------------+

| id        | address      | crypt         | clear | name         | uid   
| gid   | home | maildir               |

+-----------+--------------+---------------+-------+--------------+-------+-------+------+-----------------------+

| mimi.3323 | [EMAIL PROTECTED] | Me9OFx2HXn0lI | xxx   | Mita Fainita | 

12345 | 12345 | /    | test.ro/mimi/Maildir/ |
+-----------+--------------+---------------+-------+--------------+-------+-------+------+-----------------------+

I can`t understand where try courier-imap to find a maibox directory for 
this user! I tryed to update maidir field in this table with 
/home/mailusers/test.ro/mimi/Maildir/ and the same response!

Any help wil be wellcome,

Thanks in advance,

Alex








-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to