Can not consult number of pending emails in queue / Impossible de consulter le nombre d'emails en attente dans la file d'attente

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.1.25
How are you able to access your server: The webadmin
SSH

Describe your issue

:united_kingdom: Good evening,

I don’t know exactly since when, but I noticed that in Diagnosis > Email, I get the message: Can not consult number of pending emails in queue.

Note: I’m using the Mailman3 application.

Can anyone help me resolve this error?

Thank you in advance. Have a good Friday evening and a good weekend,

C.

:france: Bonsoir,

Je ne sais pas exactement depuis quand, mais je me rends compte que dans Diagnostic > Email j’ai le message : Impossible de consulter le nombre d'emails en attente dans la file d'attente.

nb : j’utilise l’application Mailman3.

Si quelqu’un sait m’aider pour résoudre cette erreur ?

Par avance merci, bon vendredi soir et bon week-end,

C.

Share relevant logs or error messages

Erreur : invalid literal for int() with base 10: 'postqueue: warning: /etc/postfix/main.cf, line 203: overriding earlier entry: relay_domains=$mydestination null\n21'

Tu as modifié les configurations de postfix par hasard ?
Essaie d’exécuter yunohost tools regen-conf postfix

(In particular it looks like a duplicate entry for relay_domains)

:united_kingdom: Thank you very much, I’ll try that this weekend :smiling_face:

Apart from netplan for a random IPv6 problem, I don’t think I’ve changed anything other than the admin interface, precisely to avoid files that would no longer update.

I’ll keep you informed and add an English translation in case it can be of more use to the community. Thanks :person_bowing:

:france: Merci beaucoup, j’essaie ça dans le week-end :smiling_face:

En dehors de netplan pour un problème d’IPv6 aléatoires, je ne pense rien avoir changé autrement que par l’interface d’administration, justement pour éviter les fichiers qui ne se mettraient plus à jour.

Je vous tiens informé-es et j’ajoute une traduction en anglais au cas où ça puisse servir au maximum la communauté. Merci :person_bowing:

:united_kingdom: When I run the yunohost tools regen-conf postfix command I get:

:france: Quand j’exécute la commande yunohost tools regen-conf postfix j’obtiens :

Warning: postmap: warning: /etc/postfix/main.cf, line 203: overriding earlier entry: relay_domains=$mydestination null
Success! Configuration updated for 'postfix'
Warning: postmap: warning: /etc/postfix/main.cf, line 203: overriding earlier entry: relay_domains=$mydestination null
postfix:
  applied:
    /etc/postfix/relay_recipients.db:
      status: updated
  pending:

:united_kingdom: And when I look in /etc/postfix/main.cf I find at the end:

:france: Et quand je regarde dans /etc/postfix/main.cf je trouve Ă  la fin :

# Backup MX (secondary MX)
relay_domains = $mydestination null
relay_recipient_maps = hash:/etc/postfix/relay_recipients
maximal_queue_lifetime = 20d

unknown_local_recipient_reject_code = 550
owner_request_special = no

transport_maps =
    hash:/var/lib/mailman3/data/postfix_lmtp
local_recipient_maps =
    hash:/var/lib/mailman3/data/postfix_lmtp
relay_domains =
    hash:/var/lib/mailman3/data/postfix_domains

:united_kingdom: Is this a file that needs to be updated, or is it a configuration file that can remain static?

Do I need to correct or delete lines? Or if the file needs to be updated from time to time, is it possible to reset it?

Thanks in advance :smiling_face:

:france: Est-ce que c’est un fichier qui a besoin d’être mis à jour ou est-ce que c’est un fichier de configuration qui peut rester figé ?

Dois-je corriger ou supprimer des lignes ? Ou si le fichier a besoin d’être mis à jour de temps en temps est-il possible de le réinitialiser ?

Par avance merci :smiling_face:

:united_kingdom: Additionally, I notice in the yunohost logs that the problem appeared since the update I made on September 9: 20250909-005739-tools_upgrade.log

:france: En complément, je m’aperçois dans les logs yunohost que le problème est apparu depuis la mise à jour que j’ai faite le 9 septembre : 20250909-005739-tools_upgrade.log

https://paste.yunohost.org/raw/uvohosanih

:united_kingdom: And in the postfix logs I find:

:france: Et dans les logs de postfix je trouve :

postfix/trivial-rewrite[25096]: warning: do not list domain listes.sud-culture.org in BOTH virtual_mailbox_domains and relay_domains
postfix/sendmail[25601]: warning: /etc/postfix/main.cf, line 203: overriding earlier entry: relay_domains=$mydestination null
postfix/postdrop[25602]: warning: /etc/postfix/main.cf, line 203: overriding earlier entry: relay_domains=$mydestination null

Sounds like an issue with mailman3 that adds a relay_domains statement that ~conflicts with the relay_domains added via the “backup_mx_domains” from yunohost’s global settings … though in your case I see that it’s null which actually means there’s a bug in the core about it … i’m guessing you played with this setting but somehow it wasnt 100% reverted …

can you share the output of sudo grep backup_mx_domain /etc/yunohost/settings.yml

:united_kingdom: I’ve never actually touched these files. I haven’t logged into the servers via the console since at least July.
sudo grep backup_mx_domain /etc/yunohost/settings.yml asks me for the password and then displays nothing at all. And when I try to go to /etc/yunohost/ via ftp it says permission denied.
When I access the folder in command line and display the contents of the file there is:

admin_strength: '2'
nginx_compatibility: modern
portal_allow_edit_email_alias: 0
portal_allow_edit_email_forward: 0
postfix_compatibility: modern
user_strength: '2'
webadmin_allowlist: xxx.xxx.xxx.xxx>
webadmin_allowlist_enabled: 1

:france: Je n’ai vraiment jamais touché à ces fichiers. Je ne m’étais pas connecté au serveurs via la console depuis au moins le mois de juillet.
sudo grep backup_mx_domain /etc/yunohost/settings.yml me demande le mot de passe puis n’affiche rien du tout. Et quand j’essaie d’aller dans /etc/yunohost/ via ftp ça me dit permission denied.
Quand j’accède au dossier en lignes de commandes et que j’affiche le contenu du fichier il y a :

admin_strength: '2'
nginx_compatibility: modern
portal_allow_edit_email_alias: 0
portal_allow_edit_email_forward: 0
postfix_compatibility: modern
user_strength: '2'
webadmin_allowlist: xxx.xxx.xxx.xxx>
webadmin_allowlist_enabled: 1