最近在嘗試在自己的VPS安裝postfix,安裝成功後發現到發信沒問題,但是收信就會出現這個錯誤

Recipient address rejected: User unknown in local recipient table

查了一下,原因是因為沒有建立對應的帳號,所以找不到收件人。我們可以通過建立 useradd 指令建立新的帳號或者到這個檔案

etc/postfix/main.cf 搜尋 local_recipient_maps 

01.JPG

改成

local_recipient_maps =

02.JPG

修改完畢後,再重新啟動postfix就可以了

 systemctl restart postfix



文章轉載或引用,請先告知並保留原文出處與連結!!(單純分享或非營利的只需保留原文出處,不用告知)

原文連結:
https://blog.aidec.tw/post/postfix-recipient-address-rejected