Page 132 - RHEL8 BOOK
P. 132

6. Restart and enable the service
          [root@Sun ~]# systemctl restart postfix
          [root@Sun ~]# systemctl enable postfix

          7. Create users and set password
          [root@Sun ~]# useradd user1
          [root@Sun ~]# useradd user2

          8. switch to a user1 and compose a mail to user2
          [root@Sun ~]# su – user1
          [root@user1 ~]#mail user2@mail.iiht.com
          Subject: invite
          wellcome to linuxhelp tutoraial...
          .
          EOT

          9. Switch to user2 and check the mails
          [root@user1 ~]# su – user2
          [root@user1 ~]# mail

          10. check the mail content
          [root@user1 ~]# vi /var/mail/user1
































                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           132
   127   128   129   130   131   132   133   134   135   136   137