開發環境用的是postfix,還沒仔細看過跟sendmail的關係,
今天要寄遇到問題,之前看log都沒專心看,今天專心看以後發現有些地方要注意,就可以在網路找到解法了,
log上會標示好幾行某封信相關的內容,主要可以看有包含to 跟 from那行後面會有一個狀態,
ex : dsn:5.7.1 ,stat=Service unavailable,這是我今天遇到的情況。
寄不出去再仔細看附近幾行會寫失敗的原因,例如reject: RCPT from localhost.localdomain…: 554 5.7.1 … relay access denied,
這就是主要拒絕的原因,再拿去google 就可以找到解法了。
例如這個情況是RELAY沒設好,參照這頁 http://www.oksan.tw/jason/blog/?p=13
1. /etc/postfix/main.cf : mynetworks = 127.0.0.0/8, 192.168.1.0/24, hash:/etc/postfix/access relay_domains = $mydestination 2. /etc/postfix/access .com.site.www ACCEPT 3. postmap hash:/etc/postfix/access
參考這頁設完accept 就ok了。
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?