2012/06/26

postfix error: User unknown in local recipient table

Recipient address rejected: User unknown in local recipient table

沒有常常做的設定,很容易看過就忘了... =.=

我的環境是:
send (out):
netapp->lnx02->internet
recv(local domain):
exchange<-lnx02

netapp要寄error report,因透過exchange太麻煩了,就設了台 debian ,用 postfix 去代轉信件
lnx02收到寄信的需求,如果不是自己網域的,就往外丟
如果是自己網域的,就往 exchange 丟 (當然 exchange 要事先設定會收 lnx02的信)


這個錯誤訊息是因為我在 /etc/postfix/main.cf 中
指定了 local_recipient_maps = hash:local_recipient_maps
有設的話,postfix 就會去檢查,收件者有沒列在上述這個檔案裡
所以要解這個問題,解法就是
local_recipient_maps =

對,就是不要設清單讓它去檢查.. = ="
2022/12/05後記:
或者是調整 local_recipient_maps 把收件人加入
再用 postmap hash:local_recipient_maps 產生新的 local_recipient_maps.db 
就可以用白名單的方式允許信件寄入了

沒有留言: