題:在系統 system2 和system1 上配置郵件服務,要求:html
您能夠經過發送郵件到本地用戶 dave 來測試您的配置,系統 server.group8.example.com 已經配置把此用戶的郵件轉到URL http://server.group8.example.com/pub/received_mail/8curl
分別在system1 和 system2 上執行oop
一、添加參數post
postconf -e inet_interfaces=loopback-only postconf -e mydestindation= postconf -e local_transport=error:err postconf -e relayhost=[mail.group8.example.com] postconf -e myorigin=server.group8.example.com systemctl enable postfix systemctl restart postfix
二、測試測試
echo "hello" | mail -s testmail dave
curl http://server.group8.example.com/pub/received_mail/8