歡迎您光臨本站 註冊首頁

繼續發問!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

繼續發問!

用postfix+dovecot架設的郵件伺服器,用的是虛擬域名和虛擬用戶,現在的情況是可以接受所有的郵件,但是只能發送本域的郵件,發往外部域的郵件(OE做客戶端)出現日誌:May 29 07:03:55 ns2 postfix/smtpd: connect from unknown
May 29 07:03:55 ns2 postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 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: lost connection after RCPT from unknown
,配置文件內容分別為:
mail.cf
# 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 {
}
#

請高手指教,非常感謝!!

[ 本帖最後由 wangdejiu 於 2008-5-29 09:26 編輯 ]
《解決方案》

pop3的問題吧
《解決方案》

沒有認證發信

[火星人 ] 繼續發問!已經有323次圍觀

http://coctec.com/docs/service/show-post-30159.html