User Tools

Site Tools


roundcube

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
roundcube [2022/07/22 18:55] adminroundcube [2022/07/27 21:56] (current) – verify_peer_name to false also admin
Line 4: Line 4:
  
 I did think of using ilohamail as it was on apt-get, but I heard and used roundcube before, so I said I'd go with that, even though it wasn't on apt-get for lenny. I did think of using ilohamail as it was on apt-get, but I heard and used roundcube before, so I said I'd go with that, even though it wasn't on apt-get for lenny.
 +
 +====== Setup Roundcube on Debian Bullseye with SQLite ======
 +==== Install ====
 +<code>
 +apt-get install roundcube-core roundcube-sqlite3
 +
 +Configure database for roundcube with dbconfig-common? 
 +YES
 +
 +When prompted choose
 +sqlite
 +</code>
 +That should be it installed.
 +
 +==== Configure Apache ====
 +By default roundcube gets enabled in apache and its config is placed in: /etc/apache2/conf-enabled/roundcube.conf
 +<code>
 +vi /etc/apache2/conf-enabled/roundcube.conf
 +#uncomment
 +#Alias /roundcube /var/lib/roundcube/public_html
 +
 +/etc/init.d/apache2 reload
 +</code>
 +In your browser navigate to: http://server/roundcube and it should show.
 +
 +==== Config Roundcube ====
 +Need to config for imaps and to ignore self-signed cert.
 +<code>
 +vi /etc/roundcube/config.inc.php
 +
 +$config['default_host'] = 'ssl://server.com';
 +$config['default_port'] = 993;
 +
 +$config['imap_conn_options'] = array(
 +  'ssl'         => array(
 +     'verify_peer'  => false,
 +     'verify_depth' => 3,
 +     'cafile'       => '/etc/ssl/certs/ca-certificates.crt',
 +   ),
 + );
 +
 +</code>
 +Now you should be able to login.
 +
 +=== Sending Emails with Roundcube Config ===
 +I was getting error: **SMTP Error (250): Authentication failed**
 +
 +Config used:
 +<code>
 +vi /etc/roundcube/config.inc.php
 +#add/set/amend to
 +$config['smtp_server'] = 'tls://server.domain.com';
 +$config['smtp_port'] = 25;
 +$config['smtp_conn_options'] = array(
 +   'ssl'         => array(
 +     'verify_peer'  => false,
 +     'verify_peer_name' => false,
 +     'verify_depth' => 3,
 +     'cafile'       => '/etc/ssl/certs/ca-certificates.crt',
 +   ),
 + );
 +$config['smtp_user'] = '%u';
 +$config['smtp_pass'] = '%p';
 +$config['smtp_auth_type'] = PLAIN;
 +</code>
 +
 +I tried to get roundcube to send without auth, but it wouldn't work.
 +The above works. This works with postfix setup [[setup-config-debian-bullseye#secure_smtpd_using_postfix_and_sasl|here]]
 +
  
 ====== Setup Roundcube on Debian Lenny with SQLite ====== ====== Setup Roundcube on Debian Lenny with SQLite ======
roundcube.1658512503.txt.gz · Last modified: 2022/07/22 18:55 by admin