Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: [SOLVED] Postfix: Unable to Bind: 49 invalid credentials.

  1. #1
    ecologist09 is offline Active Member
    Join Date
    May 2008
    Posts
    41
    Rep Power
    7

    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?

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Welcome to the forums

    Have you tried
    Code:
    su - zimbra
    zmmtactl stop ; zmmtactl start
    after changing the LDAP passwords ?

  3. #3
    ecologist09 is offline Active Member
    Join Date
    May 2008
    Posts
    41
    Rep Power
    7

    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.

  4. #4
    ecologist09 is offline Active Member
    Join Date
    May 2008
    Posts
    41
    Rep Power
    7

    Default

    I tried this also:

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

    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.

  5. #5
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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.

  6. #6
    ecologist09 is offline Active Member
    Join Date
    May 2008
    Posts
    41
    Rep Power
    7

    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

    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 09:08 AM. Reason: Double post apology.

  7. #7
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    What version of ZCS and what OS are you running it on ?

  8. #8
    ecologist09 is offline Active Member
    Join Date
    May 2008
    Posts
    41
    Rep Power
    7

    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)

  9. #9
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Hmm, okay so how about
    Code:
    su - zimbra
    zmlocalconfig -e ldap_postfix_password=**yourpassword**
    zmldappasswd -p **yourpassword**
    zmmtactl stop ; zmmtactl start

  10. #10
    ecologist09 is offline Active Member
    Join Date
    May 2008
    Posts
    41
    Rep Power
    7

    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

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. postdrop fail to create file after upgrade to 5.0.3
    By echoadisan in forum Installation
    Replies: 23
    Last Post: 07-15-2013, 03:02 PM
  2. LDAP error code 49 - invalid credentials
    By fieze in forum Installation
    Replies: 8
    Last Post: 05-09-2008, 05:12 AM
  3. Problem with Mail Server - Need help!
    By joeleo in forum Installation
    Replies: 2
    Last Post: 03-04-2008, 12:03 PM
  4. Inconsistent Zimbra install behaviour
    By mkolbjor in forum Installation
    Replies: 2
    Last Post: 02-07-2008, 03:52 AM
  5. Replies: 3
    Last Post: 11-03-2007, 10:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •