Jump to content

Courier IMAP Mailbox problems [solved]


rauhka
 Share

Recommended Posts

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 by rauhka
Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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@domain

chown -R postfix:postfix /usr/local/virtual/user@domain

 

And away we go... :beer:

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...