歡迎您光臨本站 註冊首頁

求教postfix老問題

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

求教postfix老問題

我配置的postfix+dovecot 伺服器開啟sasl認證功能,(虛擬用戶和虛擬域名),testsaslauthd -u ssss@b-ape.com -p xxxx.成功,telnet localhost 110,成功(dovecot 認證也成功),能夠接收郵件(來自本地和外部域),和發送本域名的郵件,但就是不能發向其它外部域如:xxx@sina.com,請教前輩,我已經被這個問題困繞了5天之久,謝謝!
下面是我的main.cf 和dovecot.conf
main.cf
myhostname = ns2.b-ape.com
myorigin = mail.$mydomain
mydestination = localhost $myhostname localhost.$mydomain mail.$mydomain
mynetworks = 127.0.0.0/8
inet_interfaces = all
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix
smtp_helo_name = ns2.b-ape.com
virtual_minimum_uid = 88
virtual_mailbox_base = /var/spool/vmail/
virtual_mailbox_maps = hash:/etc/postfix/vbox
virtual_mailbox_domains = hash:/etc/postfix/vdomain
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_uid_maps = static:89
virtual_gid_maps = static:89
virtual_transport = virtual
message_size_limit = 52428800
mailbox_size_limit = 209715200
virtual_mailbox_limit = 209715200
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps =
virtual_mailbox_limit_override = yes
virtual_overquota_bounce = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_local_domain =
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_path = /var/spool/postfix/private/auth
smtpd_banner=$myhostname ESMTP "Version not Available"
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
        reject_unauth_destination
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILE:S
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
html_directory = no
setgid_group = postdrop
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix

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 {

}
再次感謝!
《解決方案》

回復 #1 wangdejiu 的帖子

我的實際域名是b-ape.com,在virtual_mailbox_domains = hash:/etc/postfix/vdomain 的虛擬域名也是b-ape.com ,這樣有沒有問題?
《解決方案》

你是使用什麼客戶端進行外發的呢?
如果開啟了認證,同樣需要在各個步驟中進行認證。(參考錯誤信息仔細檢查)

[火星人 ] 求教postfix老問題已經有607次圍觀

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