Postfix + auth

This is a discussion on Postfix + auth within the Linux Networking forums, part of the Linux Forums category; Hello. It's necessary for me to configurate smtp authentication in postfix. I'm using RedHat 9.0 distributive. It ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-13-2004
Segah
 
Posts: n/a
Default Postfix + auth

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.






Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:34 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0