Re: [SOGo] Could not connect IMAP4

2014-04-10 Thread Henry Verdonschot

heupink schreef op 9-4-2014 13:53:

Hi Henry,


primaryConnectToAddress:]): couldn't setup SSL connection on socket



I can connect to the server using Thunderbird IMAP

I'm guessing your mean Thunderbird with imapS, above..?

Perhaps it's an idea to test without SSL/TLS, and complicate things (add SSL 
etc) once plain imap works.

Goodluck!

MJ


I disabled SSL/TLS on the server and set SOGoSMTPServer = mail.procura.nl;
Looking at the settings for my IMAP Account in SOGo it says
Servername mail.procura.nl, port 143, Encryption None

When I go to the e-mail in SOGo I get the following message:
Wrong gateway!
The proxy server received an invalid answer
The proxy server could not handle the request GET /SOGo/so/henry/Mail/view.
Reason: Error reading from remote server
Error 502

The sogod.log says:
46.144.236.233 - - [10/Apr/2014:12:27:59 GMT] "GET /SOGo/so/henry/Mail 
HTTP/1.1" 302 0/0 0.002 - - 0
2014-04-10 12:27:59.689 sogod[11317] WARNING: IMAP4 connection pooling is 
disabled!
2014-04-10 12:27:59.902 sogod[11317] Note(NGImap4Connection): using '/' as the 
IMAP4 folder separator.
EXCEPTION:  NAME:NSInvalidArgumentException 
REASON:[GSMutableString -rangeOfString:options:range:] nil string argument INFO:(null)
Apr 10 12:28:00 sogod [11316]: [ERROR] <0x0x7f5b05952b28[WOWatchDog]> No child 
available to handle incoming request!
Apr 10 12:28:00 sogod [11316]: <0x0x7f5b0582b838[WOWatchDogChild]> child 11317 
exited
Apr 10 12:28:00 sogod [11316]: <0x0x7f5b0582b838[WOWatchDogChild]>  (terminated 
due to signal 6)
Apr 10 12:28:00 sogod [11316]: <0x0x7f5b05952b28[WOWatchDog]> child spawned 
with pid 11389
2014-04-10 12:28:00.646 sogod[11389] Note: Using UTF-8 as URL encoding in 
NGExtensions.
Apr 10 12:28:00 sogod [11389]: <0x0x7f5b05a9d5a8[SOGoCache]> Cache cleanup 
interval set every 300.00 seconds
Apr 10 12:28:00 sogod [11389]: <0x0x7f5b05a9d5a8[SOGoCache]> Using host(s) 
'localhost' as server(s)
2014-04-10 12:28:00.649 sogod[11389] Note(SoObject): SoDebugKeyLookup is 
enabled!
2014-04-10 12:28:00.649 sogod[11389] Note(SoObject): SoDebugBaseURL is enabled!
2014-04-10 12:28:00.649 sogod[11389] Note(SoObject): relative base URLs are 
enabled.
2014-04-10 12:28:00.665 sogod[11389] WOxElemBuilder: could not locate builders: 
WOxExtElemBuilder,WOxExtElemBuilder
2014-04-10 12:28:00.689 sogod[11389] WARNING: IMAP4 connection pooling is 
disabled!
2014-04-10 12:28:00.898 sogod[11389] Note(NGImap4Connection): using '/' as the 
IMAP4 folder separator.
EXCEPTION:  NAME:NSInvalidArgumentException 
REASON:[GSMutableString -rangeOfString:options:range:] nil string argument INFO:(null)
Apr 10 12:28:01 sogod [11316]: [ERROR] <0x0x7f5b05952b28[WOWatchDog]> No child 
available to handle incoming request!
Apr 10 12:28:01 sogod [11316]: <0x0x7f5b0582b838[WOWatchDogChild]> child 11389 
exited
Apr 10 12:28:01 sogod [11316]: <0x0x7f5b0582b838[WOWatchDogChild]>  (terminated 
due to signal 6)
Apr 10 12:28:01 sogod [11316]: <0x0x7f5b0582b838[WOWatchDogChild]> avoiding to 
respawn child before 2014-04-10 12:28:05 +0200
Apr 10 12:28:02 sogod [11316]: [ERROR] <0x0x7f5b05952b28[WOWatchDog]> No child 
available to handle incoming request!
Apr 10 12:28:04 sogod [11316]: [ERROR] <0x0x7f5b05952b28[WOWatchDog]> No child 
available to handle incoming request!

And the apache error log:
[error] [client 46.144.236.233] (20014)Internal error: proxy: error reading 
status line from remote server 127.0.0.1:2, referer: 
http://sogo.procura.nl/SOGo/so/henry/Calendar/view
[client 46.144.236.233] proxy: Error reading from remote server returned by 
/SOGo/so/henry/Mail/view, referer: 
http://sogo.procura.nl/SOGo/so/henry/Calendar/view

I can see in the mailserver log that the login succeeds but is closed right 
away.

--
Kind Regards,
Henry

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Could not connect IMAP4

2014-04-09 Thread Helge Hess
On Apr 9, 2014, at 2:40 PM, Christian Mack  
wrote:
> < .. >
>>  SOGoIMAPServer = "imaps://mail.procura.nl";
> < cut >
> 
> Here is your fault.
> You try to connect with SSL on port 143.

? His logs say:
>  = <0x0x7f94cefcfe78[NGImap4Client]: login=u...@zzz.nl(pwd)
> address=<0x0x7f94cf08a8f8[NGInternetSocketAddress]: host=mail.ZZZ.nl
> port=993>>

Notice the port=993.

> Change it to
> SOGoIMAPServer = "imaps://localhost:993";

993 is the default port of the imaps URL, it's not necessary to set that 
explicitly.

hh

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Could not connect IMAP4

2014-04-09 Thread Christian Mack
Am 2014-04-09 08:45, schrieb Henry Verdonschot:
> Christian Mack schreef op 8-4-2014 14:03:
>> Am 2014-04-07 13:27, schrieb s...@procura.nl:
>>> I'm trying to connect SOGo to our (Mailtraq) mailserver but I get the
>>> following response:
>>>
>>>= <0x0x7f94cefcfe78[NGImap4Client]: login=u...@zzz.nl(pwd)
>>> address=<0x0x7f94cf08a8f8[NGInternetSocketAddress]: host=mail.ZZZ.nl
>>> port=993>>
>>> Apr 07 12:39:59 sogod [21827]: <0xCEF48268[SOGoMailAccount]:0>
>>> renewing imap4
>>> password
>>> 2014-04-07 12:40:01.581 sogod[21827] ERROR(-[NGActiveSSLSocket
>>> primaryConnectToAddress:]): couldn't setup SSL connection on socket
>>> (error:0005:lib(0):func(0):DH lib)...
>>> Apr 07 12:40:01 sogod [21827]: [ERROR]
>>> <0x0x7f94cf1874d8[NGImap4ConnectionManager]> IMAP4 login failed:
>>>host=mail.ZZZ.nl, user=UUU, pwd=yes
>>>url=imaps://u...@mail.zzz.nl/
>>>base=(null)
>>>base-class=(null))
>>>
>>> I can connect to the server using Thunderbird IMAP
>>>
>>> Any suggestions what I'm doing wrong here?
>>>
>>
>> Is there SSL transport encryption enabled at that port?
>> How does your SOGo config look like?
>>
>> Kind regards,
>> Christian Mack
>>
> Yes, the settings for this service are to use Implicit mode (SSL/TLS,
> IMAP4S). The config is as follows:
> 
< .. >
>   SOGoIMAPServer = "imaps://mail.procura.nl";
< cut >

Here is your fault.
You try to connect with SSL on port 143.
Change it to
SOGoIMAPServer = "imaps://localhost:993";


Kind regards,
Christian Mack

-- 
Christian Mack
Abteilung Basisdienste
KIM IT-Services
Universität Konstanz



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [SOGo] Could not connect IMAP4

2014-04-09 Thread heupink

Hi Henry,


primaryConnectToAddress:]): couldn't setup SSL connection on socket



I can connect to the server using Thunderbird IMAP

I'm guessing your mean Thunderbird with imapS, above..?

Perhaps it's an idea to test without SSL/TLS, and complicate things (add 
SSL etc) once plain imap works.


Goodluck!

MJ
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Could not connect IMAP4

2014-04-09 Thread Henry Verdonschot

Christian Mack schreef op 8-4-2014 14:03:

Am 2014-04-07 13:27, schrieb s...@procura.nl:

I'm trying to connect SOGo to our (Mailtraq) mailserver but I get the
following response:

   = <0x0x7f94cefcfe78[NGImap4Client]: login=u...@zzz.nl(pwd)
