Hi Rémi! On Sun, May 25 2025, Rémi Letot wrote:
> Luis Henriques <[email protected]> writes: > >> Hi! >> >> Just like a lot of other people in this list is doing, I've been a happy >> Gnus user with a local dovecot installation. For several years I've been >> using something like: >> >> (setq gnus-secondary-select-methods >> '((nnimap "myemail" >> (nnimap-stream shell) >> (nnimap-shell-program >> "/usr/libexec/dovecot/imap -o >> mail_location=maildir:~/mail/:LAYOUT=fs:INBOX=~/mail/inbox")))) >> >> (In fact, I've had a few more nnimap entries, but that's not relevant.) >> >> Unfortunately, the imap interface has changed quite a bit with recent >> dovecot versions (2.4.1 here), and this doesn't work anymore. After >> spending quite some time trying to get a similar setup, I had to give up >> and started using the real (non-local) imap servers. >> >> As anyone found a solution? > > Hello, > > I had to read and experiment quite a bit before I could make it work. I > had to split mail_location between several new options: mail_driver, > mail_path, and mail_inbox_path. > > You'll have to tweak it a bit because I don't think that I hade the > LAYOUT part, but here is one of my current working definitions: > > (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_driver=maildir -o > mail_path=$HOME/Mail/poukram.net -o mail_inbox_path=.") First of all, thanks a lot for your reply! So... I had tried several combinations before sending my email. After trying your configuration, it didn't solved my problem. I guess one of the problems may be the way my distro (Alpine Linux) packages dovecot because it does not include any default dovecot.conf. So, the first time I try to manually run the above imap command I get: doveconf: Fatal: dovecot_storage_version setting must be set I then create a /etc/dovecot/dovecot.conf with the following content: dovecot_config_version = 2.4.1 dovecot_storage_version = 2.4.1 At this point, if I run the imap command I get: Fatal: USER environment missing Then, I add '-u luis' (my login) and get: imap(luis)<19048><>: Error: auth-master: userdb lookup(luis): connect(/run/dovecot/auth-userdb) failed: No such file or directory Fatal: Internal error occurred. Refer to server log for more information. As I said, I'm running 2.4.1 in Alpine Linux. Maybe I really need to have a proper dovecot.conf? It used to work just fine without any configuration with older versions :-( (Yeah, this is probably OT for this mailing-list...) Cheers, -- Luís
