Hi phoenix and thank you for your answer
There was some information missing from my first post that could help you to pinpoint the problem but first I'll answer to your question:
I started solving the issue with forum thread
[SOLVED] Expired Cert in 5.0GA can cause mail Delivery failure
Then I went through the following articles step by step
Error (MTA): Unable to set STARTTLS - Zimbra :: Wiki Problem with Certificate can cause MTA Failure - Zimbra :: Wiki SSL Certificate Problems - Zimbra :: Wiki
I especially paid attention to the last one since it seemed to be the most complete answer. However I tried all of them step by step.
There was also the bug
Bug 22468 – new LDAP user testing in menu installer but I wasn't able to get much help out of that.
I forgot to mention that the Zimbra installation I'm trying to get working is a fresh one and the exact package I'm using is: zcs-5.0.8_GA_2462.UBUNTU6_64.20080709205157
The system is Ubuntu Server 7.10 64bit (I used some other threads from forum to get the installer working and to solve the issue with Apache already running on the server)
I'm also thinking if it can be possible that for some reason the Zimbra postfix is not actually using the open LDAP provided by the Zimbra package. The authentication at the server is done with external LDAP server (let's call it ldap.mycompany.com). The system allows also local account information and it is possible to log in using those local accounts.
The reason I'm thinking of this is the messages at /var/log/auth.log (replaced the actual ldap server with fake name)
Code:
Aug 5 21:57:31 localhost postfix/trivial-rewrite[21397]: nss_ldap: could not search LDAP server - Server is unavailable
Aug 5 21:57:51 localhost sudo: zimbra : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/opt/zimbra/libexec/zmmailboxdmgr status
Aug 5 21:57:51 localhost sudo: zimbra : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/opt/zimbra/libexec/zmmtastatus
Aug 5 21:57:51 localhost sudo: zimbra : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/opt/zimbra/libexec/zmmailboxdmgr status
Aug 5 21:58:01 localhost CRON[21820]: pam_unix(cron:session): session opened for user zimbra by (uid=0)
Aug 5 21:58:05 localhost sudo: zimbra : TTY=unknown ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/libexec/zmmailboxdmgr status
Aug 5 21:58:05 localhost sudo: zimbra : TTY=unknown ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/libexec/zmmtastatus
Aug 5 21:58:06 localhost CRON[21820]: pam_unix(cron:session): session closed for user zimbra
Aug 5 21:58:30 localhost postfix/trivial-rewrite[22076]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
Aug 5 21:58:30 localhost postfix/trivial-rewrite[22076]: nss_ldap: failed to bind to LDAP server ldaps://ldap.mycompany.com/: Can't contact LDAP server
Aug 5 21:58:30 localhost postfix/trivial-rewrite[22076]: nss_ldap: reconnecting to LDAP server...
Aug 5 21:58:30 localhost postfix/trivial-rewrite[22076]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
Aug 5 21:58:30 localhost postfix/trivial-rewrite[22076]: nss_ldap: failed to bind to LDAP server ldaps://ldap.mycompany.com/: Can't contact LDAP server
Aug 5 21:58:30 localhost postfix/trivial-rewrite[22076]: nss_ldap: reconnecting to LDAP server (sleeping 1 seconds)...
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: failed to bind to LDAP server ldaps://ldap.mycompany.com/: Can't contact LDAP server
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: could not search LDAP server - Server is unavailable
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: failed to bind to LDAP server ldaps://ldap.mycompany.com/: Can't contact LDAP server
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: reconnecting to LDAP server...
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: failed to bind to LDAP server ldaps://ldap.mycompany.com/: Can't contact LDAP server
Aug 5 21:58:31 localhost postfix/trivial-rewrite[22076]: nss_ldap: reconnecting to LDAP server (sleeping 1 seconds)...
Aug 5 21:58:32 localhost postfix/trivial-rewrite[22076]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
Aug 5 21:58:32 localhost postfix/trivial-rewrite[22076]: nss_ldap: failed to bind to LDAP server ldaps://ldap.mycompany.com/: Can't contact LDAP server
Aug 5 21:58:32 localhost postfix/trivial-rewrite[22076]: nss_ldap: could not search LDAP server - Server is unavailable
Aug 5 21:58:32 localhost postfix/trivial-rewrite[22080]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
Aug 5 21:58:32 localhost postfix/trivial-rewrite[22080]: nss_ldap: failed to bind to LDAP server ldaps://ldap.mycompany.com/: Can't contact LDAP server
The zmlocalconfig shows though (replaced the actual domain with mymaildomain.net):
Code:
$ zmlocalconfig | grep ldap
ldap_amavis_password = *
ldap_bind_url =
ldap_cache_account_maxage = 15
ldap_cache_account_maxsize = 20000
ldap_cache_cos_maxage = 15
ldap_cache_cos_maxsize = 100
ldap_cache_domain_maxage = 15
ldap_cache_domain_maxsize = 100
ldap_cache_group_maxage = 15
ldap_cache_group_maxsize = 200
ldap_cache_server_maxage = 15
ldap_cache_server_maxsize = 100
ldap_cache_timezone_maxsize = 100
ldap_cache_zimlet_maxage = 15
ldap_cache_zimlet_maxsize = 100
ldap_connect_pool_debug = false
ldap_connect_pool_initsize = 1
ldap_connect_pool_master = false
ldap_connect_pool_maxsize = 50
ldap_connect_pool_prefsize = 0
ldap_connect_pool_timeout = 120000
ldap_connect_timeout = 30000
ldap_deref_aliases = always
ldap_host = mail.mymaildomain.net
ldap_is_master = true
ldap_log_level = 49152
ldap_master_url = ldap://mail.mymaildomain.net:389
ldap_port = 389
ldap_postfix_password = *
ldap_read_timeout = 30000
ldap_replication_password = *
ldap_require_tls = false
ldap_root_password = *
ldap_starttls_supported = 1
ldap_url = ldap://mail.mymaildomain.net:389
postfix_sender_canonical_maps = ldap:${zimbra_home}/conf/ldap-scm.cf
postfix_transport_maps = ldap:${zimbra_home}/conf/ldap-transport.cf
postfix_virtual_alias_domains = ldap:${zimbra_home}/conf/ldap-vad.cf
postfix_virtual_alias_maps = ldap:${zimbra_home}/conf/ldap-vam.cf
postfix_virtual_mailbox_domains = ldap:${zimbra_home}/conf/ldap-vmd.cf
postfix_virtual_mailbox_maps = ldap:${zimbra_home}/conf/ldap-vmm.cf
zimbra_class_provisioning = com.zimbra.cs.account.ldap.LdapProvisioning
zimbra_ldap_password = *
zimbra_ldap_user = zimbra
zimbra_ldap_userdn = uid=zimbra,cn=admins,cn=zimbra
zimbra_zmprov_default_to_ldap = FALSE Best regards:
Aapo