Email issue: ldap:/etc/postfix/ldap-domains.cf is unavailable

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.27
How are you able to access your server: The webadmin
SSH

Describe your issue

I haven’t been receiving email, even from my install.
From my connected client, I can’t send email. When testing I receive the following message: The server response was: email@mydomain.tld: Temporary lookup failure

From Yunohost Admin Diagnosis, Email Section:

The SMTP mail server is able to send emails (outgoing port 25 is not blocked).
The SMTP mail server is reachable from the outside and therefore is able to receive emails!
Your reverse DNS is correctly configured!
The IPs and domains used by this server do not appear to be blacklisted
32 pending emails in the mail queues

Share relevant logs or error messages

Not sharing the whole logs, here are some relevant lines

LOGFILE: journalctl

Oct 11 21:46:34 dovecot[2886818]: imap-login: Disconnected: Connection closed: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol (no auth attempts in 1 secs): user=<>, rip=xxx.xx.xxx.xx, lip=xxx.xx.xxx.xx, TLS handshaking: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol, session=<fJAiUuxAqJmnXoq9>
Oct 11 21:46:38 dovecot[2886818]: imap-login: Disconnected: Connection closed: SSL_accept() failed: error:0A00018C:SSL routines::version too low (no auth attempts in 0 secs): user=<>, rip=xxx.xx.xxx.xx, lip=xxx.xx.xxx.xx, TLS handshaking: SSL_accept() failed: error:0A00018C:SSL routines::version too low, session=<rapZUuxAwpmnXoq9>

LOGFILE: /var/log/mail.log

2025-10-11T23:35:36.444149-04:00 apps postfix/smtpd[3308032]: connect from 53.150.216.162.bc.googleusercontent.com[162.216.150.53]
2025-10-11T23:35:36.499199-04:00 apps postfix/smtpd[3308032]: lost connection after EHLO from 53.150.216.162.bc.googleusercontent.com[162.216.150.53]
2025-10-11T23:35:36.499374-04:00 apps postfix/smtpd[3308032]: disconnect from 53.150.216.162.bc.googleusercontent.com[162.216.150.53] ehlo=1 commands=1
2025-10-11T23:37:01.334241-04:00 apps postfix/qmgr[3175649]: 4E6834012F: from=<>, size=3164, nrcpt=1 (queue active)
2025-10-11T23:37:01.357969-04:00 apps postfix/trivial-rewrite[3308084]: error: open /etc/postfix/ldap-domains.cf: No such file or directory
2025-10-11T23:37:01.359138-04:00 apps postfix/trivial-rewrite[3308084]: warning: ldap:/etc/postfix/ldap-domains.cf is unavailable. open /etc/postfix/ldap-domains.cf: No such file or directory
2025-10-11T23:37:01.359351-04:00 apps postfix/trivial-rewrite[3308084]: warning: virtual_mailbox_domains: ldap:/etc/postfix/ldap-domains.cf: table lookup problem
2025-10-11T23:37:01.359529-04:00 apps postfix/trivial-rewrite[3308084]: warning: virtual_mailbox_domains lookup failure
2025-10-11T23:37:01.360676-04:00 apps postfix/qmgr[3175649]: 40290403DB: from=<>, size=3195, nrcpt=1 (queue active)

Bon, en cherchant cette ligne je suis tombé sur ceci Impossible d'envoyer ou de recevoir des e-mail - #8 by jershon qui propose quelques pistes…

Done this, the client is now fetching mail. Not sure if the mail changes were listed in the update notes.

Just came here to link this with this thread..
I had the same issue, bcs I seem to have manually edited /etc/postfix/main.cf

So yunohost tools regen-conf -n -d returned:

...
-virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
+virtual_mailbox_domains = /etc/postfix/virtual-mailbox-domains
...

I changed that manually and it is up and running again.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.