配置本地郵件服務


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

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

您可以通過發送郵件到本地用戶 dave 來測試您的配置,系統 server.group8.example.com 已經配置把此用戶的郵件轉到URL http://server.group8.example.com/pub/received_mail/8

分別在system1 和 system2 上執行

1、添加參數

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

2、測試

echo "hello" | mail -s testmail dave
curl http://server.group8.example.com/pub/received_mail/8

更多詳情:https://www.cnblogs.com/xiangsikai/p/10783161.html

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM