I'm a total newbie regarding imap servers. I'm trying to set up a Offlineimap/dovecot/Gnus system and Gnus complains that it cannot access the maildir... Here is my setup, put together by copying stuff from around the web without any prior knowledge of these tools...
Offlineimap is setup to use the $HOME/Maildir-free/, using
--8<---------------cut here---------------start------------->8--- preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free --8<---------------cut here---------------end--------------->8---
in the local maildir part of ~/.offlineimaprc.
The Maildir-free maildir has been correctly (I think) populated with a single "General" folder.
/home/wilk/Maildir-free: total used in directory 52 available 5502852 drwxrwxr-x 6 wilk wilk 4096 oct. 23 11:10 . drwx------ 240 wilk wilk 20480 oct. 23 15:06 .. drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 cur -rw-rw-r-- 1 wilk wilk 348 oct. 23 11:10 dovecot.index.log -rw-rw-r-- 1 wilk wilk 51 oct. 23 11:10 dovecot-uidlist -rw-rw-r-- 1 wilk wilk 8 oct. 23 11:09 dovecot-uidvalidity -r--r--r-- 1 wilk wilk 0 oct. 23 11:09 dovecot-uidvalidity.5629f967 drwx------ 6 wilk wilk 4096 oct. 23 11:16 General -rw-rw-r-- 1 wilk wilk 0 oct. 23 11:09 maildirfolder drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 new drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 tmp
dovecot is not setup to start as a server (no script in /etc/rc*.d/) and I didn't configure anything in any /etc/dovecot/ file (maybe I should have ?)
Gnus is supposed to access the maildir as an IMAP server through dovecot: I have:
(nnimap "FreeOffline" (nnimap-stream shell) (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free")
in gnus-secondary-select-methods
I try to access this maildir as follows
/usr/lib/dovecot/imap -o mail_location=maildir:/home/wilk/Maildir-free/
- PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in as wilk
- LIST "" *
- LIST (\HasNoChildren) "." INBOX
- OK List completed.
As you can see, the "General" folder doesn't appear, and there is a mention of "INBOX" even though there is no folder under this name (but I guess that's a default for any IMAP system). Accordingly, Gnus only displays a INBOX folder when browsing the FreeOffline IMAP server, and complains that it contains no message.
What's the correct way to setup dovecot? Thanks for your help.
Julien.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, 25 Oct 2015, Julien Cubizolles wrote:
Date: Sun, 25 Oct 2015 14:50:19 +0100 From: Julien Cubizolles j.cubizolles@free.fr To: dovecot@dovecot.org Subject: Can't access maildir with dovecot
I'm a total newbie regarding imap servers. I'm trying to set up a Offlineimap/dovecot/Gnus system and Gnus complains that it cannot access the maildir... Here is my setup, put together by copying stuff from around the web without any prior knowledge of these tools...
- Offlineimap is setup to use the $HOME/Maildir-free/, using
--8<---------------cut here---------------start------------->8--- preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free --8<---------------cut here---------------end--------------->8---
in the local maildir part of ~/.offlineimaprc.
- The Maildir-free maildir has been correctly (I think) populated with a single "General" folder.
/home/wilk/Maildir-free: total used in directory 52 available 5502852 drwxrwxr-x 6 wilk wilk 4096 oct. 23 11:10 . drwx------ 240 wilk wilk 20480 oct. 23 15:06 .. drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 cur -rw-rw-r-- 1 wilk wilk 348 oct. 23 11:10 dovecot.index.log -rw-rw-r-- 1 wilk wilk 51 oct. 23 11:10 dovecot-uidlist -rw-rw-r-- 1 wilk wilk 8 oct. 23 11:09 dovecot-uidvalidity -r--r--r-- 1 wilk wilk 0 oct. 23 11:09 dovecot-uidvalidity.5629f967 drwx------ 6 wilk wilk 4096 oct. 23 11:16 General
Maildir++ prefixes all Mailboxes with ".", hence it should read: .General
-rw-rw-r-- 1 wilk wilk 0 oct. 23 11:09 maildirfolder drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 new drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 tmp
dovecot is not setup to start as a server (no script in /etc/rc*.d/) and I didn't configure anything in any /etc/dovecot/ file (maybe I should have ?)
Gnus is supposed to access the maildir as an IMAP server through dovecot: I have:
(nnimap "FreeOffline" (nnimap-stream shell) (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free")
in gnus-secondary-select-methods
- I try to access this maildir as follows
/usr/lib/dovecot/imap -o mail_location=maildir:/home/wilk/Maildir-free/
- PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in as wilk
- LIST "" *
- LIST (\HasNoChildren) "." INBOX
- OK List completed.
As you can see, the "General" folder doesn't appear, and there is a mention of "INBOX" even though there is no folder under this name (but I guess that's a default for any IMAP system). Accordingly, Gnus only displays a INBOX folder when browsing the FreeOffline IMAP server, and complains that it contains no message.
What's the correct way to setup dovecot? Thanks for your help.
Julien.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVi3zFXz1H7kL/d9rAQJDlgf8D5fXwSY/YgFcFTW7ObWnle4l3LyssjYw M7tDim/Jq0XxphvGjF3QYJki9IibWVgeh6z82tOgOngS3pSWz1HtxnO3d8ghn7Ri KrIBCo5WB9qFqcjjpPzA2POCm9QZyH7/AVtqAPFajM3uInotz00UTZrrp4PtsgDc 6Qb8gaXhuqKACAUMJ8kM/UH7gzwMw+rbJpq3ZW0PLYKBInwtWmN58UURXM1uhyUx S5lzRa3pdLwJhBIX+nx9aeSSqOOZXMqYOOCrCwjrcDtpSBkp9ktKhOFdS9Qlh3xO tJZfrosxUVc7sdYsoThWquAfL+EqezA5bCt0o25UEWL1mVdWpQ1oJw== =AXDG -----END PGP SIGNATURE-----
Steffen Kaiser skdovecot@smail.inf.fh-brs.de writes:
On Sun, 25 Oct 2015, Julien Cubizolles wrote:
Date: Sun, 25 Oct 2015 14:50:19 +0100 From: Julien Cubizolles j.cubizolles@free.fr To: dovecot@dovecot.org Subject: Can't access maildir with dovecot
I'm a total newbie regarding imap servers. I'm trying to set up a Offlineimap/dovecot/Gnus system and Gnus complains that it cannot access the maildir... Here is my setup, put together by copying stuff from around the web without any prior knowledge of these tools...
- Offlineimap is setup to use the $HOME/Maildir-free/, using
--8<---------------cut here---------------start------------->8--- preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free --8<---------------cut here---------------end--------------->8---
in the local maildir part of ~/.offlineimaprc.
- The Maildir-free maildir has been correctly (I think) populated with a single "General" folder.
/home/wilk/Maildir-free: total used in directory 52 available 5502852 drwxrwxr-x 6 wilk wilk 4096 oct. 23 11:10 . drwx------ 240 wilk wilk 20480 oct. 23 15:06 .. drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 cur -rw-rw-r-- 1 wilk wilk 348 oct. 23 11:10 dovecot.index.log -rw-rw-r-- 1 wilk wilk 51 oct. 23 11:10 dovecot-uidlist -rw-rw-r-- 1 wilk wilk 8 oct. 23 11:09 dovecot-uidvalidity -r--r--r-- 1 wilk wilk 0 oct. 23 11:09 dovecot-uidvalidity.5629f967 drwx------ 6 wilk wilk 4096 oct. 23 11:16 General
Maildir++ prefixes all Mailboxes with ".", hence it should read: .General
It should be OfflineIMAP's job to name it that way, right ? I tried adding "sep = ." to the Remote Repository but it seems it only affects the subfolders, not the first-level one.
Also I naively renamed the General folder to .General, and dovecot still can't access it.
Thanks for your help.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 26 Oct 2015, Julien Cubizolles wrote:
Steffen Kaiser skdovecot@smail.inf.fh-brs.de writes:
On Sun, 25 Oct 2015, Julien Cubizolles wrote:
Date: Sun, 25 Oct 2015 14:50:19 +0100 From: Julien Cubizolles j.cubizolles@free.fr To: dovecot@dovecot.org Subject: Can't access maildir with dovecot
I'm a total newbie regarding imap servers. I'm trying to set up a Offlineimap/dovecot/Gnus system and Gnus complains that it cannot access the maildir... Here is my setup, put together by copying stuff from around the web without any prior knowledge of these tools...
- Offlineimap is setup to use the $HOME/Maildir-free/, using
--8<---------------cut here---------------start------------->8--- preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free --8<---------------cut here---------------end--------------->8---
in the local maildir part of ~/.offlineimaprc.
- The Maildir-free maildir has been correctly (I think) populated with a single "General" folder.
/home/wilk/Maildir-free: total used in directory 52 available 5502852 drwxrwxr-x 6 wilk wilk 4096 oct. 23 11:10 . drwx------ 240 wilk wilk 20480 oct. 23 15:06 .. drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 cur -rw-rw-r-- 1 wilk wilk 348 oct. 23 11:10 dovecot.index.log -rw-rw-r-- 1 wilk wilk 51 oct. 23 11:10 dovecot-uidlist -rw-rw-r-- 1 wilk wilk 8 oct. 23 11:09 dovecot-uidvalidity -r--r--r-- 1 wilk wilk 0 oct. 23 11:09 dovecot-uidvalidity.5629f967 drwx------ 6 wilk wilk 4096 oct. 23 11:16 General
Maildir++ prefixes all Mailboxes with ".", hence it should read: .General
It should be OfflineIMAP's job to name it that way, right ? I tried adding "sep = ." to the Remote Repository but it seems it only affects the subfolders, not the first-level one.
Also I naively renamed the General folder to .General, and dovecot still can't access it.
Add: -o mail_debug=yes
run this command as the user "wilk"
/usr/lib/dovecot/imap -o mail_location=maildir:/home/wilk/Maildir-free/
-o mail_debug=yes
and check out the debug output.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVi8l7nz1H7kL/d9rAQLrjQgAvXe4EnsuH+qEISCdNS/Up741jQZuzcpu +v+8b+YcR5zlyCqOCbnVg9ckbmDQ2xse4BpMJFTq57nh/kNw6jujppqQQyC56Rw8 2TNaJu/+x0NRc4oCHNbOw4D4o+OZD6Cki5LYeYVZewJRFnGsaZAvKuaUsVNA4oir SyDkYaVVsR6jlXeVq22zvadve+JRiwN7h4PWI5nfa2agbiVGC2cJndK4MzyOg5re 4o4aVzKU44RTJ6Xx5vMdH5Gi/86DR9aNVAZ7SkfWPPcwFjJ2lU43inJTLJL0BmDS Hr3AJZtoV7D7sKfu8NU8JOsy9TsOZNIeRGcpHxVb8ut5HV775Uk0Ow== =TC5l -----END PGP SIGNATURE-----
Steffen Kaiser skdovecot@smail.inf.fh-brs.de writes:
Add: -o mail_debug=yes
run this command as the user "wilk"
/usr/lib/dovecot/imap -o mail_location=maildir:/home/wilk/Maildir-free/
-o mail_debug=yesand check out the debug output.
Here is what I got:
Debug: Effective uid=1000, gid=1000, home=/home/wilk Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/wilk/Maildir-free Debug: maildir++: root=/home/wilk/Maildir-free, index=, indexpvt=, control=, inbox=/home/wilk/Maildir-free, alt=
But I also tried something different:
I put a --8<---------------cut here---------------start------------->8--- preauthtunnel = /usr/lib/dovecot/imap -c ~/.dovecotrc --8<---------------cut here---------------end--------------->8--- line in .offlineimaprc
and ~/.dovecotrc --8<---------------cut here---------------start------------->8--- protocols = imap mail_location = maildir:~/Maildir-free auth default { } --8<---------------cut here---------------end--------------->8---
And now it's working, also there are no differences in the debug logs
--8<---------------cut here---------------start------------->8--- Debug: Effective uid=1000, gid=1000, home=/home/wilk Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/wilk/Maildir-free Debug: maildir++: root=/home/wilk/Maildir-free, index=, indexpvt=, control=, inbox=/home/wilk/Maildir-free, alt= --8<---------------cut here---------------end--------------->8---
Thanks for your help.
Julien.
participants (2)
-
Julien Cubizolles
-
Steffen Kaiser