- 论坛徽章:
- 0
|
用postfix+dovecot架设的邮件服务器,用的是虚拟域名和虚拟用户,现在的情况是可以接受所有的邮件,但是只能发送本域的邮件,发往外部域的邮件(OE做客户端)出现日志:May 29 07:03:55 ns2 postfix/smtpd[3725]: connect from unknown[118.169.196.139]
May 29 07:03:55 ns2 postfix/smtpd[3725]: NOQUEUE: reject: RCPT from unknown[118.169.196.139]: 554 5.7.1 <candy59839@yahoo.com.tw>: Relay access denied; from=<michael78694@MyMainServer.com> to=<candy59839@yahoo.com.tw> proto=SMTP helo=<www.MyMainServer.com>
May 29 07:03:55 ns2 postfix/smtpd[3725]: lost connection after RCPT from unknown[118.169.196.139]
,配置文件内容分别为:
mail.cf
[root@ns2 ~]# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 209715200
mailq_path = /usr/bin/mailq
message_size_limit = 52428800
mydestination = localhost $myhostname localhost.$mydomain mail.$mydomain
myhostname = ns2.b-ape.com
mynetworks = 127.0.0.0/8 60.191.33.0/29
myorigin = mail.$mydomain
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILE:S
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_helo_name = ns2.b-ape.com
smtpd_banner = $myhostname ESMTP "Version not Available"
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /var/spool/postfix/private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:89
virtual_mailbox_base = /var/spool/vmail/
virtual_mailbox_domains = hash:/etc/postfix/vdomain
virtual_mailbox_limit = 209715200
virtual_mailbox_maps = hash:/etc/postfix/vbox
virtual_minimum_uid = 88
virtual_transport = virtual
virtual_uid_maps = static:89
dovecot.conf
base_dir = /var/run/dovecot/
protocols = imap pop3
listen = *
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
log_timestamp = "%b %d %H:%M:%S "
login_dir = /var/run/dovecot/login
login_user = dovecot
mail_location = maildir:/var/spool/vmail/%Ld/%Ln
mail_extra_groups = postfix
first_valid_uid = 88
mbox_read_locks = fcntl
protocol imap {
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
mail_plugin_dir = /usr/lib/dovecot/lda
sendmail_path = /usr/lib/sendmail
auth_socket_path = /var/run/dovecot/auth-master
}
auth_verbose = yes
auth default {
mechanisms = plain
passdb pam {
}
passdb passwd-file {
args = /etc/postfix/passwd
}
userdb passwd {
}
userdb passwd-file {
args = /etc/postfix/passwd
}
user = root
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
}
[root@ns2 ~]#
请高手指教,非常感谢!!
[ 本帖最后由 wangdejiu 于 2008-5-29 09:23 编辑 ] |
|