From a4473fe3b65945c8b8d001b31a3310228c47e5aa Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Thu, 27 Sep 2018 09:04:58 +0800 Subject: [PATCH] posts: add sendmail --- _posts/2018-09-27-sendmail.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 _posts/2018-09-27-sendmail.md diff --git a/_posts/2018-09-27-sendmail.md b/_posts/2018-09-27-sendmail.md new file mode 100644 index 0000000..a6200f0 --- /dev/null +++ b/_posts/2018-09-27-sendmail.md @@ -0,0 +1,19 @@ +--- +title: "sendmail 設定" +categories: + - Misc +tags: + - sendmail +--- + +`sendmail` 大致上需要注意的設定就是 hostname + +如果 hostname 不符規定就會跑得很慢慢到以為不能用 + +要符合規定很簡單 _讓 hostname 至少有兩段_ 例如 host.domain + +要立即變更 hostname 可用 `hostnamectl set-hostname` + +別相信啥需要把 smtp listen on all ip 才能寄出去的謠言 + +或是啥需要 restart apache2 (?) 的亂解 -- 2.43.0