執行 logwatch 時出現如下的錯誤訊息
# logwatch –output stdout
logwatch: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
logwatch: warning: inet_protocols: configuring for IPv4 support only
看起來問題似乎是 IPv6 被取消了,這是因為在家裡用不到。[@more@]解決方式:
參考網站:
email – “IPv6 support is disabled” warnings – Unix & Linux Stack Exchange
1. 備份原設定檔
# cp /etc/postfix/main.cf /etc/postfix/main.cf.$(date +%F)
2. 將 inet_protocols = all 改成 inet_protocols = ipv4
# sed -i ‘s/^(inet_protocols = ).*$/1”ipv4/’ /etc/postfix/main.cf
3. 重新啟動 postfix 服務
# systemctl restart postfix
4. 檢查一下
# logwatch –output stdout