General discussion on installation and configuration of SOGo

Text archives Help


[SOGo] IMAP4 login failed . . .


Chronological Thread 
  • From: Steve Ankeny < >
  • To:
  • Subject: [SOGo] IMAP4 login failed . . .
  • Date: Mon, 29 Dec 2014 11:11:09 -0500


"new" installation - Postfix, Dovecot, Samba, SOGo, OpenChange

SOGo is pointed to the Samba user database for authentication . . .

  /* LDAP AD/Samba4 example */
  SOGoUserSources = (
    {
      type = ldap;
      CNFieldName = cn;
      UIDFieldName = sAMAccountName;
      baseDN = "CN=users,dc=smb-domain,dc=com";
      bindDN = " ";
      bindFields = (sAMAccountName, mail);
      bindPassword = xxPasswdxx;
      canAuthenticate = YES;
      displayName = "Public";
      hostname = ldap://127.0.0.1:389;
      filter = "mail = '*'";
      id = directory;
      isAddressBook = YES;
    }
  );


Postfix binds with " "

server_host = localhost
search_base = cn=users,dc=smb-domain,dc=com
query_filter = (mail=%s)
result_attribute = sAMAccountName
result_format = %s@virtual.domain.local
bind = yes
bind_dn =
bind_pw = xxPasswdxx
start_tls = no
version = 3


SOGo is logging in successfully, which tells me it's "authenticating" against Samba . . .

Dec 29 10:27:59 sogod [1964]: SOGoRootPage successful login from '192.168.121.179' for user 'steve' - expire = -1  grace = -1
192.168.121.179 - - [29/Dec/2014:10:27:59 GMT] "POST /SOGo/connect HTTP/1.1" 200 27/45 0.250 - - 968K
192.168.121.179 - - [29/Dec/2014:10:27:59 GMT] "GET /SOGo/so/steve HTTP/1.1" 302 0/0 0.006 - - 0
192.168.121.179 - - [29/Dec/2014:10:27:59 GMT] "GET /SOGo/so/steve/view HTTP/1.1" 302 0/0 0.008 - - 0
192.168.121.179 - - [29/Dec/2014:10:27:59 GMT] "GET /SOGo/so/steve/Mail HTTP/1.1" 302 0/0 0.006 - - 0
2014-12-29 10:27:59.524 sogod[1964] WARNING: IMAP4 connection pooling is disabled!
Dec 29 10:27:59 sogod [1964]: [ERROR] <0x0x7fcf476ddc68[NGImap4ConnectionManager]> IMAP4 login failed:
  host=127.0.0.1, user=steve, pwd=yes
  url="imap://steve@127.0.0.1:143/INBOX/
  base=(null)
  base-class=(null))
  = <0x0x7fcf476d9af8[NGImap4Client]: login=steve(pwd) address=<0x0x7fcf476d5938[NGInternetSocketAddress]: host=127.0.0.1 port=143>>
2014-12-29 10:27:59.616 sogod[1964] Note(NGImap4Connection): using '/' as the IMAP4 folder separator.
Dec 29 10:27:59 sogod [1964]: <0x476D5118[SOGoMailFolder]:folderINBOX> renewing imap4 password
Dec 29 10:28:29 sogod [1964]: [ERROR] <0x0x7fcf476ddc68[NGImap4ConnectionManager]> IMAP4 login failed:


querying Postfix gives me the following . . .

adam@sogo:~$ telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 sogo.meadorandco.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-sogo.smb-domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN


I am concerned about the following . . .

(1) IMAP4 connection pooling is disabled!

(2) IMAP4 login failed:

(3) no 250 AUTH when querying Postfix


Question: While SOGo uses the default "Administrator" account to bind to Samba's user database, should Postfix be binding to Samba with "Administrator" or SOGo with "sogo" (which also binds to MySQL)?


As an aside, I successfully ran "sogo-tool" to backup/restore user prefs, address books and calendars.





Archive powered by MHonArc 2.6.18.

Top of page