Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[solved] Too many connections (mysql) - Postfix sleeping processes - lookup error

Featured Replies

Hallo,

 

ich benutze Postfix mit policyd-weight und selektivem Greylisting über postgrey.

 

Leider kam es immer wieder zu MySQL-Fehlern durch "Too many connections", obwohl ich schon in der my.cnf "max_connections = 500" gesetzt habe.

Entsprechend erhielt der postmaster Mails :Postfix SMTP server: errors from ....

In der mail.log fand sich:

warning: mysql:/etc/postfix/mysql-virtual_alias_maps.cf lookup error for "adresse@domain.de"
warning: DD03C2982F24: virtual_alias_maps map lookup problem for adresse@domain.de -- message not accepted, try again later

 

Ein "mysqladmin -pPASSWORT extended-status | grep -wi 'threads_connected\|threads_running' | awk '{ print $2,$4}'" zeigte mir mehrere hundert offene Verbindungen, 

mit ' mysql -pPASSWORT -e "show processlist;" ' fand ich hunderte Prozesse im Status Sleep auf meine froxlor-Datenbank.

 

Ursache: Postfix hält die Abfragen während der Mail-Bearbeitung offen.

Abhilfe: Postfix zur Verwendung von proxymap umkonfigurieren.

 

In der /etc/postfix/main.cf

proxy_read_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf,
                  proxy:mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf,
                  proxy:mysql:/etc/postfix/mysql-virtual_alias_maps.cf,
                  proxy:unix:passwd.byname

virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_alias_maps.cf

Jetzt sind nur noch weniger als 10 offene MySQL-Prozesse übrig und alles läuft wieder rund.

 

Diese Anpassung könnte man sicher auch in's Froxlor aufnehmen, denn Google zeigt, dass schon häufiger nach diesem Fehler gesucht wurde.

Klingt nett, wie wärs mit nem Pull-Request auf Github?

  • 4 months later...

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.