TOPページ掲示板
作成日:2007年04月14日 作成:Yosi

Vine Linuxで自宅サーバーの掲示板で過去に質問された内容です。

No.2609 SMTP-Authの認証


No.2609 投稿時間:2007年04月14日(Sat) 16:26 投稿者名:miyao URL:
タイトル:SMTP-Authの認証

宮尾です。
以前作ったサーバが動かなくなりメールシステムを再構築しているのですが、
認証時エラーが出てしまい上手く動いてくれません。
設定のどこを疑えばいいのか解らず困っております。
ご教授下さい。
[root@********** postfix]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_percent_hack = no
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_privs = nobody
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
inet_interfaces = all
mail_owner = postfix
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = **********.com
myhostname = smtp.wing-server.com
mynetworks = 192.168.1.0/24 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $mydomain ESMTP unknown
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_unknown_client, permit
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
strict_rfc821_envelopes = yes
unknown_local_recipient_reject_code = 550

[root@******** postfix]# saslpasswd2 -u *****.com -c miyao
Password:
Again (for verification):

[root@********** postfix]# perl -MMIME::Base64 -e 'print encode_base64("miyao\miyao\*******");'
bWl************Wtp

[miyao@********** miyao]$ telnet 192.168.1.2 smtp
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
220 **********.com ESMTP unknown
ehlo localhost
250-smtp.**********.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-AUTH LOGIN DIGEST-MD5 CRAM-MD5 PLAIN
250 8BITMIME
AUTH PLAIN bWl************Wtp
535 Error: authentication failed
quit
221 Bye
Connection closed by foreign host.



TOPページ掲示板▲頁先頭