What type of hardware are you using: Raspberry Pi 0, 1 or 2 What YunoHost version are you running: 12.1.39 How are you able to access your server: SSH Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No
I looked at the logs and the problem doesn’t seem to be related to the LDAP filter or permissions. The message uid=marc; uid unused is not an error, it’s a normal debug message.
The problem: slapd (LDAP) too slow
The timeline from the logs:
22:09:06 - Connection lost to LDAP server, reconnecting
22:09:06 - Can't connect to server: 127.0.0.1
22:09:25 - Dovecot starts LDAP lookup for SMTP
22:09:35 - Postfix gives up (10s timeout): "Connection lost to authentication server"
22:09:46 - Dovecot FINALLY completes the lookup successfully
Postfix waits a maximum of ~10 seconds for a response from Dovecot, but your LDAP query takes 10-20 seconds. Result: SMTP fails systematically, while IMAP works (because it’s more tolerant of delays).
Dovecot needs 12 s for imap LDAP request (seen in another log file)
And you are right, request of POSTFIX fails before the end of LDAP request
Your questions:
i recently rebooted it
it degraded suddenly last week, when i de-installed LUFI. But i already had the same kind of problem, due to memory and number of threads, solved by changing some request parameters in nlscd.conf : see Impossible to connect to SSH or to SMTP
It seems there are not many ways to free up resources:
SOGo is my webmail app
other services should be kept also i think
This problem reminds me that i had several problems when Yunohost team released the >10 versions of Yunohost.
As a matter of fact, i installed Yunohost on this Rapsberry Pi 2 , maybe in 2017. I had RAM problems with recent Yunohot versions: i noticed new debian versions use more and more RAM
When i reinstalled the whole server last july, after my SDCard crash, i could not event find the RPI2 Yunohost OS on the web! I had to find a workaround to reinstall it.
As a conclusion, i tried to resist to this Planned obsolescence of my raspberry PI2, but i go through many problems now. This is the signal: i probably have to buy another more recent RPI i guess
For this limited hardware specs, you should use a desktop/mobile email client and avoid making pressure on the machine. It can work but don’t expect it to do more than it can.
So remove “unnecessary” apps to allow it to breath.
Autre possibilité à explorer: augmenter le timeout côté dovecot.
A tester :
ajout de auth_policy_server_timeout_msecs = 6000 (la valeur par défaut est 2000 ms) à la fin de /etc/dovecot/dovecot.conf et redémarrage de dovecot.
Même si cela change quelque chose, ce sera écrasé par regenconf… (à moins qu’un fichier d’override existe qq part ?)