rauhka Posted June 10, 2005 Report Share Posted June 10, 2005 (edited) Evening everyone, I'm currently strugglingthrough a postfix/courier-imap/mysql installation. Have a number of issues at the moment, but I'll start with this one. I've got courier-auth installed and the mysql tables setup and tested with authtest. Courier-imap is installed and running. When connecting with Kontact I can connect to the mailbox but when selecting "index" I get the message "Server replied: unable to open this mailbox" As an alternative connecting method I telneted in on 143 and can a login user pass but a examine inbox unable to open mailbox Further info Home directory for users is set to /usr/local/virtual/user@host.tld/ which exists and has permissions set to postfix:postfix. Is that correct? /var/log/mail info,warning,errors report no errors from courier (but a number of postfix errors which I'm trying to work out including postfix/trivial-rewrite[32205]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,100): table lookup problem postfix/trivial-rewrite[32316]: warning: connect to mysql server unix:/usr/lib/mysql/mysql.sock: Can't connect to local MySQL server through socket '/usr/lib/mysql/mysql.sock' (2) MySQL Server is running, postfix is NOT chroot'ed Any help would be greatly appreciated Edited June 10, 2005 by rauhka Quote Link to comment Share on other sites More sharing options...
rauhka Posted June 10, 2005 Author Report Share Posted June 10, 2005 Man - been looking at some of these problems for so long now I was going blind... postfix was looking at /usr/lib/mysql/mysql.sock whereas mine is actaully as /var/lib/mysql/mysql/sock *smack* Gotta set the font size bigger I think - been staring at those 2 lines for so long without even noticing.. :P Oh well - at least postfix is talk to MySQL now - just ca't get Courier-IMAP to see/read the virtual maildirs.. Quote Link to comment Share on other sites More sharing options...
rauhka Posted June 10, 2005 Author Report Share Posted June 10, 2005 Well - finally figured that one out.. Turns out your maildir can't just be "md" you acutally need to runa script to create the, So the script is mailmakedir located at cd /usr/lib/courier-imap/bin/ on my machine. Run ./mailmakedir /usr/local/virtual/user@domainchown -R postfix:postfix /usr/local/virtual/user@domain And away we go... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.