Page 131 - RHEL8 BOOK
P. 131
Sendmail is a MTA (Mail Transfer Agent) server used for transferring email from between different
hosts. Sendmail uses SMTP (Simple Mail Transfer Protocol) protocol. Most of system administrators
preferred to use Sendmail server as MTA than other MTAs.
1. Check the and Assign the IP address
[root@sun ~]#ifconfig
[root@sun ~]#ifconfig enp0s3 192.168.1.1
[root@sun ~]#nmtui
2. Set hostname permanently(RHEL7)
[root@Sun ~]# hostnamectl set-hostname mail.iiht.com
[root@Sun ~]# vi /etc/hostname
Mail.iiht.com
3. Set the host name and view the hostname
[root@Sun ~]# vi /etc/hosts
192.168.1.1 mail mail.iiht.com
[root@Sun ~]# hostname
4. Install and check the postfix
[root@Sun ~]#yum install postfix
[root@Sun ~]#yum list installed postfix
5. Edit postfix configuration file
[root@Sun ~]#vi /etc/postfix/main.cf
75 myhostname = server.iiht.com
83 mydomain = iiht.com
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
131