Squirrelmail Exercise 1. Installing Squirrelmail afnog@pc36:~$sudo apt-get install squirrelmail 2. Configure Squirrelmail afnog@pc36:~$ sudo squirrelmail-configure 3. Choose the following options to configure the Domain-Name, IMAP Software to be Dovecot and others that might be of interest. 3.1 Configuring the Domains Server Settings. SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Main Menu -- 1. Organization Preferences 2. Server Settings 3. Folder Defaults 4. General Options 5. Themes 6. Address Books 7. Message of the Day (MOTD) 8. Plugins 9. Database 10. Languages D. Set pre-defined settings for specific IMAP servers C Turn color on S Save data Q Quit Command >> 2 <------- SELECT Option 2 and PRESS ENTER SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name'))) 2. Invert Time : false 3. Sendmail or SMTP : SMTP A. Update IMAP Settings : localhost:143 (other) B. Update SMTP Settings : localhost:25 R Return to Main Menu C Turn color on S Save data Q Quit Command >> 1 <------- SELECT Option 1 and PRESS ENTER The domain name is the suffix at the end of all email addresses. If for example, your email address is jdoe@example.com, then your domain would be example.com. [trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name')))]: ________.afnog.guru <------- TYPE & ENTER THE DELEGATED DOMAIN NAME FROM DNS CLASS 3.2 Configuring the IMAP Server Settings. SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : XXXXXXXX.afnog.guru 2. Invert Time : false 3. Sendmail or SMTP : SMTP A. Update IMAP Settings : localhost:143 (other) B. Update SMTP Settings : localhost:25 R Return to Main Menu C Turn color on S Save data Q Quit Command >> A <------- SELECT Option A and PRESS ENTER SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : ____________.afnog.guru 2. Invert Time : false 3. Sendmail or SMTP : SMTP IMAP Settings -------------- 4. IMAP Server : localhost 5. IMAP Port : 143 6. Authentication type : login 7. Secure IMAP (TLS) : false 8. Server software : other 9. Delimiter : detect B. Update SMTP Settings : localhost:25 H. Hide IMAP Server Settings R Return to Main Menu C Turn color on S Save data Q Quit Command >> 8 <------- SELECT Option 8 and PRESS ENTER Command >> 8 Each IMAP server has its own quirks. As much as we tried to stick to standards, it doesn't help much if the IMAP server doesn't follow the same principles. We have made some work-arounds for some of these servers. If you would like to use them, please select your IMAP server. If you do not wish to use these work-arounds, you can set this to "other", and none will be used. bincimap = Binc IMAP server courier = Courier IMAP server cyrus = Cyrus IMAP server dovecot = Dovecot Secure IMAP server exchange = Microsoft Exchange IMAP server hmailserver = hMailServer macosx = Mac OS X Mailserver mercury32 = Mercury/32 uw = University of Washington's IMAP server gmail = IMAP access to Google mail (Gmail) accounts other = Not one of the above servers [other]: dovecot <------- TYPE dovecot and PRESS ENTER 3.3 SAVE and EXIS Squirrelmail Configuration. SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : XXXXXX.afnog.guru 2. Invert Time : false 3. Sendmail or SMTP : SMTP IMAP Settings -------------- 4. IMAP Server : localhost 5. IMAP Port : 143 6. Authentication type : login 7. Secure IMAP (TLS) : false 8. Server software : dovecot 9. Delimiter : detect B. Update SMTP Settings : localhost:25 H. Hide IMAP Server Settings R Return to Main Menu C Turn color on S Save data Q Quit Command >> S <------- TYPE S and PRESS ENTER quirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : _______________.afnog.guru 2. Invert Time : false 3. Sendmail or SMTP : SMTP IMAP Settings -------------- 4. IMAP Server : localhost 5. IMAP Port : 143 6. Authentication type : login 7. Secure IMAP (TLS) : false 8. Server software : dovecot 9. Delimiter : detect B. Update SMTP Settings : localhost:25 H. Hide IMAP Server Settings R Return to Main Menu C Turn color on S Save data Q Quit Command >> Q <------- TYPE Q and PRESS ENTER Exiting conf.pl. You might want to test your configuration by browsing to http://your-squirrelmail-location/src/configtest.php Happy SquirrelMailing! 4. Apache Configuration 4.1 Go to: $cd /etc/squirrelmail 4.2 edit the apache.conf file $sudo nano apache.conf 4.3 Scroll to the bottom and uncomment the lines so that it looks like this RewriteEngine on RewriteCond %{HTTPS} !^on$ [NC] RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L] Save and exit 4.4 Then copy the file to the Apache directory and restart apache: $sudo cp apache.conf /etc/apache2/conf-enabled/ $sudo service apache2 restart Browse http://YYY.afnog.guru/squirrelmail Username: afnog Passwd: afnog