歡迎您光臨本站 註冊首頁

postfix啟動時報錯,哪位大哥來幫幫我啊!謝謝了!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix啟動時報錯,哪位大哥來幫幫我啊!謝謝了!

# postfix start
postfix: fatal: /etc/postfix/main.cf, line 16: missing '=' after attribute name: "reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,


main.cf配置文件的信息:
############################CYRUS-SASL########################
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,
reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,
reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,
reject_unauth_pipelining,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
#############################SASL-END##############################
《解決方案》

reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,
reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,
reject_unauth_pipelining,reject_unauth_destination


前面用空格和tab製表符
《解決方案》

格式不對,改成
smtpd_recipient_restrictions
=permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination

就好了。
smtpd_recipient_restrictions後面不能有換行!

[火星人 ] postfix啟動時報錯,哪位大哥來幫幫我啊!謝謝了!已經有504次圍觀

http://coctec.com/docs/service/show-post-17374.html