[opensuse] Can't read IMAP mail
After all that "fun" caused by the repositories, I rebuilt my main system, including the dovecot server. While I can connect to that server, I can't see any new mail. I only get stuff that was received a couple of years ago. Is there something in the dovecot config that affects this? I protected the /home and /var/spool/mail directories, as per usual, so the messages are all there. I just can't read them. tnx jk -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
After all that "fun" caused by the repositories, I rebuilt my main system, including the dovecot server. While I can connect to that server, I can't see any new mail. I only get stuff that was received a couple of years ago. Is there something in the dovecot config that affects this? I protected the /home and /var/spool/mail directories, as per usual, so the messages are all there. I just can't read them.
Do you only the see the headers or nothing at all? Have you tried re-indexing? -- Per Jessen, Zürich (17.6°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/13/2014 02:09 PM, Per Jessen wrote:
James Knott wrote:
After all that "fun" caused by the repositories, I rebuilt my main system, including the dovecot server. While I can connect to that server, I can't see any new mail. I only get stuff that was received a couple of years ago. Is there something in the dovecot config that affects this? I protected the /home and /var/spool/mail directories, as per usual, so the messages are all there. I just can't read them. Do you only the see the headers or nothing at all? Have you tried re-indexing?
I see nothing at all. I wondered about re-indexing, but not sure how to go about it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
On 08/13/2014 02:09 PM, Per Jessen wrote:
James Knott wrote:
After all that "fun" caused by the repositories, I rebuilt my main system, including the dovecot server. While I can connect to that server, I can't see any new mail. I only get stuff that was received a couple of years ago. Is there something in the dovecot config that affects this? I protected the /home and /var/spool/mail directories, as per usual, so the messages are all there. I just can't read them. Do you only the see the headers or nothing at all? Have you tried re-indexing?
I see nothing at all. I wondered about re-indexing, but not sure how to go about it.
If you're using Thunderbird, you right-click a folder, then Properties, then "re-build index". -- Per Jessen, Zürich (16.6°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/13/2014 02:49 PM, Per Jessen wrote:
to go about it. If you're using Thunderbird, you right-click a folder, then Properties,
I see nothing at all. I wondered about re-indexing, but not sure how then "re-build index".
There is no re-build index, just repair folder, which doesn't seem to anything. Also, I doubt the problem is with a client, as the same appears with any computer or email app. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
On 08/13/2014 02:49 PM, Per Jessen wrote:
I see nothing at all. I wondered about re-indexing, but not sure how
to go about it. If you're using Thunderbird, you right-click a folder, then Properties, then "re-build index".
There is no re-build index, just repair folder, which doesn't seem to anything.
I guess it depends on the TB version, I have a "Rebuild index" button.
Also, I doubt the problem is with a client, as the same appears with any computer or email app.
I guess the questions to ask is - are your mails actually here on the filesystem? I'm only familiar with the maildir++ format, if you're using something else, there's surely a way checking those too. -- Per Jessen, Zürich (16.2°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/13/2014 03:39 PM, Per Jessen wrote:
James Knott wrote:
On 08/13/2014 02:49 PM, Per Jessen wrote:
I see nothing at all. I wondered about re-indexing, but not sure how
to go about it. If you're using Thunderbird, you right-click a folder, then Properties, then "re-build index". There is no re-build index, just repair folder, which doesn't seem to anything. I guess it depends on the TB version, I have a "Rebuild index" button.
Also, I doubt the problem is with a client, as the same appears with any computer or email app. I guess the questions to ask is - are your mails actually here on the filesystem? I'm only familiar with the maildir++ format, if you're using something else, there's surely a way checking those too.
Yes they are under the users mail directory. I could see the individual messages by viewing with vi. However, I got things going again by copying the files for /var/spool/mail from my backup again. That seems to have fixed it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/13/2014 04:01 PM, James Knott wrote:
On 08/13/2014 03:39 PM, Per Jessen wrote:
James Knott wrote:
On 08/13/2014 02:49 PM, Per Jessen wrote:
I see nothing at all. I wondered about re-indexing, but not sure how
to go about it. If you're using Thunderbird, you right-click a folder, then Properties, then "re-build index". There is no re-build index, just repair folder, which doesn't seem to anything. I guess it depends on the TB version, I have a "Rebuild index" button.
Also, I doubt the problem is with a client, as the same appears with any computer or email app. I guess the questions to ask is - are your mails actually here on the filesystem? I'm only familiar with the maildir++ format, if you're using something else, there's surely a way checking those too.
Yes they are under the users mail directory. I could see the individual messages by viewing with vi. However, I got things going again by copying the files for /var/spool/mail from my backup again. That seems to have fixed it. Hmmm... I have my inbox back, but not the other folders.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
On 08/13/2014 04:01 PM, James Knott wrote:
On 08/13/2014 03:39 PM, Per Jessen wrote:
James Knott wrote:
On 08/13/2014 02:49 PM, Per Jessen wrote:
I see nothing at all. I wondered about re-indexing, but not sure how > to go about it. If you're using Thunderbird, you right-click a folder, then Properties, then "re-build index". There is no re-build index, just repair folder, which doesn't seem to anything. I guess it depends on the TB version, I have a "Rebuild index" button.
Also, I doubt the problem is with a client, as the same appears with any computer or email app. I guess the questions to ask is - are your mails actually here on the filesystem? I'm only familiar with the maildir++ format, if you're using something else, there's surely a way checking those too.
Yes they are under the users mail directory. I could see the individual messages by viewing with vi. However, I got things going again by copying the files for /var/spool/mail from my backup again. That seems to have fixed it. Hmmm... I have my inbox back, but not the other folders.
Like Sent, Trash and Drafts ? If not, try looking at your subscriptions. -- Per Jessen, Zürich (14.8°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/14/2014 02:44 AM, Per Jessen wrote:
Like Sent, Trash and Drafts ? If not, try looking at your subscriptions.
I have. There are messages in those folders, but from 2011, nothing recent. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-08-13 a las 16:19 -0400, James Knott escribió:
Yes they are under the users mail directory. I could see the individual messages by viewing with vi. However, I got things going again by copying the files for /var/spool/mail from my backup again. That seems to have fixed it. Hmmm... I have my inbox back, but not the other folders.
Did you regenerate dovecot indexes? You do that by stopping dovecot, recursively deleting all .imap folders, then restarting dovecot. #!/bin/bash cd ~/Mail echo "Parando dovecot" sudo /usr/bin/systemctl stop dovecot.service echo "Hay que borrar primero todos los .imap o hay problemas." find ~/Mail -name '.imap' -type d -exec rm -r -d '{}' \; echo "Y... Arrancando dovecot" sudo /usr/bin/systemctl start dovecot.service Of course, if your mail is in another folder, or for several users, you have to adapt that. It is also possible that your dovecot config after the migration points to the INBOX, but not to the folders: /etc/dovecot/local.conf: mail_location = mbox:~/Mail:INBOX=/var/mail/%u That's mine. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlPscScACgkQja8UbcUWM1xP4gEAmP3hivDBKW4CqOtyz8GT+Q8X FG3pI+jQF8ppbtY3WcIA/2YFohMQk8FCUoc1JEAxqihlh72G8n29SvWXPeU4YORW =EBqV -----END PGP SIGNATURE-----
On 08/14/2014 04:19 AM, Carlos E. R. wrote:
El 2014-08-13 a las 16:19 -0400, James Knott escribió:
Yes they are under the users mail directory. I could see the individual messages by viewing with vi. However, I got things going again by copying the files for /var/spool/mail from my backup again. That seems to have fixed it. Hmmm... I have my inbox back, but not the other folders.
Did you regenerate dovecot indexes?
You do that by stopping dovecot, recursively deleting all .imap folders, then restarting dovecot.
#!/bin/bash cd ~/Mail echo "Parando dovecot" sudo /usr/bin/systemctl stop dovecot.service echo "Hay que borrar primero todos los .imap o hay problemas." find ~/Mail -name '.imap' -type d -exec rm -r -d '{}' \; echo "Y... Arrancando dovecot" sudo /usr/bin/systemctl start dovecot.service
Of course, if your mail is in another folder, or for several users, you have to adapt that.
I ran the command "find ./ -name '.imap' -type d -exec rm -r -d '{}' \;" from the users directory, which cleared out all the .imap directories.
It is also possible that your dovecot config after the migration points to the INBOX, but not to the folders:
/etc/dovecot/local.conf: mail_location = mbox:~/Mail:INBOX=/var/mail/%u
That's mine.
Mine's the same except its "mail:INBOX=", which is where the mail is. After restarting dovecot, the problem remains and there are no .imap directories. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-08-14 a las 10:50 -0400, James Knott escribió:
On 08/14/2014 04:19 AM, Carlos E. R. wrote:
Of course, if your mail is in another folder, or for several users, you have to adapt that.
I ran the command "find ./ -name '.imap' -type d -exec rm -r -d '{}' \;" from the users directory, which cleared out all the .imap directories.
Ok...
It is also possible that your dovecot config after the migration points to the INBOX, but not to the folders:
/etc/dovecot/local.conf: mail_location = mbox:~/Mail:INBOX=/var/mail/%u
That's mine.
Mine's the same except its "mail:INBOX=", which is where the mail is.
My line above has two entries. One is the system INBOX, which is /var/mail/username (spool is a symlink to it, or the other way round). The other entry, the "mbox:..." part is the directory where the large mail storage is, hundreds of folders. I think you need that part pointing to the correct place.
After restarting dovecot, the problem remains and there are no .imap directories.
Well, indexes are regenerated when you try to access each folder from the client. It is not done in advance. So if they are not re-generated yet, it means they were not accessed... which points to what I said in the previous paragraph. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlPs0ksACgkQja8UbcUWM1zOHQD/bFAa/ClMdlG3DQiyzHGAQgRj jYDOYrrBYfYCKusAptMA/2X/5F2xCODOE8RLK6MfAOEc/QV2PAkFZLrGBwmHwvJO =8TQN -----END PGP SIGNATURE-----
On 08/14/2014 11:14 AM, Carlos E. R. wrote:
El 2014-08-14 a las 10:50 -0400, James Knott escribió:
On 08/14/2014 04:19 AM, Carlos E. R. wrote:
Of course, if your mail is in another folder, or for several users, you have to adapt that.
I ran the command "find ./ -name '.imap' -type d -exec rm -r -d '{}' \;" from the users directory, which cleared out all the .imap directories.
Ok...
It is also possible that your dovecot config after the migration points to the INBOX, but not to the folders:
/etc/dovecot/local.conf: mail_location = mbox:~/Mail:INBOX=/var/mail/%u
That's mine.
Mine's the same except its "mail:INBOX=", which is where the mail is.
My line above has two entries. One is the system INBOX, which is /var/mail/username (spool is a symlink to it, or the other way round). The other entry, the "mbox:..." part is the directory where the large mail storage is, hundreds of folders.
Here is the full line: mail_location = mbox:~/mail:INBOX=/var/mail/%u:LAYOUT=fs
I think you need that part pointing to the correct place.
After restarting dovecot, the problem remains and there are no .imap directories.
Well, indexes are regenerated when you try to access each folder from the client. It is not done in advance. So if they are not re-generated yet, it means they were not accessed... which points to what I said in the previous paragraph.
I see that, but I still can't get current mail in the folders.
-- Cheers Carlos E. R.
(from 13.1 x86_64 "Bottle" (Minas Tirith))
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/14/2014 12:23 PM, James Knott wrote:
Here is the full line: mail_location = mbox:~/mail:INBOX=/var/mail/%u:LAYOUT=fs
I think I found the problem. I changed that line to: mail_location = mbox:~/mail This was based on the info found here: http://wiki2.dovecot.org/MailLocation/mbox?action=show&redirect=MailLocation%2FMbox Now, other than a bit of tidying up, the problem appears to be resolved. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2014 01:03 PM, James Knott wrote:
This was based on the info found here: http://wiki2.dovecot.org/MailLocation/mbox?action=show&redirect=MailLocation%2FMbox
If you are using V2 as that entry implies then things are very different! V2 deals in 'namespaces' and I found that by using one namespace for each 'repository' rather than concatenating them as with V1 things became more manageable. By using
mail_location = mbox:~/mail you seem to have taken the first step.
My 10-mail.conf has FOUR distinct namespace One for my INBOX in ~/Mail One for my local active IMAP one for my local ARCHIVE One for the spool Of course this is a single user workstation so I don't have to worry about "%U" things :-) -- I never give them hell. I just tell the truth and they think it's hell. - H. Truman -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2014 01:57 PM, Anton Aylward wrote:
On 08/15/2014 01:03 PM, James Knott wrote:
This was based on the info found here: http://wiki2.dovecot.org/MailLocation/mbox?action=show&redirect=MailLocation%2FMbox If you are using V2 as that entry implies then things are very different!
V2 deals in 'namespaces' and I found that by using one namespace for each 'repository' rather than concatenating them as with V1 things became more manageable.
By using
mail_location = mbox:~/mail you seem to have taken the first step.
My 10-mail.conf has FOUR distinct namespace
One for my INBOX in ~/Mail One for my local active IMAP one for my local ARCHIVE One for the spool
Of course this is a single user workstation so I don't have to worry about "%U" things :-)
I've noticed things sneak in, without warning, and cause problems. I installed 13.1 on this same computer a few months ago and dovecot worked fine. Now it stops. What happened between then & now? This isn't the first time where something broke between installs. BTW, I took the opportunity of this rebuild to create a separate partition for /var/spool/mail, though I suppose I could have just linked to a directory on /home. Like you, this is a single user system, though I have set up a mail server for multiple users in the past. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2014 01:57 PM, Anton Aylward wrote:
On 08/15/2014 01:03 PM, James Knott wrote:
This was based on the info found here: http://wiki2.dovecot.org/MailLocation/mbox?action=show&redirect=MailLocation%2FMbox If you are using V2 as that entry implies then things are very different!
V2 deals in 'namespaces' and I found that by using one namespace for each 'repository' rather than concatenating them as with V1 things became more manageable.
By using
mail_location = mbox:~/mail you seem to have taken the first step.
My 10-mail.conf has FOUR distinct namespace
One for my INBOX in ~/Mail One for my local active IMAP one for my local ARCHIVE One for the spool
Of course this is a single user workstation so I don't have to worry about "%U" things :-)
I've just noticed something else. I am seeing the user's home directory in the email app. If I delete an item in the email app, it gets deleted from the user's directory. I'd better get this resolved fast. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2014 02:37 PM, James Knott wrote:
On 08/15/2014 01:57 PM, Anton Aylward wrote:
On 08/15/2014 01:03 PM, James Knott wrote:
This was based on the info found here: http://wiki2.dovecot.org/MailLocation/mbox?action=show&redirect=MailLocation%2FMbox If you are using V2 as that entry implies then things are very different!
V2 deals in 'namespaces' and I found that by using one namespace for each 'repository' rather than concatenating them as with V1 things became more manageable.
By using
mail_location = mbox:~/mail you seem to have taken the first step.
My 10-mail.conf has FOUR distinct namespace
One for my INBOX in ~/Mail One for my local active IMAP one for my local ARCHIVE One for the spool
Of course this is a single user workstation so I don't have to worry about "%U" things :-)
I've just noticed something else. I am seeing the user's home directory in the email app. If I delete an item in the email app, it gets deleted from the user's directory.
I'd better get this resolved fast.
I have often worked with IMAP and dovecot, protecting the mail through system rebuilds, installs etc. Why is it so fscked up this time? Why is it that dovecot now uses the user home directory instead of ~/mail? Why is this now broken? Thanks to this fsck up, I will now have a lot of work ahead of me to try and restore my mail system without losing anything! I have already wasted several hours this past week on this. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I just noticed something significant. In my email app, I see a lot of junk that shouldn't be there. Those are items within the users home director. The email I'm missing is in a folder "mail" within all that mess. So, for some reason, imap is using the user home directory, instead of the mail directory under that home directory. On 08/14/2014 11:14 AM, Carlos E. R. wrote:
El 2014-08-14 a las 10:50 -0400, James Knott escribió:
On 08/14/2014 04:19 AM, Carlos E. R. wrote:
Of course, if your mail is in another folder, or for several users, you have to adapt that.
I ran the command "find ./ -name '.imap' -type d -exec rm -r -d '{}' \;" from the users directory, which cleared out all the .imap directories.
Ok...
It is also possible that your dovecot config after the migration points to the INBOX, but not to the folders:
/etc/dovecot/local.conf: mail_location = mbox:~/Mail:INBOX=/var/mail/%u
That's mine.
Mine's the same except its "mail:INBOX=", which is where the mail is.
My line above has two entries. One is the system INBOX, which is /var/mail/username (spool is a symlink to it, or the other way round). The other entry, the "mbox:..." part is the directory where the large mail storage is, hundreds of folders.
I think you need that part pointing to the correct place.
After restarting dovecot, the problem remains and there are no .imap directories.
Well, indexes are regenerated when you try to access each folder from the client. It is not done in advance. So if they are not re-generated yet, it means they were not accessed... which points to what I said in the previous paragraph.
-- Cheers Carlos E. R.
(from 13.1 x86_64 "Bottle" (Minas Tirith))
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-08-13 19:19, James Knott wrote:
After all that "fun" caused by the repositories, I rebuilt my main system, including the dovecot server. While I can connect to that server, I can't see any new mail. I only get stuff that was received a couple of years ago. Is there something in the dovecot config that affects this? I protected the /home and /var/spool/mail directories, as per usual, so the messages are all there. I just can't read them.
Apparmour? Try "aa-logprof". -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 08/13/2014 05:02 PM, Carlos E. R. wrote:
On 2014-08-13 19:19, James Knott wrote:
After all that "fun" caused by the repositories, I rebuilt my main system, including the dovecot server. While I can connect to that server, I can't see any new mail. I only get stuff that was received a couple of years ago. Is there something in the dovecot config that affects this? I protected the /home and /var/spool/mail directories, as per usual, so the messages are all there. I just can't read them. Apparmour?
Try "aa-logprof".
I already have all the dovecot stuff in apparmour set to complain. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Anton Aylward
-
Carlos E. R.
-
James Knott
-
Per Jessen