dnf install postfix
Make sure there is a directory ~/Mailbox under user linda's home directory otherwise create one
set your host in /etc/hosts to 127.0.0.1 centos2.example.com master.cf is the config file in /etc/postfix/master myhostname = centos2.example.com mydomain = example.com myorigin = $mydomain inet_interfaces = all inet_protocols = ipv4 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mynetworks = 18.104.22.168/28, 127.0.0.0/8 home_mailbox = Maildir/ mail_spool_directory = /var/spool/mail
systemctl start postfix
Send an email say from root using mail -s "test email" linda where linda is the user already created on system
Logon as user linda then use mutt to check email Mutt configuration This section describes the statements to put into your muttrc (i.e. ~/.muttrc or ~/.mutt/muttrc) First tell Mutt to use the Maildir format:
set mbox_type=Maildir Next configure the locations of the common folders: set folder="~/Maildir" set mask="!^\\.[^.]" set mbox="~/Maildir" set record="+.Sent" set postponed="+.Drafts" set spoolfile="~/Maildir"