Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-07-2008, 09:50 AM
Active Member
 
Posts: 41
Default [SOLVED] Postfix: Unable to Bind: 49 invalid credentials.

Hello all. I am experiencing the following error:

Code:
May  7 11:40:51 zimbra postfix/pickup[30622]: 1908AD6825A: uid=1002 from= orig_id=8D55AD68252
May  7 11:40:51 zimbra postfix/cleanup[30625]: warning: dict_ldap_connect: Unable to bind to server ldap://zimbra.server:389 as uid=zmpostfix,cn=appaccts,cn=zimbra: 49 (Invalid credentials)
May  7 11:40:51 zimbra postfix/cleanup[30625]: warning: 1908AD6825A: sender_canonical_maps map lookup problem for user@external.domain
I've change the server names for privacy reasons.

Until late yesterday the server was working fine. We were starting to train the spam filters. Late in the afternoon though it just stopped delivering mail. There were errors about the postfix service losing connection when composing the "RCPT TO". I followed some threads and it turned out that when i turned off antispam and antivirus the mail when through fine. Looking further into the logs it ~seemed~ as though perhaps there were some bind errors in terms of connecting so i took it upon myself to reset all of the ldap passwords using zmldappasswd. That leaves me where i am now (see error above).

Facts:
1. slapd is in fact listening on port 389.
2. everything was working properly until antispam and antivirus caused the messages to stop flowing though i am still not sure why.
3. dns and /etc/hosts are not an issue as all of the lookups, forward and reverse are working.

Any suggestions - how can i get postfix to start binding properly again?
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 09:57 AM
Moderator
 
Posts: 7,911
Default

Welcome to the forums

Have you tried
Code:
su - zimbra
zmmtactl stop ; zmmtactl start
after changing the LDAP passwords ?
__________________
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 09:58 AM
Active Member
 
Posts: 41
Default

Quote:
Originally Posted by uxbod View Post
Welcome to the forums

Have you tried
Code:
su - zimbra
zmmtactl stop ; zmmtactl start
after changing the LDAP passwords ?
Yes i did. I even rebooted. No luck.
Reply With Quote
  #4 (permalink)  
Old 05-07-2008, 10:01 AM
Active Member
 
Posts: 41
Default

I tried this also:

[SOLVED] Can't send Mails after restore on centos6 x64

Quote:
ldapmodify -h -x -D 'cn=config' -W
(use the zimbra_ldap_password here)
then type this:
dn: uid=zmpostfix,cn=appaccts,cn=zimbra
changetype: modify
replace: userPassword
userPassword:
^D

ldapmodify -h -x -D 'cn=config' -W
dn: uid=zmamavis,cn=appaccts,cn=zimbra
changetype: modify
replace: userPassword
userPassword:
^D

^D = CTRL + D
...but still getting the error above.
Reply With Quote
  #5 (permalink)  
Old 05-07-2008, 10:01 AM
Moderator
 
Posts: 7,911
Default

Code:
su - zimbra
zmlocalconfig -s | grep ldap_postfix_password
is that the correct password ? If not you can set it with
Code:
su - zimbra
zmlocalconfig -e ldap_postfix_passwd=**yourpassword**
and then restart the MTA service.
__________________
Reply With Quote
  #6 (permalink)  
Old 05-07-2008, 10:06 AM
Active Member
 
Posts: 41
Default

Quote:
Originally Posted by uxbod View Post
Code:
su - zimbra
zmlocalconfig -s | grep ldap_postfix_password
is that the correct password ? If not you can set it with
Code:
su - zimbra
zmlocalconfig -e ldap_postfix_passwd=**yourpassword**
and then restart the MTA service.
I tried what you said and it still will not bind. I also tried:

[SOLVED] Can't send Mails after restore on centos6 x64

Quote:
ldapmodify -h -x -D 'cn=config' -W
(use the zimbra_ldap_password here)
then type this:
dn: uid=zmpostfix,cn=appaccts,cn=zimbra
changetype: modify
replace: userPassword
userPassword:
^D

