改回預設就正常 => 表示你改錯了.
至於改錯什麼? 你也沒說你改了什麼, 應該不會有人知道你改了什麼....
PS. 很神奇的是... 有時就算把改的東西貼上來, 也看不出錯, 但實際上改的東西與貼上來的 (你認為改成那樣的) 又不一樣... 但眼睛就是看不出來. <= 這是人變老的症頭嗎? 我覺得我出現這種情形的次數變多了.... :-(
感謝各位前輩的回答 , 抱歉我補上我的設定檔 , 有時候會有上述原因 , 我有遇過的情形是從windows複製貼上設定到putty的時候 , 會貼到一些空白還是甚麼符號
所以後來盡量都用key的 , 避免貼上一些空白(有錯請指正)
還是大家可以建議用其他方式啟用spamassassin 而不要用smtpd來呼叫spamassassin?
感謝解答
1.我的/etc/postfix/main.cf 中 mydestination有設定locahost , 附上main.cf的設定值mydestination = $myhostname, localhost.$mydomain, localhost2.postfix的master.cf檔 , 紅色部分是修改的 , 其餘皆是預設值smtp inet n - n - - smtpd -o content_filter = postfixfilter#smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp -o content_filter = postfixfilter#smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
postfixfilter unix - n n - - pipe flags=Rq user=spamfilter argv=/usr/local/sbin/filter.sh -f ${sender} -- ${recipient}3.附上spamassassin的local.cfrequired_hits 5
report_safe 1
rewrite_subject 1
rewrite_header Subject [SPAM]
report_safe 1
use_terse_report 1
use_bayes 1
auto_learn 1
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
ok_languages zh en ja
ok_locales en ja zh