Sporadisch hat unser postfix-Server Mails temorär abgelehnt, da eine SQL-Abfrage nicht erfolgreich war:

Aug 29 09:45:28 mail01 postfix/smtpd[18754]: warning: mysql:/etc/postfix/grommunio-virtual-mailbox-alias-maps.cf: query failed: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation ‚=‘
Aug 29 09:45:28 mail01 postfix/smtpd[18754]: warning: mysql:/etc/postfix/grommunio-virtual-mailbox-alias-maps.cf lookup error for „œĸŕřŗśŝšşssťţŧúùŭûůüűũųūŵýŷÿźžżðþ@ourdomain.de
Aug 29 09:45:28 mail01 postfix/smtpd[7855]: warning: mysql:/etc/postfix/grommunio-virtual-mailbox-alias-maps.cf: query failed: Illegal mix of collations (ascii_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation ‚=‘
Aug 29 09:45:28 mail01 postfix/smtpd[7855]: warning: mysql:/etc/postfix/grommunio-virtual-mailbox-alias-maps.cf lookup error for „œĸŕřŗśŝšşssťţŧúùŭûůüűũųūŵýŷÿźžżðþ@ourdomain.de
Aug 29 09:45:28 mail01 postfix/smtpd[18754]: warning: mysql:/etc/postfix/grommunio-virtual-mailbox-alias-maps.cf lookup error for „valid.user@ourdomain.de

Wie man sieht, hat hier jemand ungültige Zeichen als Test verwendet, um unseren Server zu stressen. Dies an sich wäre i.o. da diese ungültigen Adressen zu einer Ablehnung führen. Nicht i.o. ist, dass die darauffolgenden Abfragen nach einem gültigen User „valid.user@ourdomain.de“ auch zu einem Fehler führen.

man MYSQL_TABLE(5) liefert einen Parameter, der helfe könnte dazu:

       retry_interval (default: 60)
The number of seconds that a database connection will be skipped
after an error.

NOTE: if the hosts setting specifies only one server, this
client assumes that the target is a load balancer and will
reconnect immediately after a single failure. With Postfix ver-
sions 3.9 and earlier, specify the same server twice.

This feature is available in Postfix 3.9 and later.

Postfix-Version prüfen:

rpm -qa | grep postfix

postfix-mysql-3.8.4-150600.3.3.1.x86_64

Bleibt also nur, den selben Server zweimal einzutragen in der SQL-Lookuptabelle:

grep host grommunio-virtual-mailbox-alias-maps.cf

hosts = localhost localhost

Und Dienst neustarten. Leider weiterhin selbes Ergebnis.

Definiert man localhost, findet automatisch die Verbindung via unix-socket statt.

Nächster Versuch:

hosts = 127.0.0.1 127.0.0.1

Selbes Verhalten.

Categories: Blog