who8383 发表于 2014-11-25 14:10

postfix+dovecot+mysql+postfixadmin 发信问题

本帖最后由 who8383 于 2014-11-25 14:13 编辑

我现在遇到这样的问题。使用postfixadmin创建的邮件账户可以登录,可以收邮件,但是不能发送,postfix日志如下,Nov 25 13:55:36 mail postfix/smtpd: connect from unknown
Nov 25 13:55:36 mail postfix/smtpd: warning: SASL: Connect to smtpd failed: No such file or directory
Nov 25 13:55:36 mail postfix/smtpd: fatal: no SASL authentication mechanisms
Nov 25 13:55:37 mail postfix/master: warning: process /usr/libexec/postfix/smtpd pid 2573 exit status 1
Nov 25 13:55:37 mail postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling在我telnet 25端口的时候不出现欢迎的画面,而且输入任何内容无效,过几秒钟就自动断开连接


postfix配置如下:# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Mailbox
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = dktest.com
myhostname = mail.dktest.com
mynetworks = 0.0.0.0/0
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = virtual
virtual_uid_maps = static:2000
# dovecot 配置如下:# doveconf -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final)
auth_mechanisms = plain login cram-md5
dict {
expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
listen = *
mail_location = maildir:~/Maildir
mbox_write_locks = fcntl
passdb {
driver = pam
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocols = imap pop3
service dict {
unix_listener dict {
    group = vmail
    mode = 0600
    user = vmail
}
}
ssl = no
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
driver = passwd
}
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
#

在网上也没找到有用的解决方法,现在可以使用mysql内的帐号登录,可是无法发信,pop3可以收信

who8383 发表于 2014-11-25 14:22

   我只知道是smtp发信有问题,但是问题在哪,该怎么解决,却是不清楚

who8383 发表于 2014-11-25 15:59

:dizzy:   有木有人啊

cryboy2001 发表于 2014-11-26 08:02

02.Nov 25 13:55:36 mail postfix/smtpd: warning: SASL: Connect to smtpd failed: No such file or directory

03.Nov 25 13:55:36 mail postfix/smtpd: fatal: no SASL authentication mechanisms

登录验证出问题,查看sasl配置看看

cryboy2001 发表于 2014-11-26 08:03

“在我telnet 25端口的时候不出现欢迎的画面,而且输入任何内容无效,过几秒钟就自动断开连接”

telnet都不能上,看看postfix有没有起动,防火墙有没有挡住

who8383 发表于 2014-11-26 09:22

sasl 配置怎么看?回复 4# cryboy2001


   

who8383 发表于 2014-11-26 09:22

postfix 启动的,防火墙关闭的 回复 5# cryboy2001


   

who8383 发表于 2014-11-26 10:14

最新报错,邮件发出去就被自动删掉了。这是什么情况Nov 26 09:58:25 mail postfix/postfix-script: starting the Postfix mail system
Nov 26 09:58:25 mail postfix/master: daemon started -- version 2.6.6, configuration /etc/postfix
Nov 26 09:58:35 mail postfix/smtpd: connect from unknown
Nov 26 09:58:37 mail postfix/smtpd: D147222E6D: client=unknown, sasl_method=LOGIN, sasl_username=1235@dktest.com
Nov 26 09:58:37 mail postfix/cleanup: D147222E6D: message-id=<201411251355395621728@dktest.com>
Nov 26 09:58:37 mail postfix/qmgr: D147222E6D: from=<1235@dktest.com>, size=1452, nrcpt=1 (queue active)
Nov 26 09:58:38 mail postfix/smtpd: disconnect from unknown
Nov 26 09:58:38 mail postfix/virtual: D147222E6D: to=<nsb@dktest.com>, relay=virtual, delay=0.52, delays=0.14/0.26/0/0.11, dsn=2.0.0, status=sent (delivered to maildir)
Nov 26 09:58:38 mail postfix/qmgr: D147222E6D: removed
Nov 26 10:01:48 mail postfix/smtpd: connect from unknown
Nov 26 10:01:50 mail postfix/smtpd: 566B222EC6: client=unknown, sasl_method=LOGIN, sasl_username=nsb@dktest.com
Nov 26 10:01:50 mail postfix/cleanup: 566B222EC6: message-id=<201411261002258447750@dktest.com>
Nov 26 10:01:50 mail postfix/qmgr: 566B222EC6: from=<nsb@dktest.com>, size=1459, nrcpt=1 (queue active)
Nov 26 10:01:50 mail postfix/smtpd: disconnect from unknown
Nov 26 10:01:50 mail postfix/virtual: 566B222EC6: to=<1235@dktest.com>, relay=virtual, delay=0.23, delays=0.09/0.02/0/0.12, dsn=2.0.0, status=sent (delivered to maildir)
Nov 26 10:01:50 mail postfix/qmgr: 566B222EC6: removed
Nov 26 10:04:58 mail postfix/smtpd: connect from unknown
Nov 26 10:05:55 mail postfix/smtpd: 2B62822E6D: client=unknown
Nov 26 10:06:00 mail postfix/cleanup: 2B62822E6D: message-id=<>
Nov 26 10:06:00 mail postfix/qmgr: 2B62822E6D: from=<123@123.com>, size=182, nrcpt=1 (queue active)
Nov 26 10:06:00 mail postfix/virtual: 2B62822E6D: to=<1235@dktest.com>, relay=virtual, delay=16, delays=16/0.02/0/0.03, dsn=2.0.0, status=sent (delivered to maildir)
Nov 26 10:06:00 mail postfix/qmgr: 2B62822E6D: removed
Nov 26 10:06:02 mail postfix/smtpd: disconnect from unknown
# 回复 4# cryboy2001


   

cryboy2001 发表于 2014-11-26 10:28

"最新报错,邮件发出去就被自动删掉了。这是什么情况"

邮件发出去删除很正常的

who8383 发表于 2014-11-26 10:36

可是在我的邮件目录下收不到我发出的邮件(本域的)回复 9# cryboy2001


   
页: [1] 2 3
查看完整版本: postfix+dovecot+mysql+postfixadmin 发信问题