logo

How to Setup an Email Server on CentOS 7 - PDF

   

Added on  2021-06-16

15 Pages1663 Words146 Views
Setup :Centos 7 (Centos.org, 2018) (Foundations of CentOS Linux, 2010) VM is prepared. It is acting as a DNS , DHCP, POSTFIX , IMAP and OSSSEC server. Clients are windows 7 and work station 12. Set the domain name as amna_alaraimi.local and the fully qualified host names are server.amna_alaraimi.local , client1.amna_alaraimi.local and client2.amna_alaraimi.localDNS ServerStep 1 DNS Server installation (Unixmen.com, 2018) (Techinformant.in, 2018) (To's and 7, 2018) (Cache Only) in Centos7# yum search bind# yum install bind bind-utils -yStep 2 Configuration of DNS (Cache only) in Centos7 (Mallett, 2014)listen-on port 53 { 127.0.0.1; any; };allow-query { localhost; any; };allow-query-cache { localhost; any; };1

# ls -lZ /etc/named.conf# ls -lZ /etc/named.rfc1912.zones# semanage fcontext -a -t named_conf_t /etc/named.conf# semanage fcontext -a -t named_conf_t /etc/named.rfc1912.zones# named-checkconf /etc/named.conf# systemctl restart named# systemctl enable named# systemctl status named# firewall-cmd --add-port=53/udp# firewall-cmd --add-port=53/udp --permanent2

Step 3 ChRoot of DNS (Cache only) Server in centos 7# yum install bind-chroot -y# systemctl restart named# ln -s /etc/named.conf /var/named/chroot/etc/named.confStep 4 Configuration of DNS (Cache only) in Client machine is done# dig facebook.com# nslookup facebook.com3

DHCP ServerInstalling DHCP server in centOS 7 (Centos.org, 2018)1.Executing the command # yum -y install dhcpAnd Trace the file location /etc/sysconfig/dhcpd for DHCPDARGSDHCPDARGS=eth02.Configuring DHCP serverSetting path/usr/share/doc/dhcp*/dhcpd.conf.sampleTwo states definedParametersDeclarationsConfiguration:# cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf 4.verify our DHCP server# vi /etc/dhcp/dhcpd.conf Checking parameters4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Linux Server Administration: DNS, SSH, LAMP, FTP, SSL
|27
|2455
|167

Advanced Network Security: Installation and Configuration Guide for CentOS, Apache, PHP, MySQL, and More
|28
|1536
|248