
使用 Ubuntu 14.04 x64
我安裝了一個可以正常運行的 Postfix,可以很方便地在我的終端中發送電子郵件,但我遇到了一個對我的工作流程至關重要的應用程式的問題。為了使其正常工作,我必須將本機的主機名稱更改為我的網路 IP。
hostname `hostname -I`
https://superuser.com/a/571073/175088
這樣做修復了我的工作關鍵型應用程序,但現在 postfix 無法工作。我清除並重新安裝了 postfix 以取得新的主機名,但嘗試啟動 postfix 服務現在出現錯誤,並顯示以下訊息:
postfix: warning: valid_hostname: numeric hostname: [IP-Redacted]
postfix: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: [IP-Redacted]
是否可以讓 postfix 使用 IP 位址作為我的主機名稱?
答案1
將我的主機名稱更改為ip-[IP-Redacted]