Changes

Jump to navigation Jump to search
m
Line 100: Line 100:  
/etc/apache2/sites-available/webmail.conf
 
/etc/apache2/sites-available/webmail.conf
 
  <nowiki><VirtualHost *:80>
 
  <nowiki><VirtualHost *:80>
                              ServerAdmin rafael@herrerosolis.com
+
                                  ServerAdmin rafael@herrerosolis.com
                              Redirect permanent / https://webmail.herrerosolis.com/
+
                                  Redirect permanent / https://webmail.herrerosolis.com/
                          #    DocumentRoot /var/www/rafael
+
                              #    DocumentRoot /var/www/rafael
                              ServerName webmail.herrerosolis.com
+
                                  ServerName webmail.herrerosolis.com
                              ServerAlias webmail.herrerosolis.com
+
                                  ServerAlias webmail.herrerosolis.com
                              ErrorLog /var/log/apache2/webmail/error.log
+
                                  ErrorLog /var/log/apache2/webmail/error.log
                         
+
                             
                              # Posible values include: debug, info, notice, warn, error, crit.
+
                                  # Posible values include: debug, info, notice, warn, error, crit.
                              # alert, emerg.
+
                                  # alert, emerg.
                         
+
                             
                              CustomLog /var/log/apache2/webmail/access.log combined
+
                                  CustomLog /var/log/apache2/webmail/access.log combined
                          </virtualHost>
+
                              </virtualHost>
                         
+
                             
                          <VirtualHost *:443>
+
                              <VirtualHost *:443>
                              ServerAdmin rafael@herrerosolis.com
+
                                  ServerAdmin rafael@herrerosolis.com
                              DocumentRoot /var/lib/roundcube
+
                                  DocumentRoot /var/lib/roundcube
                              ServerName webmail.herrerosolis.com
+
                                  ServerName webmail.herrerosolis.com
                              ServerAlias webmail.herrerosolis.com
+
                                  ServerAlias webmail.herrerosolis.com
                         
+
                             
                              ErrorLog /var/log/apache2/webmail/error.log
+
                                  ErrorLog /var/log/apache2/webmail/error.log
                         
+
                             
                              # Posible values include: debug, info, notice, warn, error, crit.
+
                                  # Posible values include: debug, info, notice, warn, error, crit.
                              # alert, emerg.
+
                                  # alert, emerg.
                              CustomLog /var/log/apache2/webmail/access.log combined
+
                                  CustomLog /var/log/apache2/webmail/access.log combined
                              SSLEngine on
+
                                  SSLEngine on
                              SSLCertificateFile /etc/ssl/certs/herrerosolis.crt
+
                                  SSLCertificateFile /etc/ssl/certs/herrerosolis.crt
                              SSLCertificateKeyFile /etc/ssl/private/herrerosolis.key
+
                                  SSLCertificateKeyFile /etc/ssl/private/herrerosolis.key
                          </virtualHost>
+
                              </virtualHost>
                          </nowiki>
+
                              </nowiki>
    
====OPTIONAL: Remove TinyMCE====
 
====OPTIONAL: Remove TinyMCE====
Line 136: Line 136:     
  <nowiki>Comment out these lines:
 
  <nowiki>Comment out these lines:
                          #<Directory "/usr/share/tinymce/www/">
+
                              #<Directory "/usr/share/tinymce/www/">
                          #      Options Indexes MultiViews FollowSymLinks
+
                              #      Options Indexes MultiViews FollowSymLinks
                          #      AllowOverride None
+
                              #      AllowOverride None
                          #      Order allow,deny
+
                              #      Order allow,deny
                          #      allow from all
+
                              #      allow from all
                          #</Directory>
+
                              #</Directory>
                          </nowiki>
+
                              </nowiki>
    
===Create Databases===
 
===Create Databases===
Line 485: Line 485:  
Add to /etc/roundcube/config.inc.php
 
Add to /etc/roundcube/config.inc.php
 
  <nowiki>$config['imap_conn_options'] = array(
 
  <nowiki>$config['imap_conn_options'] = array(
                            'ssl'        => array(
+
                                'ssl'        => array(
                              'verify_peer'  => false,
+
                                  'verify_peer'  => false,
                              'verify_peer_name'  => false,
+
                                  'verify_peer_name'  => false,
                              'allow_self_signed' => true,
+
                                  'allow_self_signed' => true,
                            ),
+
                                ),
                          );
+
                              );
                          </nowiki>
+
                              </nowiki>
    
====Enable Password Plugin====
 
====Enable Password Plugin====
Line 521: Line 521:  
Then edit your local composer.json file and add the "vendor/plugin" names to the "require" section of the JSON structure. Don't forget to specify the version constraint:
 
Then edit your local composer.json file and add the "vendor/plugin" names to the "require" section of the JSON structure. Don't forget to specify the version constraint:
 
  <nowiki>"require" : {
 
  <nowiki>"require" : {
                              ...,
+
                                  ...,
                              "roundcube/rcsample": ">=0.2.0"
+
                                  "roundcube/rcsample": ">=0.2.0"
                          }</nowiki>
+
                              }</nowiki>
    
After every change to composer.json run
 
After every change to composer.json run
Line 578: Line 578:     
  mailq | grep frozen | awk '{print $3}' | xargs exim -v -M
 
  mailq | grep frozen | awk '{print $3}' | xargs exim -v -M
 +
 +
====Exim usefull commands====
 +
https://hostpapasupport.com/list-useful-commands-manage-exim-mail-server/
 +
 +
====Spam filters filtering your mails====
 +
https://www.mail-tester.com/
      Line 603: Line 609:  
1. In the file /etc/dovecot/conf.d/auth-sql-conf.ext uncomment driver and set it to mysql
 
1. In the file /etc/dovecot/conf.d/auth-sql-conf.ext uncomment driver and set it to mysql
 
2. /etc/dovecot/conf.d/10-mail.conf uncomment first_valid_uid and set it to [your_uid] (ie. 8). If you need to do the same for first_valid_gid
 
2. /etc/dovecot/conf.d/10-mail.conf uncomment first_valid_uid and set it to [your_uid] (ie. 8). If you need to do the same for first_valid_gid
 +
 +
https://pasztor.at/blog/the-big-exim-tutorial
 
=Adding new Domains=
 
=Adding new Domains=
   Line 618: Line 626:  
echo "******************************* MAIL ACCOUNT INFORMATION *****************************************"
 
echo "******************************* MAIL ACCOUNT INFORMATION *****************************************"
   −
read -p "Username (without@redactate.com): " USERNAME
+
read -p "Username (without@herrerosolis.com): " USERNAME
    
while [[ "$PASSWORD1" != "$PASSWORD2" ]]; do
 
while [[ "$PASSWORD1" != "$PASSWORD2" ]]; do

Navigation menu