Roundcube Community Forum

 

RoundCube and dovecot imaps with socket

Started by henrixd, May 31, 2012, 05:28:46 AM

Previous topic - Next topic

henrixd

Hi

I havent seen this suggested in any of tutorials i've seen out there. But since roundcube uses fsockopen this works...

Dovecot2 configuration

#  inet_listener imaps {
#    port = 993
#    ssl = yes
#  }
unix_listener imaps {
      mode = 0666
}


RoundCube main.inc.conf:

$rcmail_config['default_host'] = 'unix:///var/run/dovecot/imaps';
$rcmail_config['default_port'] = -1;

oldschool


henrixd

#2
Lets share this here too..

This is part from my nginx.conf for roundcube. First deny everything and then start
giving permissions. It works perfectly for me. index.php is the only php script that
needs to handle. Rest is just static files.


        root   /usr/local/www/roundcube;

        include        fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

        ## Only allow these request methods
        if ($request_method !~ ^(GET|HEAD|POST)$ ) {
                return 444;
        }

        location / { deny all; }
        location = / { index  index.php; }

        location = /index.php {
               fastcgi_pass   unix:/var/run/spawn_fcgi.socket;
        }

        location /program/blank.gif {}
        location /program/blocked.gif {}

        location ~ ^/program/js/.*\.js|jpg|jpeg|gif|png|html|htm|css$ {}
        location ~ ^/skins/.*\.js|jpg|jpeg|gif|png|html|htm|css$ {}
        location ~ ^/plugins/.*\.js|jpg|jpeg|gif|png|html|htm|css$ {}



*edit* typofix