Re: Reloading dovecot after certificate renewal?
On 17 Jan 2019, at 06:17, @lbutlr wrote: > Is it enough to issue a `service restart dovecot` when a certificate renews > or do I need to service stop/start? Replies were all off-list, but I am now using `doveadm reload` instead of BSD’s service command. -- I would rather be a mute poet, a blind artist or a deaf musician than a heartless man. -Graffiti, bathroom wall @ The Napoleon House New Orleans 1967 (via @johnlarroquette)
RE: Authentication lost within session
Reboot fixed it, and am unable to reproduce it, strange. Hmmm, strange my limits.conf is still default empty. I also reverted back to the orginal dovecot pam.d file, and still the same. Is dovecot indeed then giving this password mismatch on max logins? I have been testing quite a lot lately without noticing this. The only thing I can remember changing recently was enabling shmkey of slapd and tuning settings in nscd. > On 17 Jan 2019, at 14.19, Marc Roos wrote: > > > Same ip, connection, session happens after a few seconds, all on local > test network. Sorry I mistakenly overlooked at the ip:s. But anyway that is multiple connections and seems that PAM has some concurrency limit and refuses the third connection Thunderbird opens. so you probably have pam_limits with maxlogins=2 enabled. Sami
RE: Authentication lost within session
Hmmm, strange my limits.conf is still default empty. I also reverted back to the orginal dovecot pam.d file, and still the same. Is dovecot indeed then giving this password mismatch on max logins? I have been testing quite a lot lately without noticing this. The only thing I can remember changing recently was enabling shmkey of slapd and tuning settings in nscd. -Original Message- From: Sami Ketola [mailto:sami.ket...@dovecot.fi] Sent: 17 January 2019 13:26 To: Marc Roos Cc: dovecot Subject: Re: Authentication lost within session > On 17 Jan 2019, at 14.19, Marc Roos wrote: > > > Same ip, connection, session happens after a few seconds, all on local > test network. Sorry I mistakenly overlooked at the ip:s. But anyway that is multiple connections and seems that PAM has some concurrency limit and refuses the third connection Thunderbird opens. so you probably have pam_limits with maxlogins=2 enabled. Sami
Re: Need help deduplicating messages fetched with getmail into dovecot mailbox
Hello again, I was able to workaround the getmail issue producing dublettes using Sieve-Filter to find and discard dublettes. I was using this Rule-Set (I found somewhere else in Internet). I only have sometimes dublettes now, but not as worse as before (every mail twice!). > # Track duplicate Mail-Deliveries > require ["duplicate", "imap4flags"]; > if duplicate :header "message-id" { > discard; > stop; > } > > keep; Best regards Gabriel Kaufmann
Reloading dovecot after certificate renewal?
Is it enough to issue a `service restart dovecot` when a certificate renews or do I need to service stop/start? -- "A thousand years ago we thought the world was a bowl. Five hundred years ago we knew it was a globe. Today we know it is flat and round carried through space on the back of a turtle. Don't you wonder what shape it will turn out to be tomorrow?" [Lord Vetinari]
Re: Accidentally deleted .imap folder, how can I reindex?
Should I use full folder path, or relative to the user's home? I have tried both: doveadm force-resync -u gandalf /home/gandalf/Maildir/.Sent doveadm force-resync -u gandalf Sent There was no error message, but /home/gandalf/Maildir/.Sent/.imap was not created, and thunderbird still did not show the new messages. Also, when I try to open an old message from the Sent folder, thunderbird displays nothing (even not an error message) and the dovecot server logs something like this (fqdn and ip addresses replaced): Jan 17 07:44:33 imap-login: Info: Login: user=, method=PLAIN, rip=1.1.1.1, lip=1.1.1.1 mpid=91975, TLS, session= Jan 17 07:44:33 imap(gandalf)<91975>: Error: Mailbox Sent: UID=12685: read(/home/gandalf/Maildir/.Sent/cur/ 1547303831.M917864P1881.fqdn.com,S=9617,W=9782:2,) failed: Cached message size larger than expected (9617 > 17, box=Sent, UID=12685) (read reason=mail stream) Jan 17 07:44:33 imap(gandalf)<91975>: Error: Corrupted record in index cache file /home/gandalf/Maildir/.Sent/dovecot.index.cache: UID 12685: Broken physical size in mailbox Sent: read(/home/gandalf/Maildir/.Sent/cur/1547303831.M917864P1881.fqdn.com,S=9617,W=9782:2,) failed: Cached message size larger than expected (9617 > 17, box=Sent, UID=12685) Jan 17 07:44:33 imap(gandalf)<91975>: Error: Mailbox Sent: UID=12685: read(/home/gandalf/Maildir/.Sent/cur/ 1547303831.M917864P1881.fqdn.com,S=9617,W=9782:2,) failed: Cached message size larger than expected (9617 > 17, box=Sent, UID=12685) Jan 17 07:44:33 imap(gandalf)<91975>: Info: FETCH failed: Internal error occurred. Refer to server log for more information. [2019-01-17 07:44:33] in=279 out=507265 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Most interestingly, I can open any other message in many other folders. But the Sent folder is still wrong. Any other idea? Laszlo Sami Ketola ezt írta (időpont: 2019. jan. 17., Cs, 13:09): > Hi, > > doveadm force-resync -u user FOLDER > > Sami > > > On 17 Jan 2019, at 13.32, Les wrote: > > > > > > Hello, > > > > I have several users with Maildir format. After upgrading from 2.2 to > 2.3, some directories could not be opened from thunderbird. The server log > shows all kinds of errors including these: > > > > Corrupted record in index cache file > /home/user01/Maildir/.Elk&APw-ld&APY-tt/dovecot.index.cache: UID 2802: > Broken physical size in mailbox > > Cached message size larger than expected (18 > 17, box=Sent, UID=2802) > > > > While trying to fix the problem, I have accidentally deleted some of the > index/cache directories. In particular, Maildir/.Sent/.imap and > Maildir/.Sent/cur/.imap folders were deleted, but all of the mail message > files are there. When I try to open the "Sent" folder from thunderbird, it > does not show all of the messages. It only shows messages until 2019.01.12. > If I send out an email from thunderbird, then a new message is copied into > the Maildir/.Sent/ folder, but it is not visible from thunderbird. I have > already tried to unsubscribe + subscribe to the Sent folder, but it did not > work - it re-downloads all messages until 2019.01.12, but not after that. > > > > Can I somehow regenerate the index files, force dovecot to recreated > .imap foder, and force thunderbird to re-download and show all of the files > somehow? > > > > Thank you, > > > >Laszlo > > > >
Re: Authentication lost within session
> On 17 Jan 2019, at 14.19, Marc Roos wrote: > > > Same ip, connection, session happens after a few seconds, all on local > test network. Sorry I mistakenly overlooked at the ip:s. But anyway that is multiple connections and seems that PAM has some concurrency limit and refuses the third connection Thunderbird opens. so you probably have pam_limits with maxlogins=2 enabled. Sami
Re: Authentication lost within session
> On 17 Jan 2019, at 14.09, Marc Roos wrote: > > When I open the mail client (thunderbird), I can access the mailboxes > and all of a sudden, I am loosing the authenticated session. Any idea's > where to look? > > > > > Jan 17 12:42:04 mail04 dovecot: imap-login: Login: user=, > method=PLAIN, rip=192.168.10.219, lip=192.168.10.44, mpid=13403, TLS, > session= > Jan 17 12:42:14 mail04 dovecot: auth-worker(13400): > pam(usertest,192.168.10.219,): pam_authenticate() > failed: Authentication failure (password mismatch?) So is this another connection or does the ip-address change mid session? Sami
Authentication lost within session
When I open the mail client (thunderbird), I can access the mailboxes and all of a sudden, I am loosing the authenticated session. Any idea's where to look? Jan 17 12:42:04 mail04 dovecot: imap-login: Login: user=, method=PLAIN, rip=192.168.10.219, lip=192.168.10.44, mpid=13403, TLS, session= Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Loading modules from directory: /usr/lib64/dovecot Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Module loaded: /usr/lib64/dovecot/lib15_notify_plugin.so Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Module loaded: /usr/lib64/dovecot/lib20_listescape_plugin.so Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Effective uid=8267, gid=231, home=/home/popusers/usertest Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mbox:~/mail:INBOX=/var/spool/mail/usertest:CONTROL=~/mail/contr ol:INDEX=/var/dovecot/usertest/index:LAYOUT=maildir++ Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: maildir++: root=/home/popusers/usertest/mail, index=/var/dovecot/usertest/index, indexpvt=, control=/home/popusers/usertest/mail/control, inbox=/var/spool/mail/usertest, alt= Jan 17 12:42:04 mail04 dovecot: imap-login: Login: user=, method=PLAIN, rip=192.168.10.219, lip=192.168.10.44, mpid=13404, TLS, session= Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Loading modules from directory: /usr/lib64/dovecot Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Module loaded: /usr/lib64/dovecot/lib15_notify_plugin.so Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Module loaded: /usr/lib64/dovecot/lib20_listescape_plugin.so Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: INBOX: Mailbox opened because: SELECT Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Effective uid=8267, gid=231, home=/home/popusers/usertest Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mbox:~/mail:INBOX=/var/spool/mail/usertest:CONTROL=~/mail/contr ol:INDEX=/var/dovecot/usertest/index:LAYOUT=maildir++ Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: maildir++: root=/home/popusers/usertest/mail, index=/var/dovecot/usertest/index, indexpvt=, control=/home/popusers/usertest/mail/control, inbox=/var/spool/mail/usertest, alt= Jan 17 12:42:04 mail04 dovecot: imap(usertest): Debug: INBOX/test: Mailbox opened because: SELECT Jan 17 12:42:12 mail04 dovecot: imap-login: Login: user=, method=PLAIN, rip=192.168.10.219, lip=192.168.10.44, mpid=13405, TLS, session= Jan 17 12:42:12 mail04 dovecot: imap(usertest): Debug: Loading modules from directory: /usr/lib64/dovecot Jan 17 12:42:12 mail04 dovecot: imap(usertest): Debug: Module loaded: /usr/lib64/dovecot/lib15_notify_plugin.so Jan 17 12:42:12 mail04 dovecot: imap(usertest): Debug: Module loaded: /usr/lib64/dovecot/lib20_listescape_plugin.so Jan 17 12:42:12 mail04 dovecot: imap(usertest): Debug: Effective uid=8267, gid=231, home=/home/popusers/usertest Jan 17 12:42:12 mail04 dovecot: imap(usertest): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mbox:~/mail:INBOX=/var/spool/mail/usertest:CONTROL=~/mail/contr ol:INDEX=/var/dovecot/usertest/index:LAYOUT=maildir++ Jan 17 12:42:12 mail04 dovecot: imap(usertest): Debug: maildir++: root=/home/popusers/usertest/mail, index=/var/dovecot/usertest/index, indexpvt=, control=/home/popusers/usertest/mail/control, inbox=/var/spool/mail/usertest, alt= Jan 17 12:42:12 mail04 dovecot: imap(usertest): Debug: Drafts: Mailbox opened because: SELECT Jan 17 12:42:14 mail04 dovecot: auth-worker(13400): pam(usertest,192.168.10.219,): pam_authenticate() failed: Authentication failure (password mismatch?) Jan 17 12:42:22 mail04 dovecot: auth-worker(13400): pam(usertest,192.168.10.219,): pam_authenticate() failed: Authentication failure (password mismatch?) Jan 17 12:42:25 mail04 dovecot: auth-worker(13400): pam(usertest,192.168.10.219,): pam_authenticate() failed: Authentication failure (password mismatch?)
Re: Accidentally deleted .imap folder, how can I reindex?
Hi, doveadm force-resync -u user FOLDER Sami > On 17 Jan 2019, at 13.32, Les wrote: > > > Hello, > > I have several users with Maildir format. After upgrading from 2.2 to 2.3, > some directories could not be opened from thunderbird. The server log shows > all kinds of errors including these: > > Corrupted record in index cache file > /home/user01/Maildir/.Elk&APw-ld&APY-tt/dovecot.index.cache: UID 2802: Broken > physical size in mailbox > Cached message size larger than expected (18 > 17, box=Sent, UID=2802) > > While trying to fix the problem, I have accidentally deleted some of the > index/cache directories. In particular, Maildir/.Sent/.imap and > Maildir/.Sent/cur/.imap folders were deleted, but all of the mail message > files are there. When I try to open the "Sent" folder from thunderbird, it > does not show all of the messages. It only shows messages until 2019.01.12. > If I send out an email from thunderbird, then a new message is copied into > the Maildir/.Sent/ folder, but it is not visible from thunderbird. I have > already tried to unsubscribe + subscribe to the Sent folder, but it did not > work - it re-downloads all messages until 2019.01.12, but not after that. > > Can I somehow regenerate the index files, force dovecot to recreated .imap > foder, and force thunderbird to re-download and show all of the files somehow? > > Thank you, > >Laszlo >
Accidentally deleted .imap folder, how can I reindex?
Hello, I have several users with Maildir format. After upgrading from 2.2 to 2.3, some directories could not be opened from thunderbird. The server log shows all kinds of errors including these: Corrupted record in index cache file /home/user01/Maildir/.Elk&APw-ld&APY-tt/dovecot.index.cache: UID 2802: Broken physical size in mailbox Cached message size larger than expected (18 > 17, box=Sent, UID=2802) While trying to fix the problem, I have accidentally deleted some of the index/cache directories. In particular, Maildir/.Sent/.imap and Maildir/.Sent/cur/.imap folders were deleted, but all of the mail message files are there. When I try to open the "Sent" folder from thunderbird, it does not show all of the messages. It only shows messages until 2019.01.12. If I send out an email from thunderbird, then a new message is copied into the Maildir/.Sent/ folder, but it is not visible from thunderbird. I have already tried to unsubscribe + subscribe to the Sent folder, but it did not work - it re-downloads all messages until 2019.01.12, but not after that. Can I somehow regenerate the index files, force dovecot to recreated .imap foder, and force thunderbird to re-download and show all of the files somehow? Thank you, Laszlo