search for: mail_gid

Displaying 20 results from an estimated 1228 matches for "mail_gid".

2010 Oct 13
1
doveadm doesn't seem to honor mail_location, mail_uid, mail_gid
I am adjusting the recommended ldap configuration to match active directory instead of the standard posixaccount layout. The problem is that doveadm seems to ignore mail_uid and mail_gid along with (possibly) mail_location. This is a setup with all virtual users (all ldap, not system accounts). Everything works in postfix and standard dovecot operation, it is only doveadm which doesn't work. Ldap queries return everything but these entries (as they do not exist in AD). These...
2009 Sep 03
2
mail_uid and mail_gid are not set in environment (for expire-tool and so)
...vmail mail_guid = vmail which is confirmed with 'dovecot -n' I have a script my-expire-tool-test containing: #!/bin/sh set which basically only display environment variables. When I run : /usr/sbin/dovecot --exec-mail ext my-expire-tool-test I do not see any variable MAIL_UID nor MAIL_GID. As a consquence, when I run /usr/sbin/dovecot --exec-mail ext my-expire-tool with my-expire-tool containing: #!/bin/sh # This script is a workaround for Dovecot 1.2 having issue to load modules when running expire-tool. # More information: http://wiki.dovecot.org/Plugins/Expire, search Do...
2018 May 15
2
Postfix/Dovecot permissions for new mailboxes
With this settings I don't get the expectet result, still get wrong permissions on new mailboxes. Aki did you also try with %u ? > In /etc/dovecot/conf.d/10-mail.conf follow options are set: > mail_gid = mail > mail_privileged_group = mail > mail_access_groups = mail > mail_location = mdbox:/var/spool/mail/%u On 15.05.2018 13:06, Aki Tuomi wrote: > I have to correct myself. I tested with sdbox now too, and it seems that > using > > mail_location=sdbo...
2008 Jan 14
2
file system permissions
I am using Maildir and virtual domains. I have the following definitions in the dovecot.conf: mail_uid = 10000 mail_gid = 10000 mail_location = maildir:/var/mail/apps/%d/%n/Maildir ... Userdb database is LDAP based. Some users in LDAP might have a uid/gid defined. If thats the case, I want dovecot to use those uid/gid. If the user in LDAP does not have a uid/gid attribute, it'll fall back to using mail_uid/mail...
2020 Mar 23
3
Problem with mail_uid
Hello! I have problems fetching mail for a system user. In use is a passwd-file. If I set (for virtual users) mail_uid = vmail mail_gid = vmail in 10-mail.conf, I get permission denied. 2020-03-23 18:39:23 imap(andreas at dualbit.de): Error: chdir(/home/andreas/Maildir/) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/andreas/Maildir, dir owned by 5006:5006 mode=0700) The mailbox has permission...
2018 May 16
1
Postfix/Dovecot permissions for new mailboxes
...h at gmx.de> wrote: >> >> >> With this settings I don't get the expectet result, still get wrong >> permissions on new mailboxes. Aki did you also try with %u ? >> >> > In /etc/dovecot/conf.d/10-mail.conf follow options are set: >> > mail_gid = mail >> > mail_privileged_group = mail >> > mail_access_groups = mail >> > mail_location = mdbox:/var/spool/mail/%u >> >> On 15.05.2018 13:06, Aki Tuomi wrote: >>> I have to correct myself. I tested with sdbox now too, and...
2017 Sep 15
2
logins fail for virtual users (permission denied, we're not in group 5000)
...vmail), dir owned by 5000:5000 mode=0750) A previous user had a similar problem in 2015: https://dovecot.org/list/dovecot/2015-July/101469.html He was advised to look at https://wiki2.dovecot.org/UserIds ? without being given more specific advice. I looked at the page. I tried adding mail_uid and mail_gid. No luck. In my case, I see: # sudo -u dovecot groups dovecot vmail # sudo -u dovecot cat /var/mail/vhosts/travler.net/shadow <file contents> I have a vmail user: # id vmail uid=5000(vmail) gid=5000(vmail) groups=5000(vmail) # ls -la /var/mail/vhosts total 0 drwxr-s--- 1 vmail vmail 246 J...
2018 May 15
2
Postfix/Dovecot permissions for new mailboxes
...; >>>> But newly created mailboxes get following permissions: >>>> ?????drwx--S--- 5 newuser mail 4096 Apr 23 19:31 >>>> /var/spool/mail/newuser/ >>>> >>>> In /etc/dovecot/conf.d/10-mail.conf follow options are set: >>>> ?????mail_gid = mail >>>> ?????mail_privileged_group = mail >>>> ?????mail_access_groups = mail >>>> >>>> I'm missing something to get right group permissions for new mailboxes? >>> >>> What permissions were you expecting? Also, which versio...
2018 May 09
2
Postfix/Dovecot permissions for new mailboxes
...ssions for the root mail directory are set to 2770: drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/ But newly created mailboxes get following permissions: drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/ In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail I'm missing something to get right group permissions for new mailboxes?
2011 May 09
1
Dovecot Maildir ownership/permission problem
...ve an error saying the Maildir is inaccessible and shows that is a permission problem. I changed the chmod to 777 and Dovecot worked (temporarily solution). And, it created additional items under that folder under a "mailman" user (which I specified in the configuration using mail_uid and mail_gid) - Note: it does not work if I do not set these "mail_uid" and "mail_gid" settings. I think what I would like is to make Dovecot access each individual's mailbox using the user's own account and group. How do I do this? I am using Passwd-file scheme. --- My dovecot.con...
2011 Aug 11
2
Unknown setting: service
...from the sources. However, I can't start dovecot or even use doveconf: root at imap01:~# doveconf -n # 2.0.13: /usr/local/etc/dovecot/dovecot.conf doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/conf.d/10-mail.conf line 111: Unknown setting: mail_uid Why is mail_uid and mail_gid an unknown setting? On my other box the configuration is identical (but Dovecot is upgraded from early 2.0.x versions to the current one) If I comment the mail_uid and mail_gid lines, I get another error: root at imap01:~# doveconf -n doveconf: Fatal: Error in configuration file /usr/local/etc/d...
2013 Jun 22
0
Problem with virtual user mailbox initialization
...rg: Initialization failed: Namespace '': mkdir(/var/mail/foo.org/dkasak) failed: Permission denied (euid=5000(postman) egid=5000(postman) missing +w perm: /var/mail, we're not in group 6(mail), dir owned by 0:6 mode=0775) As can be seen from the error message, I've set mail_uid and mail_gid to account/group postman. /var/mail/ is empty and owned by root:mail so I've also set mail_privileged_group = mail. I was under the impression that mail_privileged_group is used precisely for these situations (when dotlocking or initial creation of the mailbox fail due to insufficient privilege...
2018 May 15
2
Postfix/Dovecot permissions for new mailboxes
...--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/ >> >> But newly created mailboxes get following permissions: >> ????drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/ >> >> In /etc/dovecot/conf.d/10-mail.conf follow options are set: >> ????mail_gid = mail >> ????mail_privileged_group = mail >> ????mail_access_groups = mail >> >> I'm missing something to get right group permissions for new mailboxes? > > What permissions were you expecting? Also, which version of dovecot are > you running? > > Aki...
2009 Feb 02
2
Errors after install with non-standard prefix
...var/log/dovecot_info.log protocols: imap ssl_disable: yes disable_plaintext_auth: no login_dir: /zhome/var/run/dovecot login_executable: /zhome/dovecot/libexec/dovecot/imap-login login_user: exim login_chroot: no login_max_processes_count: 30 max_mail_processes: 30 first_valid_uid: 1 mail_uid: exim mail_gid: exim mail_location: mbox:/zhome/var/mail:INBOX=/zhome/var/mail/.dead_letters mail_debug: yes mbox_lazy_writes: no auth default: failure_delay: 1 verbose: yes debug: yes worker_max_request_count: 1 passdb: driver: pam args: dovecot -- Dmitry Samersoff dms at samersoff.ne...
2009 Feb 06
3
FreeBSD pam auth problems
...g/dovecot_info.log listen: *:143 ssl_listen: *:993 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/dovecot/libexec/dovecot/imap-login login_user: nobody login_chroot: no login_max_processes_count: 30 max_mail_processes: 30 first_valid_uid: 1 mail_uid: smmsp mail_gid: smmsp mail_location: mbox:%h/Mail:INBOX=/var/mail/%u mail_debug: yes mbox_lazy_writes: no auth default: failure_delay: 1 verbose: yes debug: yes worker_max_request_count: 1 passdb: driver: pam args: imap -- Dmitry Samersoff dms at samersoff.net, http://devnull.samersof...
2018 Sep 16
3
Quotas not working with roundcube
...be I see 0% quota which seems to correspond to disabled. However I did everything that I could to enable quotas https://wiki.dovecot.org/Quota # doveconf -n auth_mechanisms = cram-md5 loginauth_verbose = yes debug_log_path = /tmp/dovecot.log first_valid_uid = 1000 log_path = /var/log/dovecot.log mail_gid = vmail mail_location = maildir:/home/mail/%d/%n/Maildir mail_plugins = notify replication quota mail_uid = vmail mbox_write_locks = fcntl mmap_disable = yes namespace inbox { ? inbox = yes ? location = ? mailbox Drafts { ??? special_use = \Drafts ? } ? mailbox Junk { ??? special_use = \Junk ? } ?...
2014 Jun 25
1
sievec drops privileges unexpectedly
...apparently sievec drops privileges to the virtual-mail user. Why does this happen? It seems kind of counter-productive - I don't see a way to properly run sievec as root now? How is this supposed to work? Now I wrote this, I realized that it might be related that I have specified mail_uid and mail_gid globally in my dovecot.conf file. Perhaps those are intended to only be put inside the protocol imap and protocol lda blocks? This would mean duplicating of this bit of configuration, which doesn't really sound nice. Gr. Matthijs PS, here's my dovecot -n output: # 2.1.7: /etc/dovecot/do...
2016 Oct 14
2
First steps in Dovecot; IMAP not working
doveconf -n: # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-042stab116.1 x86_64 Debian 8.6 mail_location = mbox:~/mail:INBOX=/var/mail/%u namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent }
2013 Aug 01
2
misconception in uid and gid
...FROM virtual_users AS V LEFT JOIN virtual_domains AS D ON V.domain_id=D.id WHERE V.user='%n' AND D.name='%d' Nevertheless, if I remove the segments "'vmail' AS uid, 'vmail' AS gid" and modify the file conf.d/10-mail.conf to show mail_uid = vmail mail_gid = vmail I get this error: dovecot: auth: Error: userdb(<mail>): client doesn't have lookup permissions for this user: userdb reply doesn't contain uid (change userdb socket permissions) Does anybody know what is wrong in my set-up? Regards, Felix
2011 Jan 29
2
sql : uid, gid, home ignored ?
...Error: user theuser: Couldn't drop privileges: User is missing UID (see mail_uid setting) dovecot: imap(theuser): Error: Internal error occurred. Refer to server log for more information. The same two lines are also displayed in mail.info and mail.log Further testing (setting mail_uid & mail_gid to a nobody) shown that the home setting was ignored too. The sql example says that uid and gid are supposed to be an override of the mail_uid and mail_gid settings. Any idea of why the columns are ignored ? Thanks in advance, Eric