Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: henrixd on May 31, 2012, 05:28:46 AM

Title: RoundCube and dovecot imaps with socket
Post by: henrixd on May 31, 2012, 05:28:46 AM
Hi

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

Dovecot2 configuration
Code: [Select]
#  inet_listener imaps {
#    port = 993
#    ssl = yes
#  }
unix_listener imaps {
      mode = 0666
}

RoundCube main.inc.conf:
Code: [Select]
$rcmail_config['default_host'] = 'unix:///var/run/dovecot/imaps';
$rcmail_config['default_port'] = -1;
Title: Re: RoundCube and dovecot imaps with socket
Post by: oldschool on June 01, 2012, 11:58:39 AM
Thanks!
:)


Have a nice day!
Title: Re: RoundCube and dovecot imaps with socket
Post by: henrixd on June 01, 2012, 03:00:47 PM
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.

Code: [Select]
        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