- 论坛徽章:
- 0
|
已关闭SENDMAIL
帮我看看POSTFIX为神摸总是出这样的错误,弄了好几遍都这样:
错误:
postfix:fatal:file /etc/postfix/main.cf:parameter
mail-owner;unknow user name value:postfix myhostname = wang.company.com
mydomain = company.com myorigin = wang.company.com,company.com,localhost.company.com
老师我的DNS就这样配的,通了,红帽FC4
正向DNS
@ IN SOA wang.company.com. mail.company.com.(1 3600 1800 36000 3600)
IN NS wang.company.com.
mail.company.com. IN MX 10 mail.company.com.
company.com. IN MX 11 mail.company.com.
wang.company.com. IN A 192.168.1.2
www IN CNAME wang.company.com.
mail.company.com. IN A 192.168.1.3
反向DNS
@ IN SOA wang.company.com. mail.company.com.(1 3600 1800 36000 3600)
IN NS wang.company.com.
2 IN PTR wang.company.com.
2 IN PTR www.company.com.
3 IN PTR mail.company.com.
设置/etc/postfix/name.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = wang.company.com
mydomain = company.com
myorigin = $myhostname,$mydomain,localhost.$mydomain
inet_interfaces = all
inet_interfaces = localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mail.$mydomain, www.$mydomain, ftp.$mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 192,168.1.0/24 127.0.0.0/8
relay_domains = company.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.2/samples
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = ``
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated, reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
smtp认证的配置
/etc/sysconfig/saslauthd里已经有METH=shadow
/etc/init.d/saslauthd start
chkconfig saslauthd on
/usr/sbin/testsaslauthd -u root -p '123456'
/usr/lib/sasl2/smtpd.conf里已经有pwcheck_methd:saslauthd
启动/etc/rc.d/init.d/postfix start后就出现错误:postfix:fatal:file /etc/postfix/main.cf:parameter
mail-owner;unknow user name value:postfix myhostname = wang.company.com
mydomain = company.com myorigin = wang.company.com,company.com,localhost.company.com
急死我了,急急急啊!!!各位大侠请帮我!!! |
|