Changeset 539

Show
Ignore:
Timestamp:
05/17/08 12:25:56 (7 months ago)
Author:
free
Message:

* Use squirrelmail via SSL

Location:
cdd-utils/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • cdd-utils/trunk/debian/README.ares

    r506 r539  
    1212   dpkg-reconfigure tzdata 
    1313 
    14 3) Set the manager password of both webmin and LDAP 
     143) Set the password of the webmin manager account and also 
     15   of the regular LDAP one 
    1516 
    16174) Set the squid local network to the value choosen in 1) 
     
    27289) Configure monit mail 
    2829 
     3010) Genereate a SSL certificate 
     31 
     32    make-ssl-cert /usr/share/ssl-cert/ssleay.cnf  /etc/apache2/apache.pem 
     33 
     3411) Configure squirrelmail with the correct site name, by 
     35    running cdd-config squirrelmail sitename 
     36 
    2937And finally reboot the machine, as all services have to be restarted. 
  • cdd-utils/trunk/debian/README.eros

    r508 r539  
    1 1) Set a dchp network interface 
     11) Set a dchp network interface (not needed if the machine was 
     2   connected to are during the installation) 
  • cdd-utils/trunk/debian/changelog

    r538 r539  
    1616  * Support custom gdm theme 
    1717  * Remove cdrom APT sources 
     18  * Use squirrelmail via SSL 
    1819 
    1920 -- Free Ekanayaka <free@64studio.com>  Thu, 08 May 2008 21:55:32 +0200 
  • cdd-utils/trunk/lib/server.sh

    r531 r539  
    134134} 
    135135 
     136# Secure server layer 
     137ssl () { 
     138 
     139    # Enable SSL in apache 
     140    cfg=../mods-available/ssl.conf 
     141    lnk=/etc/apache2/mods-enabled/ssl.conf 
     142    if ! exists $lnk; then ln -sf $cfg $lnk; fi 
     143 
     144    cfg=../mods-available/ssl.load 
     145    lnk=/etc/apache2/mods-enabled/ssl.load 
     146    if ! exists $lnk; then ln -sf $cfg $lnk; fi 
     147 
     148} 
    136149 
    137150# Squirrelmail 
    138151squirrelmail () { 
    139     cfg=/etc/squirrelmail/apache.conf 
    140     lnk=/etc/apache2/conf.d/squirrelmail.conf 
    141     if ! exists $cfg; then warning $cfg not found; return; fi 
    142     if ! exists $lnk; then ln -sf $cfg $lnk; fi 
     152    sitename=$1 # Name of the site on the internet, like mail.foo.com 
     153    if nullstr $sitename; then warning "No site name given"; return; fi 
     154 
     155    # Configure a virtual host for squirrelmail 
     156    cfg=/etc/apache2/conf.d/squirrelmail.conf 
     157 
     158    # Upgrade from previous versions 
     159    if [ -L $cfg ]; then 
     160        rm $cfg 
     161    fi 
     162 
     163    cat <<EOF > $cfg 
     164<VirtualHost *> 
     165  DocumentRoot /usr/share/squirrelmail 
     166  ServerName $sitename 
     167  SSLEngine on 
     168  SSLCertificateFile /etc/apache2/apache.pem 
     169</VirtualHost> 
     170EOF 
    143171 
    144172} 
  • cdd-utils/trunk/lib/suites.sh

    r534 r539  
    1616    cdd-config postfix 
    1717    cdd-config fetchmail 
    18     cdd-config squirrelmail 
     18    cdd-config squirrelmail ares 
    1919    cdd-config samba 
    2020    cdd-config webmin