RE: [SOGo] dovecot problem with sogo!
For Now i get my Users Login to dovecot with some error anyway but This problem solved i will tell you about my config:VM1: Samba 4.0.5 + Openchange 2.0(local access)VM2: SOGo + dovecot IMAP + Postfix SMTP serverMy problem was that users cannot read samba information.When you are installing all on one VM or Physical server you should not have any problem for reading this information.As a solution verify that all uid, uidNumber, gidNumber, objectClass, unixHomeDirectory and loginShell. By default in this version of samba dn is like : CN=your user, CN=Users,DC=domainname,DC=comor maybe installing winbind and configuring nsswich on sogo and imap server can help getting those information(no tested yet). thank all :) From: mynameisl...@outlook.com To: users@sogo.nu Date: Mon, 27 May 2013 15:19:44 + Subject: RE: [SOGo] dovecot problem with sogo! after playing a bit with parameters and samba config here i am when im trying to loging to samba via dovecot this is dovecot.message:2013-05-27 16:59:04 imap-login: Info: Login: user=janedoe, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6369, secured2013-05-27 16:59:04 imap(janedoe): Error: user janedoe: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/janedoe) failed: Permission denied (euid=32(unknown) egid=512(unknown) missing +w perm: /var/mail, dir owned by 5000:5000 mode=0775)2013-05-27 16:59:04 imap(janedoe): Error: Invalid user settings. Refer to server log for more information.2013-05-27 17:02:14 imap-login: Info: Login: user=majidfazel, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6381, secured2013-05-27 17:02:14 imap(majidfazel): Error: user majidfazel: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/majidfazel) failed: Permission denied (euid=323(unknown) egid=512(unknown) missing +w perm: /var/mail, dir owned by 5000:5000 mode=0775)2013-05-27 17:02:14 imap(majidfazel): Error: Invalid user settings. Refer to server log for more information. thanks From: mynameisl...@outlook.com To: users@sogo.nu Date: Mon, 27 May 2013 09:30:49 + Subject: RE: [SOGo] dovecot problem with sogo! Hi, i add mail_uid to 5000 and once to vmail restart dovecot still same problem!i even add acl:read = false and acl:search = false to my smb.conf but still cannot login in from dovecot! Date: Sat, 25 May 2013 12:57:20 +0200 From: ac...@ag-web.biz To: users@sogo.nu Subject: Re: [SOGo] dovecot problem with sogo! Am 25.05.2013 09:20, schrieb MyName IsLive: Based on my config as i used pam and ldap(local.conf) do i need to use winbind and nsswitch for authenticating with ad? Looking at your config you do not need pam and likewise winbind/nsswitch if you only want do use your samba users with dovecot. It seems samba4 does not return an uidNumber. You can test that if you run kinit [user] ldapsearch cn=[user] and look for uidNumber in the output. Maybe adding acl:read=false to your smb.conf will help you to get that number returned, it was neccessary with earlier versions of samba4. On my side i use different ldap profiles for passdb and userdb lookups and i use one system user (vmail:999) for all mails which makes it easier to handle shared folders later because the access rights can be configured only via imap acl's. Also I hardcoded all the home and mail path's in my config. but anyway here are the relevant parts. dovecot.conf -- mail_home = /home/vmail/%u mail_location = maildir:/home/vmail/%u/mail mail_uid = 999 mail_gid = 999 first_valid_uid = 999 first_valid_gid = 999 namespace inbox { inbox = yes location = maildir:/home/vmail/%u/mail prefix = separator = / type = private } passdb { driver = ldap args = /etc/dovecot/dovecot-ldap-passdb.conf.ext } userdb { driver = ldap args = /etc/dovecot/dovecot-ldap-userdb.conf.ext } -- dovecot-ldap-passdb.conf.ext -- hosts = localhost auth_bind = yes auth_bind_userdn = cn=%u,cn=Users,dc=gsg,dc=local ldap_version = 3 base = cn=Users,dc=gsg,dc=local pass_filter = ((objectClass=person)(cn=%u)(mail=*)) -- dovecot-ldap-userdb.conf.ext -- hosts = localhost dn = cn=ldap,cn=Users,dc=gsg,dc=local dnpass = [password] ldap_version = 3 base = cn=Users,dc=gsg,dc=local user_attrs = =uid=999,=gid
RE: [SOGo] dovecot problem with sogo!
Hi, i add mail_uid to 5000 and once to vmail restart dovecot still same problem!i even add acl:read = false and acl:search = false to my smb.conf but still cannot login in from dovecot! Date: Sat, 25 May 2013 12:57:20 +0200 From: ac...@ag-web.biz To: users@sogo.nu Subject: Re: [SOGo] dovecot problem with sogo! Am 25.05.2013 09:20, schrieb MyName IsLive: Based on my config as i used pam and ldap(local.conf) do i need to use winbind and nsswitch for authenticating with ad? Looking at your config you do not need pam and likewise winbind/nsswitch if you only want do use your samba users with dovecot. It seems samba4 does not return an uidNumber. You can test that if you run kinit [user] ldapsearch cn=[user] and look for uidNumber in the output. Maybe adding acl:read=false to your smb.conf will help you to get that number returned, it was neccessary with earlier versions of samba4. On my side i use different ldap profiles for passdb and userdb lookups and i use one system user (vmail:999) for all mails which makes it easier to handle shared folders later because the access rights can be configured only via imap acl's. Also I hardcoded all the home and mail path's in my config. but anyway here are the relevant parts. dovecot.conf -- mail_home = /home/vmail/%u mail_location = maildir:/home/vmail/%u/mail mail_uid = 999 mail_gid = 999 first_valid_uid = 999 first_valid_gid = 999 namespace inbox { inbox = yes location = maildir:/home/vmail/%u/mail prefix = separator = / type = private } passdb { driver = ldap args = /etc/dovecot/dovecot-ldap-passdb.conf.ext } userdb { driver = ldap args = /etc/dovecot/dovecot-ldap-userdb.conf.ext } -- dovecot-ldap-passdb.conf.ext -- hosts = localhost auth_bind = yes auth_bind_userdn = cn=%u,cn=Users,dc=gsg,dc=local ldap_version = 3 base = cn=Users,dc=gsg,dc=local pass_filter = ((objectClass=person)(cn=%u)(mail=*)) -- dovecot-ldap-userdb.conf.ext -- hosts = localhost dn = cn=ldap,cn=Users,dc=gsg,dc=local dnpass = [password] ldap_version = 3 base = cn=Users,dc=gsg,dc=local user_attrs = =uid=999,=gid=999,=home=/home/vmail/%u,=mail=/home/vmail/%u/mail,=master_user=%u user_filter = ((objectClass=person)(cn=%u)(mail=*)) # Attributes and filter to get a list of all users iterate_attrs = cn=user iterate_filter = (objectClass=person) -- De : mourik jan heupink Envoyé : 24/05/2013 21:33 À : users@sogo.nu Objet : Re: [SOGo] dovecot problem with sogo! Perhaps this will help: http://wiki2.dovecot.org/UserIds In my config, with virtual users, it is set to vmail MJ On 05/24/2013 09:24 PM, MyName IsLive wrote: like i configured dovecot + sogo and samba4 configuration you think mail_uid will solve the problem ? What should mail_uid set to ? Date: Fri, 24 May 2013 13:32:43 -0400 From: jr...@inverse.ca To: users@sogo.nu Subject: Re: [SOGo] dovecot problem with sogo! Hi, On 13-05-24 11:55 AM, MyName IsLive wrote: 2013-05-23 10:37:17 imap-login: Info: Login: user=majidfazel, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11924, secured 2013-05-23 10:37:17 imap(majidfazel): Error: user majidfazel: Couldn't drop privileges: User is missing UID (see mail_uid setting) 2013-05-23 10:37:17 imap(majidfazel): Error: Internal error occurred. Refer to server log for more information. Dovecot is misconfigured, you'll need to set mail_uid as the erreor message says. -- users@sogo.nu https://inverse.ca
RE: [SOGo] dovecot problem with sogo!
after playing a bit with parameters and samba config here i am when im trying to loging to samba via dovecot this is dovecot.message:2013-05-27 16:59:04 imap-login: Info: Login: user=janedoe, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6369, secured2013-05-27 16:59:04 imap(janedoe): Error: user janedoe: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/janedoe) failed: Permission denied (euid=32(unknown) egid=512(unknown) missing +w perm: /var/mail, dir owned by 5000:5000 mode=0775)2013-05-27 16:59:04 imap(janedoe): Error: Invalid user settings. Refer to server log for more information.2013-05-27 17:02:14 imap-login: Info: Login: user=majidfazel, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6381, secured2013-05-27 17:02:14 imap(majidfazel): Error: user majidfazel: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/var/mail/majidfazel) failed: Permission denied (euid=323(unknown) egid=512(unknown) missing +w perm: /var/mail, dir owned by 5000:5000 mode=0775)2013-05-27 17:02:14 imap(majidfazel): Error: Invalid user settings. Refer to server log for more information. thanks From: mynameisl...@outlook.com To: users@sogo.nu Date: Mon, 27 May 2013 09:30:49 + Subject: RE: [SOGo] dovecot problem with sogo! Hi, i add mail_uid to 5000 and once to vmail restart dovecot still same problem!i even add acl:read = false and acl:search = false to my smb.conf but still cannot login in from dovecot! Date: Sat, 25 May 2013 12:57:20 +0200 From: ac...@ag-web.biz To: users@sogo.nu Subject: Re: [SOGo] dovecot problem with sogo! Am 25.05.2013 09:20, schrieb MyName IsLive: Based on my config as i used pam and ldap(local.conf) do i need to use winbind and nsswitch for authenticating with ad? Looking at your config you do not need pam and likewise winbind/nsswitch if you only want do use your samba users with dovecot. It seems samba4 does not return an uidNumber. You can test that if you run kinit [user] ldapsearch cn=[user] and look for uidNumber in the output. Maybe adding acl:read=false to your smb.conf will help you to get that number returned, it was neccessary with earlier versions of samba4. On my side i use different ldap profiles for passdb and userdb lookups and i use one system user (vmail:999) for all mails which makes it easier to handle shared folders later because the access rights can be configured only via imap acl's. Also I hardcoded all the home and mail path's in my config. but anyway here are the relevant parts. dovecot.conf -- mail_home = /home/vmail/%u mail_location = maildir:/home/vmail/%u/mail mail_uid = 999 mail_gid = 999 first_valid_uid = 999 first_valid_gid = 999 namespace inbox { inbox = yes location = maildir:/home/vmail/%u/mail prefix = separator = / type = private } passdb { driver = ldap args = /etc/dovecot/dovecot-ldap-passdb.conf.ext } userdb { driver = ldap args = /etc/dovecot/dovecot-ldap-userdb.conf.ext } -- dovecot-ldap-passdb.conf.ext -- hosts = localhost auth_bind = yes auth_bind_userdn = cn=%u,cn=Users,dc=gsg,dc=local ldap_version = 3 base = cn=Users,dc=gsg,dc=local pass_filter = ((objectClass=person)(cn=%u)(mail=*)) -- dovecot-ldap-userdb.conf.ext -- hosts = localhost dn = cn=ldap,cn=Users,dc=gsg,dc=local dnpass = [password] ldap_version = 3 base = cn=Users,dc=gsg,dc=local user_attrs = =uid=999,=gid=999,=home=/home/vmail/%u,=mail=/home/vmail/%u/mail,=master_user=%u user_filter = ((objectClass=person)(cn=%u)(mail=*)) # Attributes and filter to get a list of all users iterate_attrs = cn=user iterate_filter = (objectClass=person) -- De : mourik jan heupink Envoyé : 24/05/2013 21:33 À : users@sogo.nu Objet : Re: [SOGo] dovecot problem with sogo! Perhaps this will help: http://wiki2.dovecot.org/UserIds In my config, with virtual users, it is set to vmail MJ On 05/24/2013 09:24 PM, MyName IsLive wrote: like i
Re: [SOGo] dovecot problem with sogo!
Am 25.05.2013 09:20, schrieb MyName IsLive: Based on my config as i used pam and ldap(local.conf) do i need to use winbind and nsswitch for authenticating with ad? Looking at your config you do not need pam and likewise winbind/nsswitch if you only want do use your samba users with dovecot. It seems samba4 does not return an uidNumber. You can test that if you run kinit [user] ldapsearch cn=[user] and look for uidNumber in the output. Maybe adding acl:read=false to your smb.conf will help you to get that number returned, it was neccessary with earlier versions of samba4. On my side i use different ldap profiles for passdb and userdb lookups and i use one system user (vmail:999) for all mails which makes it easier to handle shared folders later because the access rights can be configured only via imap acl's. Also I hardcoded all the home and mail path's in my config. but anyway here are the relevant parts. dovecot.conf -- mail_home = /home/vmail/%u mail_location = maildir:/home/vmail/%u/mail mail_uid = 999 mail_gid = 999 first_valid_uid = 999 first_valid_gid = 999 namespace inbox { inbox = yes location = maildir:/home/vmail/%u/mail prefix = separator = / type = private } passdb { driver = ldap args = /etc/dovecot/dovecot-ldap-passdb.conf.ext } userdb { driver = ldap args = /etc/dovecot/dovecot-ldap-userdb.conf.ext } -- dovecot-ldap-passdb.conf.ext -- hosts = localhost auth_bind = yes auth_bind_userdn = cn=%u,cn=Users,dc=gsg,dc=local ldap_version = 3 base = cn=Users,dc=gsg,dc=local pass_filter = ((objectClass=person)(cn=%u)(mail=*)) -- dovecot-ldap-userdb.conf.ext -- hosts = localhost dn = cn=ldap,cn=Users,dc=gsg,dc=local dnpass = [password] ldap_version = 3 base = cn=Users,dc=gsg,dc=local user_attrs = =uid=999,=gid=999,=home=/home/vmail/%u,=mail=/home/vmail/%u/mail,=master_user=%u user_filter = ((objectClass=person)(cn=%u)(mail=*)) # Attributes and filter to get a list of all users iterate_attrs = cn=user iterate_filter = (objectClass=person) -- De : mourik jan heupink Envoyé : 24/05/2013 21:33 À : users@sogo.nu Objet : Re: [SOGo] dovecot problem with sogo! Perhaps this will help: http://wiki2.dovecot.org/UserIds In my config, with virtual users, it is set to vmail MJ On 05/24/2013 09:24 PM, MyName IsLive wrote: like i configured dovecot + sogo and samba4 configuration you think mail_uid will solve the problem ? What should mail_uid set to ? Date: Fri, 24 May 2013 13:32:43 -0400 From: jr...@inverse.ca To: users@sogo.nu Subject: Re: [SOGo] dovecot problem with sogo! Hi, On 13-05-24 11:55 AM, MyName IsLive wrote: 2013-05-23 10:37:17 imap-login: Info: Login: user=majidfazel, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11924, secured 2013-05-23 10:37:17 imap(majidfazel): Error: user majidfazel: Couldn't drop privileges: User is missing UID (see mail_uid setting) 2013-05-23 10:37:17 imap(majidfazel): Error: Internal error occurred. Refer to server log for more information. Dovecot is misconfigured, you'll need to set mail_uid as the erreor message says. -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] dovecot problem with sogo!
Hi, On 13-05-24 11:55 AM, MyName IsLive wrote: 2013-05-23 10:37:17 imap-login: Info: Login: user=majidfazel, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11924, secured 2013-05-23 10:37:17 imap(majidfazel): Error: user majidfazel: Couldn't drop privileges: User is missing UID (see mail_uid setting) 2013-05-23 10:37:17 imap(majidfazel): Error: Internal error occurred. Refer to server log for more information. Dovecot is misconfigured, you'll need to set mail_uid as the erreor message says. -- users@sogo.nu https://inverse.ca/sogo/lists
RE: [SOGo] dovecot problem with sogo!
like i configured dovecot + sogo and samba4 configuration you think mail_uid will solve the problem ? What should mail_uid set to ? Date: Fri, 24 May 2013 13:32:43 -0400 From: jr...@inverse.ca To: users@sogo.nu Subject: Re: [SOGo] dovecot problem with sogo! Hi, On 13-05-24 11:55 AM, MyName IsLive wrote: 2013-05-23 10:37:17 imap-login: Info: Login: user=majidfazel, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11924, secured 2013-05-23 10:37:17 imap(majidfazel): Error: user majidfazel: Couldn't drop privileges: User is missing UID (see mail_uid setting) 2013-05-23 10:37:17 imap(majidfazel): Error: Internal error occurred. Refer to server log for more information. Dovecot is misconfigured, you'll need to set mail_uid as the erreor message says. -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] dovecot problem with sogo!
Perhaps this will help: http://wiki2.dovecot.org/UserIds In my config, with virtual users, it is set to vmail MJ On 05/24/2013 09:24 PM, MyName IsLive wrote: like i configured dovecot + sogo and samba4 configuration you think mail_uid will solve the problem ? What should mail_uid set to ? Date: Fri, 24 May 2013 13:32:43 -0400 From: jr...@inverse.ca To: users@sogo.nu Subject: Re: [SOGo] dovecot problem with sogo! Hi, On 13-05-24 11:55 AM, MyName IsLive wrote: 2013-05-23 10:37:17 imap-login: Info: Login: user=majidfazel, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11924, secured 2013-05-23 10:37:17 imap(majidfazel): Error: user majidfazel: Couldn't drop privileges: User is missing UID (see mail_uid setting) 2013-05-23 10:37:17 imap(majidfazel): Error: Internal error occurred. Refer to server log for more information. Dovecot is misconfigured, you'll need to set mail_uid as the erreor message says. -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists