Hello.
It's necessary for me to configurate smtp authentication in postfix. I'm
using RedHat 9.0 distributive.
It seem that I have configured everything correctly, but it doesn't work as
desired.
I'm using postfix-1.1.12-1. For authentication I'm using SASL which in its
turn use shadow for user recognition.
I want to use PLAIN authentication.
Here is an extract from /etc/postfix/main.cf file added by me:
----------------------------------------------------------------------------
-----------------------------
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,
check_relay_domains
----------------------------------------------------------------------------
-----------------------------
Here is the content of /usr/lib/sasl/smtpd.conf
----------------------------------------------------------------------------
-----------------------------
pwdcheckmethod: shadow
----------------------------------------------------------------------------
-----------------------------
The file /etc/shadow has 644 access.
I have tried to connect to smtp using telnet, what I can see:
----------------------------------------------------------------------------
-----------------------------
250-PIPELINING
250-SIZE 5000000
250-VRFY
250-ETRN
250-AUTH GSSAPI PLAIN LOGIN
250-AUTH=GSSAPI PLAIN LOGIN
250-XVERP
250 8BITMIME
----------------------------------------------------------------------------
-----------------------------
So postfix work correctly.
After making AUTH PLAIN [MIME64 encoded login and password of real user], I
got "535 Error: authentication failed"
The same result I got using mail client.
In mail logs I can see:
----------------------------------------------------------------------------
-----------------------------
Jan 13 09:26:42 postfix/smtpd[31172]: > : 250-ETRN
Jan 13 09:26:42 postfix/smtpd[31172]: > : 250-AUTH GSSAPI PLAIN LOGIN
Jan 13 09:26:42 postfix/smtpd[31172]: > : 250-AUTH=GSSAPI PLAIN LOGIN
Jan 13 09:26:42 postfix/smtpd[31172]: > : 250-XVERP
Jan 13 09:26:42 postfix/smtpd[31172]: > : 250 8BITMIME
Jan 13 09:26:42 postfix/smtpd[31172]: watchdog_pat: 0x80888e0
Jan 13 09:26:42 postfix/smtpd[31172]: < : AUTH PLAIN
Jan 13 09:26:42 postfix/smtpd[31172]: smtpd_sasl_authenticate: sasl_method
PLAIN
Jan 13 09:26:42 postfix/smtpd[31172]: smtpd_sasl_authenticate: uncoded
challenge:
Jan 13 09:26:42 postfix/smtpd[31172]: > : 334
Jan 13 09:26:42 postfix/smtpd[31172]: < : AHRlc3QAdGVzdA==
Jan 13 09:26:42 postfix/smtpd[31172]: smtpd_sasl_authenticate: decoded
response:
Jan 13 09:26:42 postfix/smtpd[31172]: warning: : SASL PLAIN authentication
failed
Jan 13 09:26:42 postfix/smtpd[31172]: > : 535 Error: authentication failed
----------------------------------------------------------------------------
-----------------------------
What have I done incorrectly?
Did anybody meet with similar problem?
Please help me, but don't offer to read documentation, I read numerous docs
and faqs.
|