ldapmodify -h -x -D 'cn=config' -W
dn: uid=zmamavis,cn=appaccts,cn=zimbra
changetype: modify
replace: userPassword
userPassword:
^D

^D = CTRL + D
But that did not help either

I don't know what the original postfix ldap password was from the install. According to the documentation it is automatically generated. As such, i don't know what is currently stored in the LDAP database though i do know what is stored in zmlocalconfig.


***Sorry for the double post.

Last edited by ecologist09; 05-07-2008 at 10:08 AM.. Reason: Double post apology.
Reply With Quote
  #7 (permalink)  
Old 05-07-2008, 10:15 AM
Moderator
 
Posts: 7,911
Default

What version of ZCS and what OS are you running it on ?
__________________
Reply With Quote
  #8 (permalink)  
Old 05-07-2008, 10:17 AM
Active Member
 
Posts: 41
Default

Quote:
Originally Posted by uxbod View Post
What version of ZCS and what OS are you running it on ?
zcs-5.0.5_GA_2201.UBUNTU6.20080417012045

Ubuntu-Server 6.06.1 _Dapper Drake_ - Release i386 (20060807.1)
Reply With Quote
  #9 (permalink)  
Old 05-07-2008, 10:24 AM
Moderator
 
Posts: 7,911
Default

Hmm, okay so how about
Code:
su - zimbra
zmlocalconfig -e ldap_postfix_password=**yourpassword**
zmldappasswd -p **yourpassword**
zmmtactl stop ; zmmtactl start
__________________
Reply With Quote
  #10 (permalink)  
Old 05-07-2008, 10:31 AM
Active Member
 
Posts: 41
Default

Code:
root@zimbra:~# su - zimbra
zimbra@zimbra:~$ zmlocalconfig -e ldap_postfix_password=mypassword
zimbra@zimbra:~$ zmldappasswd -p mypassword
Updating local config and directory
zimbra@zimbra:~$ zmmtactl stop; zmmtactl start
postfix/postfix-script: stopping the Postfix mail system

..many messages...all seem to be just confirmations...

zimbra@zimbra:~$ tail -f /var/log/zimbra.log
May  7 12:26:56 zimbra postfix/postfix-script[8677]: warning: not owned by root: /opt/zimbra/postfix-2.4.7.5z/conf/main.cf
May  7 12:26:56 zimbra postfix/postfix-script[8690]: starting the Postfix mail system
May  7 12:26:56 zimbra postfix/master[8691]: daemon started -- version 2.4.7, configuration /opt/zimbra/postfix-2.4.7.5z/conf
May  7 12:26:57 zimbra saslauthd[8731]: detach_tty      : master pid is: 8731
May  7 12:26:57 zimbra saslauthd[8731]: ipc_init        : listening on socket: /opt/zimbra/cyrus-sasl-2.1.22.3z/state/mux
May  7 12:26:57 zimbra postfix/pickup[8697]: E973BD6825A: uid=1002 from= orig_id=8D55AD68252
May  7 12:26:57 zimbra postfix/trivial-rewrite[8762]: warning: dict_ldap_connect: Unable to bind to server ldap://zimbra.server:389 as uid=zmpostfix,cn=appaccts,cn=zimbra: 49 (Invalid credentials)
May  7 12:26:57 zimbra postfix/trivial-rewrite[8762]: warning: dict_ldap_connect: Unable to bind to server ldap://zimbra.server:389 as uid=zmpostfix,cn=appaccts,cn=zimbra: 49 (Invalid credentials)
May  7 12:26:58 zimbra postfix/cleanup[8701]: warning: dict_ldap_connect: Unable to bind to server ldap://zimbra.server:389 as uid=zmpostfix,cn=appaccts,cn=zimbra: 49 (Invalid credentials)
May  7 12:26:58 zimbra postfix/cleanup[8701]: warning: E973BD6825A: sender_canonical_maps map lookup problem for user@external.domain
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.