- 论坛徽章:
- 0
|
1.[root@localhost cyrus-sasl-2.1.20]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 www.btdstudio.com.cn ESMTP "Version not Available"
ehlo www.btdstudio.com.cn
250-www.btdstudio.com.cn
250-PIPELINING
250-SIZE 14336000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
dGVzdEBidGRzdHVkaW8uY29tLmNu
334 UGFzc3dvcmQ6
dGVzdA==
535 5.7.0 Error: authentication failed: generic failure
2.[root@localhost cyrus-sasl-2.1.20]# tail /var/log/maillog
Dec 17 13:17:45 localhost postfix/smtpd[16717]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 17 13:17:45 localhost postfix/smtpd[16717]: connect from localhost.localdomain[127.0.0.1]
Dec 17 13:18:28 localhost postfix/smtpd[16717]: warning: SASL authentication failure: could not verify password
Dec 17 13:18:28 localhost postfix/smtpd[16717]: warning: localhost.localdomain[127.0.0.1]: SASL login authentication failed: generic failure
Dec 17 13:18:28 localhost authdaemond: failed to connect to mysql server (server=localhost, userid=postfix): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
Dec 17 13:18:42 localhost postfix/qmgr[15314]: 155E78735A: from=<postmaster@change-this-to-your.domain.tld>, size=544, nrcpt=1 (queue active)
Dec 17 13:18:42 localhost postfix/qmgr[15314]: warning: connect to transport maildrop: Connection refused
Dec 17 13:18:42 localhost postfix/error[16719]: 155E78735A: to=<test@btdstudio.com.cn>, relay=none, delay=1086, delays=1086/0.01/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Dec 17 13:19:04 localhost postfix/smtpd[16717]: too many errors after AUTH from localhost.localdomain[127.0.0.1]
Dec 17 13:19:04 localhost postfix/smtpd[16717]: disconnect from localhost.localdomain[127.0.0.1]
3.[root@localhost cyrus-sasl-2.1.20]# postconf -n
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
message_size_limit = 14336000
mydestination = $myhostname localhost localhost.$mydomain
mydomain = btdstudio.com.cn
myhostname = www.btdstudio.com.cn
mynetworks = 127.0.0.0/8
myorigin = $mydomain
smtpd_banner = $myhostname ESMTP "Version not Available"
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/mailbox
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 20971520
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop
virtual_uid_maps = static:1001
有知道的朋友帮帮忙,找了很久都打不了原因,谢谢! |
|