Author Topic: RoundCube and dovecot imaps with socket  (Read 3587 times)

Offline henrixd

  • Newbie
  • *
  • Posts: 3
RoundCube and dovecot imaps with socket
« 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;
« Last Edit: May 31, 2012, 05:32:03 AM by henrixd »

Offline oldschool

  • Sr. Member
  • ****
  • Posts: 406
Re: RoundCube and dovecot imaps with socket
« Reply #1 on: June 01, 2012, 11:58:39 AM »
Thanks!
:)


Have a nice day!

Offline henrixd

  • Newbie
  • *
  • Posts: 3
Re: RoundCube and dovecot imaps with socket
« Reply #2 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
« Last Edit: June 02, 2012, 02:53:34 PM by henrixd »