dovecot/FreeBSD and Android IMAP clients

2018-09-24 Thread Victor Sudakov
Dear Colleagues, I have a fairly vanilla setup of dovecot on FreeBSD, serving IMAP and POP3. Thunderbird/IMAP works fine, and so does mutt/IMAP. However, Android clients (Gmail/IMAP and K-9 Mail) have problems accessing folders other than the INBOX. They either show them empty with no mails (K-9

Re: dovecot/FreeBSD and Android IMAP clients

2018-09-24 Thread Victor Sudakov
gt; between the client & server, maybe it gives you more indication what > goes wrong. I am afraid I don't know the protocol well enough to parse this chatter. I was looking for a more cookbook solution. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Local access to IMAP mailboxes

2018-09-26 Thread Victor Sudakov
ndexes etc? What if I even do "rm ~/Mail/some/mailbox", will Dovecot be mad at me? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: Local access to IMAP mailboxes

2018-09-26 Thread Victor Sudakov
Ah, is this perhaps the reason why my Android IMAP client sometimes takes so long to list a folder's contents? I must have touched the folder locally by Mutt and Dovecot is reindexing, is that right? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: Best way to move mail from one server to another

2018-09-27 Thread Victor Sudakov
Communigate Pro has a nice Migration/MoveIMAPMail utility. As Communigate is free to use for up to five accounts, I think it is legal to install it and use the MoveIMAPMail utility. I have used it once to migrate mail from Communigate to dovecot. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005

Re: Local access to IMAP mailboxes

2018-09-27 Thread Victor Sudakov
don't want to bother with authentication and don't want to keep my password in muttrc. Anyway, my mail is sorted and delivered to ~/Mail/* by procmail, so the mboxes will be touched by a process outside of dovecot. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: Local access to IMAP mailboxes

2018-09-27 Thread Victor Sudakov
ox corruption, but they can be safely ignored. My mail goes through procmail, so Dovecot will not be the only one to touch the mboxes anyway. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: Local access to IMAP mailboxes

2018-09-27 Thread Victor Sudakov
Larry Rosenman wrote: > What I do is keep my passwords in a file encrypted by GPG and have mutt do: > source "gpg -q --textmode -d ~/.neomutt/passwords.gpg |" > > that way they're not readable except by use of a passworded GPG key. > Very clever, I must adm

Re: Local access to IMAP mailboxes

2018-09-27 Thread Victor Sudakov
Larry Rosenman wrote: > I have my dovecot running with TLS, so the passwords are NOT transmitted in > the clear (starttls). The problem is not transmitting them in the clear but keeping them in the clear in a local file like muttrc, or entering the password each time you launch mutt. --

Re: Local access to IMAP mailboxes

2018-09-27 Thread Victor Sudakov
ar in a local file like muttrc, or entering the password each > time you launch mutt. > > > Hence my gpg text file trick. ( Do you enter your gpg password each time you launch mutt, or do you use some kind of gpg agent? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: Local access to IMAP mailboxes

2018-09-28 Thread Victor Sudakov
ed those mails locally from /var/mai/vas. They are being cached somewhere. Is it not dovecot caching them? Nor can I find a way to forcefully rescan an IMAP folder in the Gmail app. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: Local access to IMAP mailboxes

2018-09-28 Thread Victor Sudakov
ed those mails locally from /var/mai/vas. They are being cached somewhere. Is it not dovecot caching them? Nor can I find a way to forcefully rescan an IMAP folder in the Gmail app. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: Local access to IMAP mailboxes

2018-09-28 Thread Victor Sudakov
ice(imap): child 85560 killed with signal 6 (core not dumped - https://dovecot.org/bugreport.html#coredumps - set service imap { drop_priv_before_exec=yes }) Is this that corrupted index case? It even causes the panic in the daemon. Can I fix the index or somehow reindex the mailbox? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: Local access to IMAP mailboxes

2018-09-29 Thread Victor Sudakov
Aki Tuomi wrote: > > > > Is this that corrupted index case? It even causes the panic in the > > daemon. Can I fix the index or somehow reindex the mailbox? > > > > You can use doveadm force-resync -u vas "*" Thanks! -- Victor Sudakov, VAS4

mailbox locking

2018-12-15 Thread Victor Sudakov
t = 0 mbox_dotlock_change_timeout = 2 mins mbox_lock_timeout = 5 mins mbox_read_locks = fcntl mbox_write_locks = dotlock fcntl pop3_lock_session = no Do I need to change anything in dovecot's default locking setup? Does it still use lockfiles on mboxes or not? There are some contradictory parameters IMHO. -- Vict

Re: mailbox locking

2018-12-16 Thread Victor Sudakov
Victor Sudakov wrote: I use exim's appendfile transport, procmail and a local mutt on my system, they all (to my knowledge) use lockfiles when working with mboxes. [vas@adm2 ~] procmail -v | & grep Locking Locking strategies: dotlocking, lockf() vas@adm2 ~] mutt -v|gre

Changing IMAP separator - does it break things?

2020-10-13 Thread Victor Sudakov
nested folders etc. My `doveconf -n` is here: https://termbin.com/w1wd -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ signature.asc Description: PGP signature

Re: Changing IMAP separator - does it break things?

2020-10-14 Thread Victor Sudakov
Filip Hajný wrote: > > > > On 14.10.20 04:36, Victor Sudakov wrote: > >> Do you think I can change the hierarchy separator in the "inbox" > >> namespace without breaking other clients and the mail layout on disk, > >> losing mail etc? > > &g

Re: Changing IMAP separator - does it break things?

2020-10-14 Thread Victor Sudakov
Markus Winkler wrote: > > On 14.10.20 04:36, Victor Sudakov wrote: > > Do you think I can change the hierarchy separator in the "inbox" > > namespace without breaking other clients and the mail layout on disk, > > losing mail etc? > > I personally would

Re: Changing IMAP separator - does it break things?

2020-10-14 Thread Victor Sudakov
should see > nonsense folders in the form of '.folder\2esubfolder‘ there that cannot be > worked with in any way. I manually moved the contents of these to their > properly named ('.folder.subfolder‘) variants - on disk. Thanks for the warning Filip! -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ signature.asc Description: PGP signature

Re: Changing IMAP separator - does it break things?

2020-10-14 Thread Victor Sudakov
Filip Hajný wrote: > 14. 10. 2020 v 11:51, Victor Sudakov : > > > >> I had to do it with 10-20 live users and it went fine, nobody noticed > >> anything (I made the change in the night hours just to be sure > >> though). I had to go down and fix some erratic

Re: Changing IMAP separator - does it break things?

2020-10-14 Thread Victor Sudakov
@lbutlr wrote: > On 14 Oct 2020, at 04:24, Sami Ketola wrote: > > On 14. Oct 2020, at 12.51, Victor Sudakov wrote: > >> Those Mac clients who do not use nested folders do not seem to be > >> affected. That is, I've already suggested to the Mac Mail user that he

Re: Changing IMAP separator - does it break things?

2020-10-14 Thread Victor Sudakov
@lbutlr wrote: > On 13 Oct 2020, at 20:36, Victor Sudakov wrote: > > I am using Dovecot 2.3.4.1 with maildirs. Just found out that MacOS Mail > > clients cannot work with nested folders, presumably because the MacOS > > Mail does not understand "." as the IMAP sepa

A user's last access time

2020-10-19 Thread Victor Sudakov
a mail was delivered to the INBOX. This information is probably available in the log, but a file which is touched each time a user accesses his/her mail, is more convenient. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/

Re: A user's last access time

2020-10-19 Thread Victor Sudakov
Sami Ketola wrote: > > > > On 19. Oct 2020, at 18.54, Victor Sudakov wrote: > > > > Dear Colleagues, > > > > Is there a file or directory within a user's Maildir, whose date of > > modification or access indicates the last time the us

Re: A user's last access time

2020-10-20 Thread Victor Sudakov
Aki Tuomi wrote: > > On 20.10.2020 9.30, Matthias Lay wrote: > > Am Tue, 20 Oct 2020 09:31:16 +0700 > > schrieb Victor Sudakov : > > > > > >> Hello Sami, > >> > >> I have seen this but I do not want this information in a database. If > &

Re: A user's last access time

2020-10-20 Thread Victor Sudakov
@lbutlr wrote: > On 19 Oct 2020, at 20:31, Victor Sudakov wrote: > > I have seen this but I do not want this information in a database. > … > > > Even a local sqlite database would do. > > What? > This meant that an external DMBS/daemon process (MySQL, Redis e

Re: A user's last access time

2020-10-20 Thread Victor Sudakov
ens of /usr/local/virtual/%d/%u/.lastlogin > > Dovecot is smart enough to do the expansion per user in the ~ Thanks for the hint. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ signature.asc Description: PGP signature

Re: How to move/reorganise existing e-mails to yearly subfolders

2020-10-20 Thread Victor Sudakov
the destination folders. You could try imapfilter (written in lua), it can move mails between mailboxes and do other things. A short example: oldmails = account1["INBOX"]:is_older(365) oldmails:move_messages(account1["Old"]) -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:

debug SMTP commands sent/received to/from the submission service

2021-04-09 Thread Victor Sudakov
and Dovecot is encrypted after STARTTLS, so Wireshark is pretty useless here. Can you please point me to the right direction to log all SMTP commands? All is happening on Debian/buster, Dovecot 2.3.4.1. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature

Re: debug SMTP commands sent/received to/from the submission service

2021-04-09 Thread Victor Sudakov
Plutocrat wrote: > On 09/04/2021 15.13, Victor Sudakov wrote: > > I'd use Wireshark but the communication between SMTP clients and Dovecot is > > encrypted > > after STARTTLS, so Wireshark is pretty useless here. > > You might get some useful information

Re: debug SMTP commands sent/received to/from the submission service

2021-04-09 Thread Victor Sudakov
/tmp/dovecot remains empty. What am I missing? I'd use Wireshark > > but the communication between SMTP clients and Dovecot is encrypted > > after STARTTLS, so Wireshark is pretty useless here. > > > > Can you please point me to the right direction to log all SMTP commands? &

all of a sudden, slow resync

2019-01-27 Thread Victor Sudakov
/dns-operations/dovecot.index.log was locked for 95 seconds (Mailbox was synchronized) And it really takes forever to finish. What could cause this? FreeBSD 11.2-RELEASE-p8, dovecot-2.3.3_4 -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/