From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28089 invoked from network); 7 Aug 2022 20:25:53 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 7 Aug 2022 20:25:53 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oKmqN-009bXi-Bg for ml@inbox.vuxu.org; Sun, 07 Aug 2022 15:25:51 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.95) (envelope-from ) id 1oKmqN-000UIY-1h for ml@inbox.vuxu.org; Sun, 07 Aug 2022 15:25:51 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.95) (envelope-from ) id 1oKmqJ-000UIP-GE for ding@lists.math.uh.edu; Sun, 07 Aug 2022 15:25:47 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by mx2.math.uh.edu with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oKmqG-009aDy-QZ for ding@lists.math.uh.edu; Sun, 07 Aug 2022 15:25:47 -0500 Received: (Authenticated sender: bk@asterio.cloud) by mail.gandi.net (Postfix) with ESMTPA id E56E1240003 for ; Sun, 7 Aug 2022 20:25:38 +0000 (UTC) MIME-Version: 1.0 Date: Sun, 07 Aug 2022 22:25:38 +0200 From: bk@asterio.cloud To: ding@lists.math.uh.edu Subject: Re: Yet another thread about Gnus, isync and dovecot mail stack In-Reply-To: <917917b536172fa16ea4e890471b535f@asterio.cloud> References: <917917b536172fa16ea4e890471b535f@asterio.cloud> Message-ID: X-Sender: bk@asterio.cloud Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit List-ID: Precedence: bulk Hi again... I made some changes and fix paths in both dovecot and mbsync configs and successfully login to dovecot, but I receive some errors about permissions: Aug 07 22:14:53 localhost.localdomain dovecot[4724]: imap(bk@asterio)<4732>: Error: mkdir(/home/bk/.mail/asterio/bk) failed: Permission denied (euid=1000(bk) egid=1000(bk) UNIX perms appear ok (ACL/MAC wrong?)) Aug 07 22:14:53 localhost.localdomain dovecot[4724]: imap(bk@asterio)<4732>: Error: mkdir(/home/bk/.mail/asterio/bk) failed: Permission denied (euid=1000(bk) egid=1000(bk) UNIX perms appear ok (ACL/MAC wrong?)) Aug 07 22:14:53 localhost.localdomain dovecot[4724]: imap(bk@asterio)<4732>: Error: mkdir(/home/bk/.mail/asterio/bk) failed: Permission denied (euid=1000(bk) egid=1000(bk) UNIX perms appear ok (ACL/MAC wrong?)) Aug 07 22:14:53 localhost.localdomain dovecot[4724]: imap(bk@asterio)<4732>: Error: Mailbox INBOX: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2022-08-07 22:14:53] Changes in dovecot.conf: userdb { driver = static args = uid=bk gid=bk home=/home/bk/.mail/%d/%n default_fields = mail=maildir:/home/bk/.mail/%d/%n } in .mbsyncrc: Path ~/.mail/asterio.cloud/bk/ Inbox ~/.mail/asterio.cloud/bk/Inbox Permissions of ~/.mail/asterio/bk: drwxr-xr-x 1 bk bk 62 Aug 7 22:23 /home/bk/.mail/asterio.cloud/bk On 2022-08-07 20:34, bk@asterio.cloud wrote: > Hi, > I am asking you about help with basic configuration and available > sources [1][2][3] are not enough for me. > Using mbsync I successfully synchronize e-mails with my IMAP provider. > I have problem with connection from Gnus to local dovecot server and > I'm stuck now. > > Current configuration of ~/.mbsyncrc (inspired heavily on [4]: > IMAPAccount gandi > Host mail.gandi.net > User bk@asterio.cloud > PassCmd "/usr/bin/pass email/bk" > SSLType IMAPS > CertificateFile /var/lib/ca-certificates/ca-bundle.pem > > IMAPStore gandi-remote > Account gandi > > MaildirStore gandi-local > SubFolders Verbatim > Path ~/.mail/gandi/ > Inbox ~/.mail/gandi/Inbox > > Channel gandi > Far :gandi-remote: > Near :gandi-local: > Patterns * > Create Both > Expunge Both > SyncState * > > My /etc/dovecot/dovecot.conf contains (inspired Eric's post and [5]): > protocols = imap > listen = localhost > ssl = no > disable_plaintext_auth = no > mail_location = maildir:~/.mail:LAYOUT=fs > auth_verbose = yes > auth_mechanisms = plain login > passdb { > driver = passwd-file > args = /etc/dovecot/passwd > } > userdb { > driver = static > args = uid=bk gid=users home=/home/bk > } > > And finally my ~/.gnus is simply: > (setq gnus-select-method > '(nnimap "asterio.cloud" > (nnimap-stream network) > (nnimap-address "localhost") > (nnimap-authenticator login) > (nnimap-user "bk"))) > > During connection Gnus I see logs in *MESSAGES* buffer: > Opening nnimap server on asterio.cloud...failed: BAD NULs not allowed > in strings > > dovecot logs says: > imap-login: Disconnected: Connection closed (no auth attempts in 2 > secs): user=<>, rip=::1, lip=::1, secured, > session= > > What I can check more? > > 1. https://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html > 2. https://github.com/gongzhitaao/GnusSolution > 3. https://www.mail-archive.com/info-gnus-english@gnu.org/msg13957.html > 4. https://wiki.archlinux.org/title/isync#Configuring > 5. > https://doc.dovecot.org/configuration_manual/howto/simple_virtual_install/