Gnus development mailing list
 help / color / mirror / Atom feed
From: bk@asterio.cloud
To: ding@lists.math.uh.edu
Subject: Re: Yet another thread about Gnus, isync and dovecot mail stack
Date: Sun, 07 Aug 2022 22:25:38 +0200	[thread overview]
Message-ID: <e91f3d53527c9d0572280126793057da@asterio.cloud> (raw)
In-Reply-To: <917917b536172fa16ea4e890471b535f@asterio.cloud>

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><kKkwWqzl1OEAAAAAAAAAAAAAAAAAAAAB>: 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><kKkwWqzl1OEAAAAAAAAAAAAAAAAAAAAB>: 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><kKkwWqzl1OEAAAAAAAAAAAAAAAAAAAAB>: 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><kKkwWqzl1OEAAAAAAAAAAAAAAAAAAAAB>: 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=<bnKv3qrl+rcAAAAAAAAAAAAAAAAAAAAB>
> 
> 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/


  reply	other threads:[~2022-08-07 20:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-07 18:34 bk
2022-08-07 20:25 ` bk [this message]
2022-08-08 15:18   ` Greg Troxel
2022-08-10  6:38     ` Bartosz Kaczyński
2022-08-08 15:59 ` Eric Abrahamsen
2022-08-10  6:34   ` Bartosz Kaczyński

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e91f3d53527c9d0572280126793057da@asterio.cloud \
    --to=bk@asterio.cloud \
    --cc=ding@lists.math.uh.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).