postfixメールサービス


postfixメールサービス
postfix送信サービス(TCP 25,SMTP)
dovecot受信サービス(TCP 110/143,POP 3/IMAP)
1.postfixの構成
postfix yum-y install postfixのインストール
メールサービスvim/etc/postfix/mainを構成します.cf
net_interfaces = all
mydomain = xxxx.xx          
myhostname = xxxx.xx         
myorigin = xxxx.xx           
mydestination =xxxx.xx       

postfix systemclt restart postfixの再起動
2.mailコマンドによる送受信
echo"welcome"|mail-s"name"-r root aa root#aaをrootに送信
受信mail-u root#root受信