it:linux:debian:webmail

Webmail horde3/imp4

  1. aptitude install imp4 ingo1 turba2 kronolith2 nag2 mnemo2
    touch /etc/horde/horde3/conf.bak.php
    touch /etc/horde/imp4/conf.bak.php
    touch /var/log/horde/horde3.log
    chmod 777 /etc/horde/*/conf.{php,bak.php}
    chown root.www-data /var/log/horde/horde3.log
    chmod 770 /var/log/horde/horde3.log
  2. Vhost config: /etc/apache2/sites-available/webmail:
    <VirtualHost _default_:443>
    ServerName webmail.example.com
    ServerAlias webmail.*
    
    Alias /horde3 /usr/share/horde3
    Alias /Microsoft-Server-ActiveSync /usr/share/horde3/rpc.php
    DocumentRoot /usr/share/horde3
    <Directory /usr/share/horde3>
        Options FollowSymLinks
        AllowOverride Limit
    </Directory>
    <Files ~ "\.(inc|bak)$">
        deny from all
    </Files>
    SSLEngine on 
    </VirtualHost>
  3. Datenbank installieren
    unzip < /usr/share/doc/horde3/examples/scripts/\
    sql/create.mysql.sql.gz \
    | mysql -u root -p
    1. DB User: horde
    2. DB Name: horde
    3. DB Password: horde CHANGE ME!
  4. Die 2. und 3. Zeile aus /etc/horde/horde3/conf.php löschen
  5. Im Browser „<SERVERIP>/horde3/“ öffnen
  6. Administration→Database mysql einstellen und Zugangsdaten eingeben
  7. In /etc/horde/horde3/registry.php den Abschnitt „imp4“ aktivieren:
    ...
    $this->applications['imp'] = array(
        'fileroot' => '/usr/share/horde3/lib' . '/../imp',
        'webroot' => $this->applications['horde']['webroot'] . '/imp',
        'name' => _("Mail"),
        'status' => 'active',
        'provides' => array('mail', 'contacts/favouriteRecipients')
    );
    ...
  8. Unter /etc/horde/imp4/servers.php den gewünschten IMAP Server einstellen und den Rest der Beispielconfig weglöschen:
    ...
    $servers['imap'] = array(
        'name' => 'IMAP Server',
        'server' => '<IMAPSERVER>',
        'hordeauth' => false,
        'protocol' => 'imap/notls',
        'port' => 143,
        'maildomain' => '', 
        'smtphost' => '<SMTPSERVER>',
        'smtpport' => 25, 
        'realm' => '', 
        'preferred' => '', 
    );
    ...
  9. Horde und IMP Config festmachen:
    chmod 644 /etc/horde/*/conf.{php,bak.php}
  10. /etc/horde/imp4/trailer.txt evtl. verändern.
  11. Ingo DB:
    mysql-u root -p horde < /usr/share/doc/ingo1/examples/scripts/sql/ingo.sql
  12. Turba DB:
    mysql -u root -p horde < /usr/share/doc/turba2/examples/scripts/sql/turba.sql
  13. Kronolith DB:
    mysql-u root -p horde < /usr/share/doc/kronolith2/examples/scripts/sql/kronolith.mysql.sql
  14. Nag DB:
    mysql-u root -p horde < /usr/share/doc/nag2/examples/scripts/sql/nag.sql

Links

  • it/linux/debian/webmail.txt
  • Zuletzt geändert: 2015/12/24 14:26
  • von 127.0.0.1