配置本地郵件服務

題:在系統 system2 和system1 上配置郵件服務,要求:html

  • 這些系統不接受外部發送來的郵件
  • 在這些系統上本地發送的任何郵件都會自動路由到mail.group8.example.com
  • 從這些系統上發送的郵件顯示來自於server.group8.example.com

您能夠經過發送郵件到本地用戶 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

更多詳情:http://www.javashuo.com/article/p-wxqspgwu-br.htmlurl

相關文章
相關標籤/搜索