Procedure for install Postfix and Squirrelmail - WordPress.com

11 downloads 205 Views 166KB Size Report
Description: Squirrelmail is the very actively developed, and easy to use in web application. also the squirrelmail contain a lot of plugins avialable for it.
Procedure for configure Postfix and Squirrelmail Description: Squirrelmail is the very actively developed, and easy to use in web application. also the squirrelmail contain a lot of plugins avialable for it. Mainly the squirrelmail is the with service that allow user to send and recieve mail. Before install squirrel please make sure that the apache22 and php5 are properly running. We should do the following step: 1. Install mysql server and client 2. Install apache22 3. Install PHP5 4. Install Aquirrelmail 5. Install Postfix DNS Server - sakona.com.kh - 10.1.1.12 IP of www.sakona.com.kh. - 10.1.1.13 IP of mail.sakona.com.kh. Edit file /etc/rc.conf # ee /etc/rc.conf apache22_enable=”YES” httpd_enable=”YES” mysql_enable=”YES” 1. Install mysql # cd /usr/ports.databases/mysql51-server # make install clean # cd /usr/ports.databases/mysql51-client # make install clean Restart mysql server: # /usr/local/etc/rc.d/mysql-server restart 2. Install apaache22 # cd /usr/ports/www/apache22/ # make install clean Edit file httpd.cong # ee /usr/local/etc/apache22/httpd.conf Line 40 add Listen 80 Line 136 add ServerAdmin [email protected] Line 145 add Servername 10.1.1.12 or www.sakona.com.kh:80

Test apache22 # apachectl start/restart /stop # apachectl graceful # /usr/local/sbin/apache22 restart If restart have problem below:

We should loading the accf_http module # kldload accf_http # ee /boot/loader.conf accf_http_load=”YES” Update port by enter # cd /usr/ports/ # sysinstall  Select “Configure”  Select “Distribution”  Select “ports” Check error in the hpptd.conf # apachectl configtest Restart apache again # apachectl restart 3. Install PHP5 # cd /usr/port/lanf/php5 # make install clean Edit file httpd.conf # cd /usr/local/etc/apache22/ # ee httpd.conf Add module below : DirectoryIndex index.php index.php3 index.html DirectoryIndex index.php3 index.html DirectoryIndex index.php index.html index.htm

DirectoryIndex index.html DirectoryIndex index.php index.html index.htm AddType application/x-httpd-php .php. htm .html AddType application/x-httpd-php-source .php

Configure php Settings for PHP are stored in /usr/local/etc/php.ini You will need to create this file by copying it from /usr/local/etc/php.ini-dist # cp /usr/local/etc/php.ini-dest / usr/local/etc/php.ini Test the php # echo “” >> /usr/local/www/data/test.php Access with IP of mailserver http://10.1.1.13/test.php

4. Install Postfix Upgrade opnessl # cd /usr/ports/security/openssl # make deinstall # make reinstall Postfix install # cd /usr/ports/mail/postfix # make install clean Seclect “SASL2” “TLS” and “apache” Note: Answer 'y' to all questions Add this to /etc/rc.conf sendmail_enable="YES" sendmail_flags="-bd" sendmail_pidfile="/var/spool/postfix/pid/master.pid" sendmail_procname="/usr/local/libexec/postfix/master" sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" put this in /etc/periodic.conf daily_clean_hoststat_enable="NO" daily_status_mail_rejects_enable="NO" daily_status_include_submit_mailq="NO" daily_submit_queuerun="NO"

5. Install squirrelmail. >> For the Freebsd server 7.0 use with squirrelmail version 1.4.15_1. To install squirremail please follow step by step following: Install: please get the path: #cd /usr/ports/mail/squirrelmail. #make install clean Note: command: make is command to build the package. install is command to install the package. clean is command to clean package. For this should know that all the packages are cleaned and reinstall. Note: that all the freebsd server package are downloaded from the internet. please make sure your server can access to internet. After typing the command make install clean, please wait till downloading completed (wait for 10 or 20 minutes). Configure. To configure squirelmail please go to directory cd /usr/local/www/squirremail. type command: #./configure. When the screen show please type the number you to edit. example: 1 in order to modify Organization Preferences.

Example: setting on Organization type 1 press enter key type 1 press enter key Write your Organization Name. press enter key. Example: chuanwei press enter key type S to save setting. type R to return to main menu. change logo setting. type 2 press enter key type your logo name press enter key. Make sure your logo picture is with extension png and is in the images directory Example: ../images/chuanwei.PNG press enter key. type S to save setting type R to return to main menu. Setting Domain. type 1 press enter key. writer your domain name. Example: sakona.com.kh press enter key. Update IMAP: A press enter key. 4 press enter key. write your ip_server or your domain name. Example: 10.1.1.12 or mail.sakona.com.kh. 5 press enter key. change port to 993 press enter key. 8 press enter key. (in order to run squirrel with dovecot) write dovecot press enter key. type S press enter key to save seting Q press enter key to quite. change the path to access squirrelmail web page. Go to directory beloved # cd /usr/local/etc/apache22/ edit file httpd.conf. # ee httpd.conf On line 181

DocumentRoot “/usr/local/www/squrrelmail” On line 206 Now test the access web server. create new file in /usr/local/etc/apache22/Includes cd /usr/local/etc/apache22/Includes # touch squirrelmail.conf Add line beloved:

Now we can finish setting and can access the web using web browser. In the address web browser type: http://your_ip_maiserver or you domain name: Example: http://10.1.1.12 OR http://mail.sakona.com.kh. The screen of web squirrelamil will show beloved: