Submitted by Bruno Taranto Alvim (not registered) on Wed, 2008-10-01 00:30.
Change 2 files (mysql-virtual_mailboxes.cf and authmysqlrc) to Maildir work.
mail:/etc/postfix# more mysql-virtual_mailboxes.cf
user = postfix password = postfix dbname = postfix query = SELECT CONCAT(SUBSTRING_INDEX(email,'@',-1),'/','',SUBSTRING_INDEX(email,'@',1),'/','Maildir/') FROM users WHERE email='%s' hosts = 127.0.0.1
mail:/etc/courier# more authmysqlrc
MYSQL_SERVER localhost MYSQL_USERNAME postfix MYSQL_PASSWORD postfix MYSQL_PORT 0 MYSQL_DATABASE postfix MYSQL_USER_TABLE users MYSQL_CRYPT_PWFIELD password #MYSQL_CLEAR_PWFIELD password MYSQL_UID_FIELD 5000 MYSQL_GID_FIELD 5000 MYSQL_LOGIN_FIELD email MYSQL_HOME_FIELD "/home/vmail" MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/','',SUBSTRING_INDEX(email,'@',1),'/','Maildir/') #MYSQL_NAME_FIELD MYSQL_QUOTA_FIELD quota
Now you can receive and get!
Please do not use the comment function to ask for help! If you need help, please use our forum. Comments will be published after administrator approval.
Recent comments
6 hours 1 min ago
9 hours 44 min ago
9 hours 55 min ago
10 hours 1 min ago
11 hours 46 min ago
15 hours 44 min ago
1 day 3 hours ago
2 days 12 hours ago
2 days 16 hours ago
2 days 17 hours ago