Lesson 23 - Linux Mail Server With Webmail
Lesson 23 - Linux Mail Server With Webmail
============
=> MUA (Mail user Agent): outlook, thunderbird, eudora, webmail, apps(gmail)
=> MTA (Mail Transfer Agent): MS exchange,qmail,postfix,sendmail,exim,Lotus
=> MDA (Mail Delivery Agent): POP3 Server (Dovecot)
Reference Table:
----------------
Prerequisite - DNS Ready, Static IP for Mail Server
Packages:
=> postfix(smtp),
=> dovecot(pop3 & IMAP),
=> squirrelmail (webmail),
=> httpd,
=> telnet (testing)
=> epel (Extra package for Enterprise Linux)
Configuration files:
--------------------
=> /var/named/example.com.for (DNS)
=> /etc/postfix/main.cf
=> /etc/dovecot/dovecot.conf
=> /etc/dovecot/conf.d/10-mail.conf
=> /etc/dovecot/conf.d/10-auth.conf
=> /etc/dovecot/conf.d/10-master.conf
=> /usr/share/squirrelmail/config/conf.pl - squirrelmail
=> /etc/httpd/conf/httpd.conf - (web mail)
DNS Part:
----------
[root@nsX ~]# hostname
[root@nsX ~]# nslookup nsX.example.com
8 IN NS nsX.example.com. ; no change
9 IN A 172.25.11.200+X ; no change
Step 01:
--------
[root@nsx ~]# rpm -qa | grep postfix
Step 02:
--------
[root@nsx ~]# cd /etc/postfix
[root@ns1 postfix]# ls
[root@nsx postfix]# vim main.cf
:set nu
75 myhostname = mail.example.com
83 mydomain = example.com
99 myorigin = $mydomain
113 inet_interfaces = all
116 #inet_interfaces = localhost
164 #mydestination = $myhostname, localhost.$mydomain, localhost
165 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
250 mynetworks_style = subnet
264 mynetworks = 172.25.11.0/24, 127.0.0.0/8
419 home_mailbox = Maildir/
572 smtpd_banner = $myhostname ESMTP $mail_name
91 user = postfix
92 group = postfix
Command >> S
Command >> R
Command >> Press 2
Command >> Press 1 (Domain)
[localhost]: example.com
Command >> S
Command >> R
Command >> S
Command >> Q
Step 05: Add following lines at the end of configuration files ####
-------------------------------------------------------------------
[root@nsx ~]# vim /etc/httpd/conf/httpd.conf
[add the following lines end of the file]
RewriteEngine On
AllowOverride All
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>