dovecot fail to delvier mail with "lda(xxxxx): Fatal: Mail access for users with GID 2000 not permitted (see first_valid_gid in config file, gid from userdb lookup)
After some radon changes using the lets encrypt script from https://certbot.eff.org/ to create my HTTP secret. It looks like some changes happened also on the email configuration.
I failed to download email via impa and pop3 also Raoundcube fail to use also imap with a local user.
Now I have this error message that means?
fail to delvier mail with "lda(xxxxx): Fatal: Mail access for users with GID 2000 not permitted (see first_valid_gid in config file, gid from userdb lookup)
or
Error: Mail access for users with GID 2000 not permitted (see first_valid_gid in config file, gid from userdb lookup).
Jul 27 11:57:01 mc dovecot[13534]: imap-login: Login: user=<mail@example.com>, method=PLAIN, rip=::1, lip=::1, mpid=21779, secured, session=<YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Loading modules from directory: /usr/lib64/dovecot/modules
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Module loaded: /usr/lib64/dovecot/modules/lib10_quota_plugin.so
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Module loaded: /usr/lib64/dovecot/modules/lib11_imap_quota_plugin.so
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Added userdb setting: mail=maildir:/srv/customers/mail/ase/andrej@semen.de/
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Added userdb setting: plugin/quota_rule=*:storage=0M
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com😞 Error: Mail access for users with GID 2000 not permitted (see first_valid_gid in config file, gid from userdb lookup).
Jul 27 11:57:42 mc dovecot[13534]: imap-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=xx.225.94.xx, lip=xx.111.252.xx, session=<uNHA/nQBtMlP4V7r>
Jul 27 11:59:04 mc dovecot[13534]: imap-login: Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied
Jul 27 11:59:05 mc dovecot[13534]: imap: Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied
I checked all the files configuration in /etc/dovecot/conf.d looks fine
BTW; I ca send email out to an extern email. Postfix does the jon. If I try to send ir local it fails in the part of dovecot to save it down into the right foleser /ser/customers/mail folder .
the owner and group of the mail folder and subfolder are owned by vmail:vamail user and gid = 2000
Question
asemen
After some radon changes using the lets encrypt script from https://certbot.eff.org/ to create my HTTP secret. It looks like some changes happened also on the email configuration.
I failed to download email via impa and pop3 also Raoundcube fail to use also imap with a local user.
Now I have this error message that means?
fail to delvier mail with "lda(xxxxx): Fatal: Mail access for users with GID 2000 not permitted (see first_valid_gid in config file, gid from userdb lookup)
or
Error: Mail access for users with GID 2000 not permitted (see first_valid_gid in config file, gid from userdb lookup).
Jul 27 11:57:01 mc dovecot[13534]: imap-login: Login: user=<mail@example.com>, method=PLAIN, rip=::1, lip=::1, mpid=21779, secured, session=<YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Loading modules from directory: /usr/lib64/dovecot/modules
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Module loaded: /usr/lib64/dovecot/modules/lib10_quota_plugin.so
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Module loaded: /usr/lib64/dovecot/modules/lib11_imap_quota_plugin.so
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Added userdb setting: mail=maildir:/srv/customers/mail/ase/andrej@semen.de/
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com)<21779><YPJN/HQBrOkAAAAAAAAAAAAAAAAAAAAB>: Debug: Added userdb setting: plugin/quota_rule=*:storage=0M
Jul 27 11:57:01 mc dovecot[13534]: imap(mail@example.com😞 Error: Mail access for users with GID 2000 not permitted (see first_valid_gid in config file, gid from userdb lookup).
Jul 27 11:57:42 mc dovecot[13534]: imap-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=xx.225.94.xx, lip=xx.111.252.xx, session=<uNHA/nQBtMlP4V7r>
Jul 27 11:59:04 mc dovecot[13534]: imap-login: Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied
Jul 27 11:59:05 mc dovecot[13534]: imap: Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied
/etc/dovecot/conf.d # grep first_valid_gid *
10-mail.conf:#first_valid_gid = 1
10-mail.conf:first_valid_gid = 12
10-mail.conf.frx.bak:#first_valid_gid = 1
I checked all the files configuration in /etc/dovecot/conf.d looks fine
BTW; I ca send email out to an extern email. Postfix does the jon. If I try to send ir local it fails in the part of dovecot to save it down into the right foleser /ser/customers/mail folder .
the owner and group of the mail folder and subfolder are owned by vmail:vamail user and gid = 2000
ll /srv/customers/mail/ -d
drwx--x--x 5 vmail vmail 4096 4. Aug 2014 /srv/customers/mail/
grep vmail /etc/passwd
vmail:x:2000:2000:maildirs chef:/srv/customers/mail:/bin/false
mc:/etc/dovecot # grep vmail /etc/group
vmail:x:2000:dovecot
Has anyone an idea how to get the email with Forxlor working again.
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now