这是执行postconf -n的结果:(有些我没改,可能是行号变了被认为改了)
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain
mydomain =
test.com myhostname =
mail.test.com mynetworks = 192.168.0.244,127.0.0.1
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
其他改的还有/etc/sasl2/smtpd.conf内容:
#pwcheck_method: saslauthd
pwcheck_method:auxprop
mech_list: plain login
以及/etc/sysconfig/saslauthd内容:
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=sasldb
下面是/var/log/maillog的最后一次试的结果:
Apr 1 10:28:13 test postfix/postfix-script[7848]: starting the Postfix mail system
Apr 1 10:28:13 test postfix/master[7849]: daemon started -- version 2.6.6, configuration /etc/postfix
Apr 1 10:30:18 test postfix/smtpd[8387]: connect from test[127.0.0.1]
Apr 1 10:35:18 test postfix/smtpd[8387]: timeout after CONNECT from test[127.0.0.1]
Apr 1 10:35:18 test postfix/smtpd[8387]: disconnect from test[127.0.0.1]