- 论坛徽章:
- 0
|
我绝对相信楼主。
如果你是利用自己的邮件服务器 + 你所说的OUTLOOK ,能成功发出那样的邮件到163.com,按我的理解,你的邮件服务器符合open relay 的特征。
建议楼主使用我的postfix 设置再试,我的环境是centos 5.0,使用内网地址测试用,邮件用户是直接使用系统用户。
[root@ms01 postfix]# cat /etc/postfix/main.cf |grep -v ^# |grep -v ^$
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail.website.com
mydomain = website.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
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.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain= ''
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,check_sender_access hash:/etc/postfix/sender,reject_unauth_destination
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
message_size_limit = 10485760
[root@ms01 postfix]# cat /etc/postfix/sender
website.com permit_sasl_authenticated, reject
别忘记执行
# postmap /etc/postfix/sender |
|