免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2173 | 回复: 0
打印 上一主题 下一主题

[Mail] 关于内部邮件服务器对外收发邮件的几个问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-16 23:20 |只看该作者 |倒序浏览
我有一个问题想咨询大家:
  软件:postfix+cyrus-imapd+ldap+sasl
  内部邮件服务器A,地址192.168.1.3 域名test.com
  PIX防火墙外网地址:221.122.10.38,申请了域名,mail.auto-action.cn,端口25 143 110映射到192.168.1.3
  目前在内网用user@test.com可以向外部邮件服务发送邮件,当然外部邮件服务无法回邮件;在外网用user@mail.auto-action.cn可以登录邮箱,但是无法发邮件。
   问题1:我怎么用user@test.com给 @163.com发邮件,但是显示发信人地址是 user@mail.auto-action.cn
   问题2:如果在外网登录user@mail.auto-action.cn,然后可以发邮件呢?

tach02:~ # postconf -n
alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_process_limit = 50
defer_transports = smtp replay cyrus
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix/html
inet_protocols = all
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
mail_owner = postfix
mailbox_command =
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = mail.auto-action.cn
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain, $myhostname.$mydomain
mydomain = test.com
myhostname = tach02.test.com
mynetworks = 10.0.3.0/24, 127.0.0.0/8
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = $mydestination
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_client_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination,permit_inet_interfaces,permit_sasl_authenticated
smtpd_sasl_application_name = smtpd
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_8bitmime = no
strict_rfc821_envelopes = no
tls_random_source = dev:/dev/urandom
transport_maps = ldap:/etc/postfix/ldap_vbox.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains = ldap:/etc/postfix/ldap_vbox.cf
virtual_alias_maps = ldap:/etc/postfix/ldap_vbox.cf
virtual_gid_maps = static:2001
virtual_mailbox_base =
virtual_mailbox_domains = test.com
virtual_mailbox_maps = ldap:/etc/postfix/ldap_vbox.cf
virtual_transport = cyrus
virtual_uid_maps = static:2001

在外网用thunderbird 登陆 user@mail.auto-action.cn 向 126.com 发送邮件时的错误提示为:

May 16 22:23:26 tach02 postfix/smtpd[11078]: ctable_locate: install entry key sunmanssjx@126.com
May 16 22:23:26 tach02 postfix/smtpd[11078]: extract_addr: result: sunmanssjx@126.com
May 16 22:23:26 tach02 postfix/smtpd[11078]: send attr request = rewrite
May 16 22:23:26 tach02 postfix/smtpd[11078]: send attr rule = local
May 16 22:23:26 tach02 postfix/smtpd[11078]: send attr address = postmaster
May 16 22:23:26 tach02 postfix/smtpd[11078]: private/rewrite socket: wanted attribute: flags
May 16 22:23:26 tach02 postfix/smtpd[11078]: input attribute name: flags
May 16 22:23:26 tach02 postfix/smtpd[11078]: input attribute value: 0
May 16 22:23:26 tach02 postfix/smtpd[11078]: private/rewrite socket: wanted attribute: address
May 16 22:23:26 tach02 postfix/smtpd[11078]: input attribute name: address
May 16 22:23:26 tach02 postfix/smtpd[11078]: input attribute value: postmaster@tach02.tach.local
May 16 22:23:26 tach02 postfix/smtpd[11078]: private/rewrite socket: wanted attribute: (list terminator)
May 16 22:23:26 tach02 postfix/smtpd[11078]: input attribute name: (end)
May 16 22:23:26 tach02 postfix/smtpd[11078]: rewrite_clnt: local: postmaster -> postmaster@tach02.tach.local
May 16 22:23:26 tach02 postfix/smtpd[11078]: >>> START Sender address RESTRICTIONS <<<
May 16 22:23:26 tach02 postfix/smtpd[11078]: generic_checks: name=hash:/etc/postfix/access
May 16 22:23:26 tach02 postfix/smtpd[11078]: check_mail_access: ftptest@mail.auto-action.cn
May 16 22:23:26 tach02 postfix/smtpd[11078]: ctable_locate: move existing entry key ftptest@mail.auto-action.cn
May 16 22:23:26 tach02 postfix/smtpd[11078]: check_access: ftptest@mail.auto-action.cn
May 16 22:23:26 tach02 postfix/smtpd[11078]: check_domain_access: mail.auto-action.cn
May 16 22:23:26 tach02 postfix/smtpd[11078]: check_access: ftptest@
May 16 22:23:26 tach02 postfix/smtpd[11078]: generic_checks: name=check_sender_access status=0
May 16 22:23:26 tach02 postfix/smtpd[11078]: >>> END Sender address RESTRICTIONS <<<
May 16 22:23:26 tach02 postfix/smtpd[11078]: >>> START Recipient address RESTRICTIONS <<<
May 16 22:23:26 tach02 postfix/smtpd[11078]: generic_checks: name=permit_mynetworks
May 16 22:23:26 tach02 postfix/smtpd[11078]: permit_mynetworks: unknown 124.14.59.75
May 16 22:23:26 tach02 postfix/smtpd[11078]: match_hostname: unknown ~? 10.0.3.0/24
May 16 22:23:26 tach02 postfix/smtpd[11078]: match_hostaddr: 124.14.59.75 ~? 10.0.3.0/24
May 16 22:23:26 tach02 postfix/smtpd[11078]: match_hostname: unknown ~? 127.0.0.0/8
May 16 22:23:26 tach02 postfix/smtpd[11078]: match_hostaddr: 124.14.59.75 ~? 127.0.0.0/8
May 16 22:23:26 tach02 postfix/smtpd[11078]: match_list_match: unknown: no match
May 16 22:23:26 tach02 postfix/smtpd[11078]: match_list_match: 124.14.59.75: no match
May 16 22:23:26 tach02 postfix/smtpd[11078]: generic_checks: name=permit_mynetworks status=0
May 16 22:23:26 tach02 postfix/smtpd[11078]: generic_checks: name=reject_unauth_destination
May 16 22:23:26 tach02 postfix/smtpd[11078]: reject_unauth_destination: sunmanssjx@126.com
May 16 22:23:26 tach02 postfix/smtpd[11078]: permit_auth_destination: sunmanssjx@126.com
May 16 22:23:26 tach02 postfix/smtpd[11078]: ctable_locate: move existing entry key sunmanssjx@126.com
May 16 22:23:26 tach02 postfix/smtpd[11078]: NOQUEUE: reject: RCPT from unknown[124.14.59.75]: 554 <sunmanssjx@126.com>: Relay access denied; from=<ftptest@mail.auto-action.cn> to=<sunmanssjx@126.com> proto=ESMTP helo=<[192.168.1.101]>
May 16 22:23:26 tach02 postfix/smtpd[11078]: generic_checks: name=reject_unauth_destination status=2
May 16 22:23:26 tach02 postfix/smtpd[11078]: > unknown[124.14.59.75]: 554 <sunmanssjx@126.com>: Relay access denied

请各位大大帮忙看看,谢谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP