1 (edited by vishnuraju 2016-11-09 17:41:00)

Topic: login issue with sogo interface

Hi

I am trying to integrate Sogo with iRedmail, I did integrate Horde IMP 6, it is working fine, roundcube is working fine but somehow Sogo I am not able to do it.

I am able to get the usered logged in using LDAP, login is happening perfectly.

/ LDAP authentication example /
  SOGoUserSources = (
    {
      type = ldap;
      CNFieldName = cn;
      UIDFieldName = uid;
      IDFieldName = uid; // first field of the DN for direct binds
      bindFields = (uid, mail); // array of fields to use for indirect binds
      baseDN = "dc=host,dc=domain,dc=com";
      bindDN = "cn=vmailadmin,dc=host,dc=domain,dc=com";
      bindPassword = "EncryptedXXXXXXX";
      canAuthenticate = YES;
      displayName = "Shared Addresses";
      hostname = ldap://127.0.0.1:389;
      id = public;
      isAddressBook = YES;



I want to integrate Sogo due to IM facility available on the web client.

"error occurred during object publishing tried to access private object (0x0x7f3bb410e148, SoClass=SOGoMailAccounts)" 
while after login with  one user details in sogo  ,please help me ........
Note :- We are using dovcot2.0.18

Thanks in advance for the help!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: login issue with sogo interface

Your "SOGoUserSources" is incorrect. Please refer to our tutorial:
http://www.iredmail.org/docs/sogo-cento … nldap.html

3

Re: login issue with sogo interface

Thanks for your reply i have followed threw "http://www.iredmail.org/docs/sogo-cento … nldap.html" this link and corrected like this

SOGoUserSources = (
        {
            type = ldap;
            hostname = "ldap://127.0.0.1:389";
            baseDN = "o=domains,dc=domain,dc=securemailsystem,dc=com";
            //bindAsCurrentUser = YES;
            bindDN = "cn=vmailadmin,dc=domain,dc=securemailsystem,dc=com";
            bindPassword = "xxxxxx";
            filter = "objectClass=mailUser AND accountStatus=active AND enabledService=mail";
            scope = SUB;

            // The algorithm used for password encryption when changing
            // passwords without Password Policies enabled.
            // Possible values are: plain, crypt, md5-crypt, ssha.
            //userPasswordAlgorithm = ssha;

            IDFieldName = mail;
            bindFields = (mail);
            CNFieldName = cn;
            // value of UID field must be unique on whole server.
            UIDFieldName = mail;
            IMAPLoginFieldName = mail;
            SearchFieldNames = (cn, sn, displayName, telephoneNumber, mail, shadowAddress);
            canAuthenticate = YES;
            displayName = "Global Address Book";
            id = ldap_auth;
            isAddressBook = YES;
        }
    );


Still getting this error please check below log file

Nov 10 04:02:41 sogod [2385]: [ERROR] <0x0x7fc0b094e0d8[NGImap4ConnectionManager]> IMAP4 login failed:
  host=127.0.0.1, user=test1@domain.com, pwd=yes
  url=imap://test1%40domain.com@127.0.0.1/
  base=(null)
  base-class=(null))
  = <0x0x7fc0b09513a8[NGImap4Client]: login=test1@domain.com(pwd) socket=<NGActiveSocket[0x0x7fc0b0955778]: mode=rw address=<0x0x7fc0b0955818[NGInternetSocketAddress]: host=localhost port=56215> connectedTo=<0x0x7fc0b0953778[NGInternetSocketAddress]: host=127.0.0.1 port=143>>>
Nov 10 04:02:41 sogod [2385]: <0x7fc0b0949988[SOGoMailAccount]:0> renewing imap4 password
Nov 10 04:02:41 sogod [2386]: 103.228.221.230 "GET /SOGo/so/test1@domain.com/Calendar/alarmslist?browserTime=1478768553 HTTP/1.1" 200 63/0 3.213 - - 356K
Nov 10 04:02:47 sogod [2385]: [ERROR] <0x0x7fc0b094e0d8[NGImap4ConnectionManager]> IMAP4 login failed:
  host=127.0.0.1, user=test1@domain.com, pwd=yes
  url=imap://test1%40domain.com@127.0.0.1/
  base=(null)
  base-class=(null))
  = <0x0x7fc0b0963958[NGImap4Client]: login=test1@domain(pwd) socket=<NGActiveSocket[0x0x7fc0b0964098]: mode=rw address=<0x0x7fc0b0964138[NGInternetSocketAddress]: host=localhost port=56223> connectedTo=<0x0x7fc0b0963ae8[NGInternetSocketAddress]: host=127.0.0.1 port=143>>>
Nov 10 04:02:47 sogod [2385]: [ERROR] <0x7fc0b0949988[SOGoMailAccount]:0> Could not connect IMAP4
Nov 10 04:02:47 sogod [2385]: 103.228.221.230 "GET /SOGo/so/test1@domain.com/Mail/0/view HTTP/1.1" 200 17/0 8.724 - - 420K

Can you provide me a solution please .
Thanks in advance

4

Re: login issue with sogo interface

Any related log in Dovecot log file?
FYI: http://www.iredmail.org/docs/file.locat … ml#dovecot

5

Re: login issue with sogo interface

Thanks for the help.

I am able to login but not  able to see the maibox. here is the dovecot log  & I have attached screenshot

Nov 10 17:31:52 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<test@test.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, securedNov 10 17:31:52 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<test@test.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

6

Re: login issue with sogo interface

Please turn on debug mode in Dovecot and try again, extract FULL log related to your testing and paste here.

FYI: http://www.iredmail.org/docs/debug.dovecot.html