Postfix on Linux

Postfix on CentOS Stream

Postfix setup

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 is the config file in  /etc/postfix/master

myhostname =

mydomain =

myorigin = $mydomain

inet_interfaces = all

inet_protocols = ipv4

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

mynetworks =,

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"