The mail/roundcubemail port

roundcubemail-1.4.8 – imap4 webmail client (cvsweb github)


RoundCube Webmail is a browser-based multilingual IMAP client with
an application-like user interface. It provides full functionality
you expect from an e-mail client, including MIME support, address
book, folder manipulation, message searching and spell checking.

The user interface is fully skinnable using XHTML and CSS 2; client
browsers require cookies and JavaScript, including XMLHttpRequest.

RoundCube Webmail is written in PHP and requires a database;
MySQL, PostgreSQL and SQLite are supported.


$OpenBSD: README,v 1.11 2018/10/26 20:57:55 sthen Exp $

| Running ${PKGSTEM} on OpenBSD

Standard Roundcube installation/upgrade
for more information.

Database access is done via PDO. If you are using MySQL or PostgreSQL,
make sure the the relevant package (php-pdo_mysql or php-pdo_pgsql) is
installed and enabled.

Setup with Apache
With Apache, AllowOverride settings are required on the ${INSTDIR}
directory. You can configure this as follows:

# ln -s ../modules.sample/roundcubemail.conf \
# /etc/rc.d/apache2 restart

Setup with other web servers
Review the .htaccess files as you may need to use them as a template to
adjust various PHP settings in ${SYSCONFDIR}/php-${MODPHP_VERSION}.ini

With clients using certain versions of Internet Explorer, cache-control
headers must be adjusted for file downloads to work correctly over HTTPS.
Roundcube does this automatically but requires that the HTTPS variable
is passed to PHP. This is normally set by Apache mod_ssl, but not by
other servers; it will show as an environment variable in a phpinfo()
call if you want to check.

If this is not present it will need adding as a FastCGI parameter.
For nginx, you can do this by setting 'fastcgi_param HTTPS on' in the
appropriate location{} block for HTTPS.

Sample NGINX configuration
The maintainer uses this configuration with NGINX to provide webmail
service at the root of a host (e.g.

server {
    listen 80;
    listen [::]:80;
    location /.well-known/acme-challenge { root /var/www/letsencrypt/; }
    location / { return 301$request_uri; }

server {
    root /var/www/roundcubemail/public_html;
    index index.php;

    ssl_certificate /etc/letsencrypt/live/;
    ssl_certificate_key /etc/letsencrypt/live/;
    ssl_trusted_certificate /etc/letsencrypt/live/;
    add_header Strict-Transport-Security max-age=15552000;
    include ssl_params;

    rewrite "^/[a-zA-Z0-9]{16}/(.*)" /$1; # allow use of 'use_secure_urls'
    location /.well-known/acme-challenge { root /var/www/letsencrypt/; }
    location ~* \.php$ { 
        try_files       $uri =404;
        fastcgi_pass    unix:run/php-fpm.sock;
        fastcgi_param   SCRIPT_FILENAME $document_root/$fastcgi_script_name;
        fastcgi_param   HTTPS on;
        include         fastcgi_params;


Stuart Henderson


lang/php mail www

Run dependencies

Reverse dependencies


File Descr
Path Name
Category Maintainer