Page 134 - RHEL8 BOOK
P. 134
6. Copy squirrelmail directory data into apache default directory
[root@sun ~]# cp -rv /usr/share/squirrelmail/* /var/www/html
7. Create mail users
[root@sun ~]# useradd senthil
[root@sun ~]# passwd senthil
[root@sun ~]# useradd kumar
[root@sun ~]# passwd kumar
8. Restart the services
[root@sun ~]# systemctl restart postfix
[root@sun ~]# systemctl enable postfix
[root@sun ~]# systemctl start dovecot.service
[root@sun ~]# systemctl enable dovecot
[root@sun ~]# systemctl restart httpd.service
[root@sun ~]# systemctl enable httpd.service
Mail Server Client Configuration
1. Provide the DNS Server IP-Address
[root@sun ~]# vi /etc/resolv.conf
2. Add the mail server information in host file
[root@sun ~]#vi /etc/hosts
192.168.1.2 (Client IP) sys2 sys2.iiht.com
192.168.1.50 (Server IP) sun sun.iiht.com
3. Open the mail via web browser
[root@sun ~]# firefox http://sun.iiht.com
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
134