postfix 未使用参数错误

postfix 未使用参数错误

很长一段时间以来,我一直试图让 postfix 在我的服务器上运行,不久前我放弃了,但现在我别无选择,只能让它运行。

配置 main.cf 文件并重新启动 postfix 后,似乎出现了一些错误,即使在 Google 上搜索解决方案后,我也不知道如何修复。

错误

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_client_restriction=permit_mynetworks,reject_unknown_client,permit
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: body_check=regexp:/etc/postfix/body_checks
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: smptd_sasl_type=dovecot
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: smptd_sasl_path=private/auth

主配置文件

command_directory = /usr/sbin

daemon_directory = /usr/lib/postfix

data_directory = /var/lib/postfix
mail_owner = postfix

myhostname = mail.xxxxxxbooks.com

mydomain = xxxxxxbooks.com

myorigin = $mydomain

inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

local_recipient_maps = unix:passwd.byname $alias_maps

unknown_local_recipient_reject_code = 550

mynetworks = 127.0.0.0/8, 78.129.200.10

alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases

home_mailbox = Maildir/

header_checks = regexp:/etc/postfix/header_checks

body_check = regexp:/etc/postfix/body_checks

smtpd_banner = $myhostname ESMTP

debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/postfix

newaliases_path = /usr/bin/newaliases

mailq_path =  /usr/bin/mailq

setgid_group = postdrop

message_size_limit = 10485760


smptd_sasl_type = dovecot
smptd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname

smtpd_client_restriction = permit_mynetworks,reject_unknown_client,permit 
#smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject 
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

编辑

我有一个运行 apache 的 Ubuntu 12.04.1 服务器。

如果有人能帮忙我将非常感激。

答案1

您的参数拼写错误。

这是smtpd_client_restrictions<--注意

body_checks

smtpd_sasl_path不是 smptd

同样的事情smtpd_sasl_type

相关内容