Re: Authentication failed- main.cf file

This is a discussion on Re: Authentication failed- main.cf file within the mailing.postfix.users forums, part of the Mail Servers and Related category; Magnus B=E4ck wrote: >On Mon, May 30, 2005 7:53 am, sam wun said: > >[...] > > =...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-30-2005
sam wun
 
Posts: n/a
Default Re: Authentication failed- main.cf file

Magnus B=E4ck wrote:

>On Mon, May 30, 2005 7:53 am, sam wun said:
>
>[...]
>
> =20
>
>>But when I execute the same test on user test@authtec.com, I got a
>>smiliar problem (with slightly different) in the maillog file:
>>troot@mail02 [1:34pm] [~]# telnet localhost 110
>>Trying ::1...
>>Connected to localhost.authtec.com.
>>Escape character is '^]'.
>>+OK Hello there.
>>user test@authtec.com
>>+OK Password required.
>>pass testtest
>>-ERR Login failed.
>> =20
>>

>
>This has nothing to do with Postfix, but since you're having issues with
>LDAP in general maybe this error can be sorted out too.
>
> =20
>
>>Log message in maillog file:
>>May 30 13:34:15 mail02 pop3d: LOGIN FAILED, user=3Dtest@authtec.com,
>>ip=3D[::1]
>>May 30 13:34:56 mail02 postfix/trivial-rewrite[742]: warning:
>>dict_ldap_lookup: Search error -7: Bad search filter
>> =20
>>

>
>Fix this. You haven't showed the configuration that causes this error
>message, so I cannot help you.
>
> =20
>

Thanks for the guideline.
Here is the main.cf file, I have looked thru it , there is one think I=20
don't understand is "mailuser_query_filter =3D (&(mail02=3D%s)(userStatus=
=3D1))" .
Do I need to change this? Because in the /var/log/debug.log file, slapd=20
reported that the search is based on ou=3Dmail02. But I never defined a=20
base is started on mail02. The search base should be start on=20
dc=3Dauthtec,dc=3Dcom ?

#=3D=3D=3D=3D=3D=3D=3D BASE =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
myhostname =3D mail02.authtec.com
mydomain =3D authtec.com
home_mailbox =3D Maildir/
mydestination =3D $myhostname $mydomain
local_recipient_maps =3D
mynetworks =3D 127.0.0.1, 10.8.0.0/16
alias_maps =3D hash:/usr/local/etc/postfix/aliases
alias_database =3D hash:/usr/local/etc/poastfix/aliases
local_transport =3D virtual
virtual_transport =3D virtual
virtual_mailbox_base =3D /usr/local/vmail
virtual_gid_maps =3D static:80
virtual_uid_maps =3D static:80
virtual_minimum_uid =3D 80

#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ldap mailbox =3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
#virtual_mailbox_domains =3D hash:/usr/local/etc/postfix/transport=20
//...................
virtual_mailbox_maps =3D ldap:mailuser
mailuser_timeout =3D 10
mailuser_server_host =3D localhost
mailuser_server_port =3D 389
mailuser_search_base =3D dc=3Dauthtec,dc=3Dcom
mailuser_query_filter =3D (&(mail02=3D%s)(userStatus=3D1))
mailuser_result_attribute =3D mailMessageStore
mailuser_bind =3D yes
mailuser_bind_dn =3D cn=3Dmailadmin,dc=3Dauthtec,dc=3Dcom
mailuser_bind_pw =3D mail02pass
mailuser_version =3D 3

#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ldap Quota =3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
message_size_limit =3D 5242880
virtual_mailbox_limit_size =3D 5242880
virtual_mailbox_limit_override=3Dyes
#virtual_mailbox_limit_inbox =3D no
virtual_maildir_extended =3D yes
virtual_create_maildirsize =3D yes

virtual_mailbox_limit_maps =3D ldap:mailquota
mailquota_timeout =3D 10
mailquota_server_host =3D localhost
mailquota_server_port =3D 389
mailquota_search_base =3D dc=3Dauthtec,dc=3Dcom
mailquota_query_filter =3D (mail02=3D%s)
mailquota_result_attribute =3D mailQuota
mailquota_bind =3D yes
mailquota_bind_dn =3D cn=3Dmailadmin,dc=3Dauthtec,dc=3Dcom
mailquota_bind_pw =3D mail02pass
mailquota_version =3D 3

#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SASL =3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
smtpd_sasl_auth_enable =3D yes
smtpd_sasl_security_options =3D noanonymous
broken_sasl_auth_clients =3D yes
smtpd_recipient_restrictions =3D permit_sasl_authenticated=20
permit_auth_destination reject
#smtpd_sasl_local_domain =3D $mydomain
smtpd_client_restrictions =3D permit_sasl_authenticated



>Stop top-posting.
>
>[...]
>
> =20
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 08:21 PM.


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