如果擔心 Mail Server 過往的信件內容有問題.. Exp. 被當成垃圾信件發送站, 公司郵件的備份與監控..
是可以啟用 MailScanner 內的 Archive Mail 功能設定來達成這樣的目標.
設定的方式其實很簡單..
只要定義好所有經過 Mail Server 的信件都轉到特定的 Mail Account
這樣去收這個 Mail Account 的信件就可以了.
vi /etc/MailScanner/archives.rule
FromOrTo: * yes forward [email protected]
vi /etc/MailScanner/MailScanner.conf
: # Note: This setting still works even if "Scan Messages" is no. # #Archive Mail = /var/spool/MailScanner/archive Archive Mail = /etc/MailScanner/archives.rule # If a location specified in "Archive Mail" is not found, should it assume # that the location is a file or a directory name? # Before this option was added, it was always assumed to be a directory. :
service MailScanner restart