address=<0x0x7f94cf08a8f8[NGInternetSocketAddress]: host=mail.ZZZ.nl
port=993>>
Apr 07 12:39:59 sogod [21827]: <0xCEF48268[SOGoMailAccount]:0> renewing imap4
password
2014-04-07 12:40:01.581 sogod[21827] ERROR(-[NGActiveSSLSocket
primaryConnectToAddress:]): couldn't setup SSL connection on socket
(error:0005:lib(0):func(0):DH lib)...
Apr 07 12:40:01 sogod [21827]: [ERROR]
<0x0x7f94cf1874d8[NGImap4ConnectionManager]> IMAP4 login failed:
   host=mail.ZZZ.nl, user=UUU, pwd=yes
   url=imaps://u...@mail.zzz.nl/
   base=(null)
   base-class=(null))

I can connect to the server using Thunderbird IMAP

Any suggestions what I'm doing wrong here?



Is there SSL transport encryption enabled at that port?
How does your SOGo config look like?

Kind regards,
Christian Mack


Yes, the settings for this service are to use Implicit mode (SSL/TLS, IMAP4S). 
The config is as follows:

  SOGoTimeZone = Europe/Amsterdam;
  SOGoMailDomain = procura.nl;
  SOGoAppointmentSendEMailNotifications = YES;
  SOGoCalendarDefaultRoles = (
PublicViewer,
ConfidentialDAndTViewer
);
  SOGoLanguage = Dutch;
  SOGoMailingMechanism = smtp;
  SOGoSMTPServer = mail.procura.nl;
  SOGoSMTPAuthenticationType = PLAIN;
  SOGoForceExternalLoginWithEmail = NO;
  SOGoDraftsFolderName = Drafts;
  SOGoSentFolderName = Sent;
  SOGoTrashFolderName = Trash;
  SOGoIMAPServer = "imaps://mail.procura.nl";
  NGImap4ConnectionStringSeparator = "/";

Kind regards,
Henry Verdonschot


--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Could not connect IMAP4

2014-04-08 Thread Christian Mack
Am 2014-04-07 13:27, schrieb s...@procura.nl:
> I'm trying to connect SOGo to our (Mailtraq) mailserver but I get the
> following response:
> 
>   = <0x0x7f94cefcfe78[NGImap4Client]: login=u...@zzz.nl(pwd)
> address=<0x0x7f94cf08a8f8[NGInternetSocketAddress]: host=mail.ZZZ.nl
> port=993>>
> Apr 07 12:39:59 sogod [21827]: <0xCEF48268[SOGoMailAccount]:0> renewing imap4
> password
> 2014-04-07 12:40:01.581 sogod[21827] ERROR(-[NGActiveSSLSocket
> primaryConnectToAddress:]): couldn't setup SSL connection on socket
> (error:0005:lib(0):func(0):DH lib)...
> Apr 07 12:40:01 sogod [21827]: [ERROR]
> <0x0x7f94cf1874d8[NGImap4ConnectionManager]> IMAP4 login failed:
>   host=mail.ZZZ.nl, user=UUU, pwd=yes
>   url=imaps://u...@mail.zzz.nl/
>   base=(null)
>   base-class=(null))
> 
> I can connect to the server using Thunderbird IMAP
> 
> Any suggestions what I'm doing wrong here?
> 

Is there SSL transport encryption enabled at that port?
How does your SOGo config look like?

Kind regards,
Christian Mack

-- 
Christian Mack
Abteilung Basisdienste
KIM IT-Services
Universität Konstanz



smime.p7s
Description: S/MIME Cryptographic Signature


[SOGo] Could not connect IMAP4

2014-04-07 Thread sogo
I'm trying to connect SOGo to our (Mailtraq) mailserver but I get the
following response:

  = <0x0x7f94cefcfe78[NGImap4Client]: login=u...@zzz.nl(pwd)
address=<0x0x7f94cf08a8f8[NGInternetSocketAddress]: host=mail.ZZZ.nl
port=993>>
Apr 07 12:39:59 sogod [21827]: <0xCEF48268[SOGoMailAccount]:0> renewing imap4
password
2014-04-07 12:40:01.581 sogod[21827] ERROR(-[NGActiveSSLSocket
primaryConnectToAddress:]): couldn't setup SSL connection on socket
(error:0005:lib(0):func(0):DH lib)...
Apr 07 12:40:01 sogod [21827]: [ERROR]
<0x0x7f94cf1874d8[NGImap4ConnectionManager]> IMAP4 login failed:
  host=mail.ZZZ.nl, user=UUU, pwd=yes
  url=imaps://u...@mail.zzz.nl/
  base=(null)
  base-class=(null))

I can connect to the server using Thunderbird IMAP

Any suggestions what I'm doing wrong here?

Regards,
Henry
-- 
users@sogo.nu
https://inverse.ca/sogo/lists