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=300002(<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=3000023(<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: [email protected]
To: [email protected]
Date: Mon, 27 May 2013 09:30:49 +0000
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: [email protected]
To: [email protected]
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

      À :
      [email protected]

      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: [email protected]

              >  > To: [email protected]

              >  > 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.

              >  > --

              >  > [email protected]

              >  > https://inverse.ca/sogo/lists

              -- 

              [email protected]

              https://inverse.ca/sogo/lists

            
          
    
    
                                                                                
  -- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to