Am 05.09.2012 17:30, schrieb Marc Patermann:
> Maik,
>
> Maik Derstappen schrieb (05.09.2012 15:48 Uhr):
>
>> Sogo it self is running but, i wonder how the authentication with imap
>> works.
>> I have a setup with an Postgresql and a sogo_users table for
>> authentification.
>> I had set the SOGoForceIMAPLoginWithEmail flag to YES, to use the email
>> to login.
> "Parameter used to specify if, when logging in to
> the IMAP server, the primary email address of the
> user will be used instead of the username."
>
>> But which passwort is used to login into the Imap-Server?
>> Or must the login data come from the same database as the imap-server
>> use?
> When you log in to SOGo, you use a password. This is checked against
> your authentication source.
> With SOGoForceIMAPLoginWithEmail set the mail address from your user
> data set is used to log in to your IMAP server, not the SOGo user
> name. That's all. The password is still the same.
> With IMAPLoginFieldName you can set any other field in you
> authentication source for yor IMAP user name.
>
Hi,

i have still a problem to connect to my IMAP-Server.
I can login with my user name and password and the calendar works fine,
but when sogo tries to connect to my IMAP-Server it fails.
Even if i setup another IMAP account for a user inside SOGo it does not
work.
The account data are the same in SOGo and my IMAP accounts.
I also tried tls and ssl, but both doesn't work.
The seperator is now set to ".", because my dovecot use this, but the
default of "/" was also not working.
Any ideas how to fix that?


Sep 11 10:45:40 sogod [2302]: [ERROR]
<0x0x8c8e998[NGImap4ConnectionManager]> IMAP4 login failed:
  host=mail.inqbus.de, [email protected], pwd=yes
  url=imaps://sogo%[email protected]/
  base=(nil)
  base-class=(nil))
  = <0x0x8c70d08[NGImap4Client]: [email protected](pwd)
socket=<NGActiveSSLSocket[0x0x8b84048]: mode=rw
address=<0x0x8bc30f0[NGInternetSocketAddress]: host=mail.inqbus.de
port=33237> connectedTo=<0x0x8dbed88[NGInternetSocketAddress]:
host=mail.inqbus.de port=993>>>
Sep 11 10:45:40 sogod [2302]: <0x08B63820[SOGoMailAccount]:0> renewing
imap4 password
Sep 11 10:45:44 sogod [2302]: [ERROR]
<0x0x8c8e998[NGImap4ConnectionManager]> IMAP4 login failed:
  host=mail.inqbus.de, [email protected], pwd=yes
  url=imaps://sogo%[email protected]/
  base=(nil)
  base-class=(nil))
  = <0x0x8d3e598[NGImap4Client]: [email protected](pwd)
socket=<NGActiveSSLSocket[0x0x8c971f0]: mode=rw
address=<0x0x8e17bd0[NGInternetSocketAddress]: host=mail.inqbus.de
port=33238> connectedTo=<0x0x86eb348[NGInternetSocketAddress]:
host=mail.inqbus.de port=993>>>
Sep 11 10:45:44 sogod [2302]: [ERROR] <0x08B63820[SOGoMailAccount]:0>
Could not connect IMAP4


my config looks like this:

sogo@debian:~$ cat GNUstep/Defaults/.GNUstepDefaults
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//GNUstep//DTD plist 0.9//EN"
"http://www.gnustep.org/plist-0_9.xml";>
<plist version="0.9">
<dict>
    <key>NSGlobalDomain</key>
    <dict>
    </dict>
    <key>sogod</key>
    <dict>
    <key>NGImap4ConnectionStringSeparator</key>
    <string>.</string>
    <key>OCSEMailAlarmsFolderURL</key>

<string>postgresql://sogo:[email protected]:5432/sogo/sogo_alarms_folder</string>
    <key>OCSFolderInfoURL</key>

<string>postgresql://sogo:[email protected]:5432/sogo/sogo_folder_info</string>
    <key>OCSSessionsFolderURL</key>

<string>postgresql://sogo:[email protected]:5432/sogo/sogo_sessions_folder</string>
    <key>SOGoACLsSendEMailNotifications</key>
    <string>YES</string>
    <key>SOGoAppointmentSendEMailNotifications</key>
    <string>YES</string>
    <key>SOGoDraftsFolderName</key>
    <string>Drafts</string>
    <key>SOGoFoldersSendEMailNotifications</key>
    <string>YES</string>
    <key>SOGoForceIMAPLoginWithEmail</key>
    <string>YES</string>
    <key>SOGoIMAPServer</key>
    <string>imaps://mail.inqbus.de:993</string>
    <key>SOGoLanguage</key>
    <string>German</string>
    <key>SOGoMailAuxiliaryUserAccountsEnabled</key>
    <string>YES</string>
    <key>SOGoMailDomain</key>
    <string>inqbus.de</string>
    <key>SOGoProfileURL</key>

<string>postgresql://sogo:[email protected]:5432/sogo/sogo_user_profile</string>
    <key>SOGoSentFolderName</key>
    <string>Sent</string>
    <key>SOGoTimeZone</key>
    <string>Europe/Berlin</string>
    <key>SOGoTrashFolderName</key>
    <string>Trash</string>
    <key>SOGoUserSources</key>
    <array>
        <dict>
        <key>canAuthenticate</key>
        <string>YES</string>
        <key>id</key>
        <string>directory</string>
        <key>isAddressBook</key>
        <string>YES</string>
        <key>type</key>
        <string>sql</string>
        <key>userPasswordAlgorithm</key>
        <string>plain</string>
        <key>viewURL</key>

<string>postgresql://sogo:[email protected]:5432/sogo/sogo_users</string>
        </dict>
    </array>
    </dict>
</dict>
</plist>


kind regards,
Maik Derstappen

-- 
Maik Derstappen
Leipzig/Germany
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to