Re: Sorry, another faq

2015-06-14 Thread Tom Hendrikx
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 12-06-15 13:37, Martin S wrote:
 I've installed a mailserver according to these instructions: 
 http://www.server-world.info/en/note?os=CentOS_7p=httpdf=13 When
 I try to login to the server through Roundcube webmail I get 
 Connection to storage server failed.
 
 So checking on this
 
 [12-Jun-2015 11:28:53 +]: 6jap13r2 IMAP Error: Login failed
 for martin from 83.251.209.249. Could not connect to
 ssl://myserver:993: Permission denied in 
 /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on
 line 198 (POST /roundcubemail/?
 

If this actually is Centos 7, selinux may also be the culprit. Keep an
eye on audit logging when testing too.

 /etc/roundcubemail/config.inc.php
 
 Has the following: $config['default_host'] =
 'ssl://mail.myserver.tld'; [address obfuscated] 
 $config['default_port'] = 993;
 
 as I understand should be correct.
 
 I've been looking at various posts on the net that says the problem
 is a permission on dovecot, but I fail to find anything to how to
 fix this as it looks right to me.
 
 Any suggestions?
 
 /Martin S
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCAAGBQJVfcC2AAoJEJPfMZ19VO/1dIgP/iSaRHDt/lPaEh0YG1m/gj5k
a6PGbXR+3XM+8KPBw6bLqYFleGEDNVv0D3fbdBeJ5NvDQ1fxFx8xyHsFk4iY8PAK
1xU0A3h3BgnPzTvNT51mlC8eOel7gCZZZcDXFzPEVQ02v61ypTLmcxdc3ThH7A2X
luqfLvTCKt4FY5T5vsc/zBSbzvBgl9T+9oqL2Ei3s5qL5PrFAx74lyzFW+HDbEP1
0/yIsJvb36n3Yyj07+6pXqhhCbQDy6ZBYSOPJ7rX+uoD/AMCoTi8iIEprnDa77RN
RU1K5bO0sj4AGbIR0cPPbbxaLTtlvfXnH8G5G8Ur/6XRUY6rtytTVjR4P/7jGVlV
TDOToF2ju9YIn5lEdEw8Wck8J1SDgDbnkOxPazikxH3h9zs4tejlQjzePnmmywZf
EmpYFsYNuCDdoAJWD6hNXD61MgQRNBZKIU42VcjJ/LiwMMRHc5uEVNBdCOupQRJ3
YVSSzydO7wN4yqly7OI4PqtCgRtqMp8JqPhlxS8Ks29Gqr1CXMMG20WLB1t0SaIe
CPzcJMH+UYFgg0vNQcozCB8NrmgPwcJpwdFRki35bZvVhcAkZBfE48bBsmv9cmbH
cXt3lV6mvC3oloiGTclvpRESgLN5h2vPtRNNO/Kfsj4SRt5RBfjSt/SlhWAEBkFv
VfrOxi3oku4vtic7gnoH
=z2oM
-END PGP SIGNATURE-


Sorry, another faq

2015-06-12 Thread Martin S
I've installed a mailserver according to these instructions:
http://www.server-world.info/en/note?os=CentOS_7p=httpdf=13
When I try to login to the server through Roundcube webmail I get
Connection to storage server failed.

So checking on this

[12-Jun-2015 11:28:53 +]: 6jap13r2 IMAP Error: Login failed for
martin from 83.251.209.249. Could not connect to ssl://myserver:993:
Permission denied in
/usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on line
198 (POST /roundcubemail/?

/etc/roundcubemail/config.inc.php

Has the following:
$config['default_host'] = 'ssl://mail.myserver.tld'; [address obfuscated]
$config['default_port'] = 993;

as I understand should be correct.

I've been looking at various posts on the net that says the problem is
a permission on dovecot, but I fail to find anything to how to fix
this as it looks right to me.

Any suggestions?

/Martin S

-- 
Regards,

Martin S


Re: Sorry, another faq

2015-06-12 Thread b-dovecot . org
On Fri, Jun 12, 2015 at 01:37:19PM +0200, Martin S wrote:
 I've installed a mailserver according to these instructions:
 http://www.server-world.info/en/note?os=CentOS_7p=httpdf=13
 When I try to login to the server through Roundcube webmail I get
 Connection to storage server failed.
 
 So checking on this
 
 [12-Jun-2015 11:28:53 +]: 6jap13r2 IMAP Error: Login failed for
 martin from 83.251.209.249. Could not connect to ssl://myserver:993:
 Permission denied in
 /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on line
 198 (POST /roundcubemail/?
 
 /etc/roundcubemail/config.inc.php
 
 Has the following:
 $config['default_host'] = 'ssl://mail.myserver.tld'; [address obfuscated]
 $config['default_port'] = 993;
 
 as I understand should be correct.
 
 I've been looking at various posts on the net that says the problem is
 a permission on dovecot, but I fail to find anything to how to fix
 this as it looks right to me.
 
 Any suggestions?


What do the dovecot logs say?
Can you connect from the roundcube system (via nc/telnet) to mail.myserver.tld 
port 993?

Did you use the right roundcube settings for IMAP login?
$rcmail_config['imap_auth_type'] 

Is your certificate valid?

B


Re: Sorry, another faq

2015-06-12 Thread Daniel Tröder
Am 12.06.2015 um 13:37 schrieb Martin S:
 I've installed a mailserver according to these instructions:
 http://www.server-world.info/en/note?os=CentOS_7p=httpdf=13
 When I try to login to the server through Roundcube webmail I get
 Connection to storage server failed.
 
 So checking on this
 
 [12-Jun-2015 11:28:53 +]: 6jap13r2 IMAP Error: Login failed for
 martin from 83.251.209.249. Could not connect to ssl://myserver:993:
 Permission denied in
 /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on line
 198 (POST /roundcubemail/?
 
 /etc/roundcubemail/config.inc.php
 
 Has the following:
 $config['default_host'] = 'ssl://mail.myserver.tld'; [address obfuscated]
 $config['default_port'] = 993;
 
 as I understand should be correct.
 
 I've been looking at various posts on the net that says the problem is
 a permission on dovecot, but I fail to find anything to how to fix
 this as it looks right to me.
 
 Any suggestions?
 
 /Martin S
 
* Test to connect to the IMAP server with telnet first:
# telnet mail.myserver.tld 993
If you cannot connect there is a network/firewall problem.

If you can connect →
* Switch on all logging options in /etc/dovecot/conf.d/10.-logging.conf
and follow the logfiles while trying with thunderbird/fetchmail/roundcube.



signature.asc
Description: OpenPGP digital signature


Re: Sorry, another faq

2015-06-12 Thread b-dovecot . org
On Fri, Jun 12, 2015 at 02:11:21PM +0100, Darac Marjal wrote:
 On Fri, Jun 12, 2015 at 03:01:17PM +0200, Daniel Tröder wrote:
  Am 12.06.2015 um 13:37 schrieb Martin S:
   
  * Test to connect to the IMAP server with telnet first:
  # telnet mail.myserver.tld 993
  If you cannot connect there is a network/firewall problem.
 
 That won't work, as port 993 is IMAPS. openssl s_client -connect
 mail.myserver.tld:993 should be considered an equivalent command.

This was meant as a simple check to see if the service was running/firewalled.
Not a full login routine.

B


Re: Sorry, another faq

2015-06-12 Thread Darac Marjal
On Fri, Jun 12, 2015 at 03:01:17PM +0200, Daniel Tröder wrote:
 Am 12.06.2015 um 13:37 schrieb Martin S:
  I've installed a mailserver according to these instructions:
  http://www.server-world.info/en/note?os=CentOS_7p=httpdf=13
  When I try to login to the server through Roundcube webmail I get
  Connection to storage server failed.
  
  So checking on this
  
  [12-Jun-2015 11:28:53 +]: 6jap13r2 IMAP Error: Login failed for
  martin from 83.251.209.249. Could not connect to ssl://myserver:993:
  Permission denied in
  /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on line
  198 (POST /roundcubemail/?
  
  /etc/roundcubemail/config.inc.php
  
  Has the following:
  $config['default_host'] = 'ssl://mail.myserver.tld'; [address obfuscated]
  $config['default_port'] = 993;
  
  as I understand should be correct.
  
  I've been looking at various posts on the net that says the problem is
  a permission on dovecot, but I fail to find anything to how to fix
  this as it looks right to me.
  
  Any suggestions?
  
  /Martin S
  
 * Test to connect to the IMAP server with telnet first:
 # telnet mail.myserver.tld 993
 If you cannot connect there is a network/firewall problem.

That won't work, as port 993 is IMAPS. openssl s_client -connect
mail.myserver.tld:993 should be considered an equivalent command.

 
 If you can connect →
 * Switch on all logging options in /etc/dovecot/conf.d/10.-logging.conf
 and follow the logfiles while trying with thunderbird/fetchmail/roundcube.
 



-- 
For more information, please reread.


signature.asc
Description: Digital signature


Re: Sorry, another faq

2015-06-12 Thread b-dovecot . org
On Fri, Jun 12, 2015 at 03:24:32PM +0200, Martin S wrote:
 I get
 
 openssl s_client -connect mail.myserver.tld:993
 connect: Connection refused
 connect:errno=111
 
 Both from a client laptop and on the roundcube server.
 Both roundcube and dovecot are installed on the same server.

That should give you a good idea about what's wrong with your setup.


http://lmgtfy.com/?q=dovecot+ssl+setup#

B