[Dovecot] INBOX help needed, dovecot + squirrelmail
Im trying to figure out how to get dovecot to deliver to my mail_location (example: /opt/imapdata/j/jeff/INBOX/inbox) AND work with squirrelmail. Ive worked on this for hours reading the docs etc with no luck so far.
I get dovecot-lda to deliver to: /opt/imapdata/j/jeff/INBOX/inbox
but when I use squirrelmail, I see the following in the log:
dovecot: imap(jeff): Debug: Effective uid=1006, gid=999, home=/opt/imapdata/j/jeff/INBOX/inbox dovecot: imap(jeff): Error: chdir(/opt/imapdata/j/jeff/INBOX/inbox) failed: Not a directory dovecot: imap(jeff): Debug: Namespace : type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/opt/imapdata/j/jeff:INBOX=/opt/imapdata/j/jeff/INBOX:LAYOUT=fs:DIRNAME=mmDIR:INDEX=~/indexes
It complains that 'inbox' isnt a directory, but I want it to use: /opt/imapdata/j/jeff/INBOX
What parameter do I need to tweak to get this to work? Ive tried the 'folder options' in squirrelmail but that doesnt appear to have any effect here (or at least at this point in my testing).
It seems that the only parameter to tweak is 'mail_location' which Im having no luck getting to work correctly. Also namespace may play a part but every combination Ive tried does not result in getting it work thus far.
On a sidenote when I send more than 1 email, it doesnt seem to honor 'maildir', it seems its doing 'mbox' instead? I get one flat file. Im lost and confused.
my variables:
mail_location = maildir:/opt/imapdata/%1n/%n:INBOX=/opt/imapdata/%1n/%n:LAYOUT=fs:DIRNAME=mmDIR:INDEX=~/indexes
namespace { type = private separator = / prefix = INBOX/ inbox = yes }
Your help is appreciated! Thanks, Jeff
/mf/home/jeep/shell/.signature
Den 2012-06-05 04:33, jeep@rahul.net skrev:
Im trying to figure out how to get dovecot to deliver to my mail_location (example: /opt/imapdata/j/jeff/INBOX/inbox) AND work with squirrelmail. Ive worked on this for hours reading the docs etc with no luck so far.
namespace is set to "" in squirrelmail, but it must be "INBOX."
run conf.pl and fix it :=)
Benny Pedersen me@junc.org wrote:
Den 2012-06-05 04:33, jeep@rahul.net skrev:
Im trying to figure out how to get dovecot to deliver to my mail_location (example: /opt/imapdata/j/jeff/INBOX/inbox) AND work with squirrelmail. Ive worked on this for hours reading the docs etc with no luck so far.
namespace is set to "" in squirrelmail, but it must be "INBOX."
run conf.pl and fix it :=)
Thanks Benny. I didnt see 'namespace' in my configure for squirrelmail 1.4.22, but if you meant Folder Defaults->Default Folder Prefix = INBOX.
I just tried that and I still get:
Error: chdir(/opt/imapdata/j/jeff/INBOX/inbox) failed: Not a directory
Was that the setting you meant or was there another I missed? Thanks
/mf/home/jeep/shell/.signature
jeep@rahul.net (Jeff Lacki) wrote:
Thanks Benny. I didnt see 'namespace' in my configure for squirrelmail 1.4.22, but if you meant Folder Defaults->Default Folder Prefix = INBOX.
I just tried that and I still get:
Error: chdir(/opt/imapdata/j/jeff/INBOX/inbox) failed: Not a directory
Was that the setting you meant or was there another I missed? Thanks
Nevermind, I found the problem after your suggestion. Turns out my DB was returning a home directory of:
/opt/imapdata/j/jeff/INBOX/inbox
from when I was playing with something earlier, that got me past that issue, however I still dont know why its not giving me maildir instead of mbox.
But thank you for helping me fix that issue! Jeff /mf/home/jeep/shell/.signature
Den 2012-06-05 17:03, jeep@rahul.net skrev:
from when I was playing with something earlier, that got me past that issue, however I still dont know why its not giving me maildir instead of mbox.
remove last / in sql query auth path (concated here) dovecot have it well explained in wiki
Den 2012-06-05 15:41, jeep@rahul.net skrev:
Error: chdir(/opt/imapdata/j/jeff/INBOX/inbox) failed: Not a directory
this error is not squirrelmail :=)
# dovecot.conf namespace: type: private inbox: yes list: yes subscriptions: yes
if you use sql auth in dovecot then the maildir must not end in / else it will be a mbox file
mail_location: maildir:/home/vmail/%d/%u/.maildir
~ must be set to mail_location: maildir:/home/vmail/%d/%u/ and the .maildir comes from sql concat if i remember my own setup :=)
squirrelmail will work without INBOX. but namespace in dovecot must math it
participants (2)
-
Benny Pedersen
-
jeep@rahul.net