postfix relay access denied



log上會標示好幾行某封信相關的內容,主要可以看有包含to 跟 from那行後面會有一個狀態,

ex : dsn:5.7.1 ,stat=Service unavailable,這是我今天遇到的情況。

寄不出去再仔細看附近幾行會寫失敗的原因,例如reject: RCPT from localhost.localdomain…: 554 5.7.1 … relay access denied,

這就是主要拒絕的原因,再拿去google 就可以找到解法了。


1. /etc/postfix/ :
mynetworks =,, hash:/etc/postfix/access
relay_domains = $mydestination

2. /etc/postfix/access   ACCEPT

3. postmap hash:/etc/postfix/access

參考這頁設完accept 就ok了。

One comment on “postfix relay access denied

  1. I drop a leave a response when I appreciate a post on a website or I
    have something to add to the discussion. It is caused by the fire
    communicated in the article I browsed. And after this article postfix relay access denied | 阿喵就像家.
    I was excited enough to post a comment 😉 I do have a couple of questions for you if you
    don’t mind. Could it be just me or do some of the responses come across like coming from brain dead folks?
    😛 And, if you are posting on additional sites, I’d like to follow you.
    Could you list every one of your social sites like your twitter feed, Facebook page or
    linkedin profile?


發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *