2017年8月11日 星期五

CentOS 6 mail

Reference:
How To Send E-Mail Alerts on a CentOS VPS for System Monitoring
如何刪除 Postfix 中所有還沒發送的郵件
於 Bash shell echo 輸入換行字元的寫法

設定寄信 mail server

  • vi /etc/mail.rc
  • set smtp=smtp://smtp.example.com:25
刪除 mail Queue 中的郵件
  • mailq  (查詢 mail queue)
  • postsuper -d ALL (刪除 mail queue 所有郵件)
  • postsuper -d queue_id (刪除 mail queue 特定一封郵件)
echo 輸入換行字元
  • echo -e "\n"



沒有留言:

張貼留言