Page 1 of 1

Mail & Mysql Problem

Posted: Fri 27. Jul 2018, 14:07
by Fiesi
Moin,

Ich hab mich schon seit nen paar Tagen gewundert wieso auf meine Mail keine Mails mehr ankommen :D

habe heute mal im mail.warn geschaut und dort viel mir folgendes auf:

Code: Select all

Jul 27 13:56:32 host postfix/trivial-rewrite[26428]: warning: connect to mysql server 127.0.0.1: Access denied for user 'keyhelp'@'127.0.0.1' (using password: YES)
Jul 27 13:56:32 host postfix/trivial-rewrite[26428]: warning: virtual_alias_domains: mysql:/etc/postfix/mysql-virtual-alias-maps.cf: table lookup problem
Jul 27 13:56:32 host postfix/trivial-rewrite[26428]: warning: virtual_alias_domains lookup failure
Jul 27 13:56:32 host postfix/trivial-rewrite[26428]: warning: virtual_alias_domains: mysql:/etc/postfix/mysql-virtual-alias-maps.cf: table lookup problem
Jul 27 13:56:32 host postfix/trivial-rewrite[26428]: warning: virtual_alias_domains lookup failure
Jul 22 06:46:32 host postfix/cleanup[7349]: warning: 85D7C220029A: virtual_alias_maps map lookup problem for support@xxx.net -- message not accepted, try again later
Jul 22 06:47:32 host postfix/cleanup[7349]: warning: connect to mysql server 127.0.0.1: Access denied for user 'keyhelp'@'127.0.0.1' (using password: YES)
Jul 22 06:47:32 host postfix/cleanup[7349]: warning: mysql:/etc/postfix/mysql-virtual-alias-maps.cf lookup error for "support@xxx.net"
Jul 22 06:47:32 host postfix/cleanup[7349]: warning: 94B8C22004D7: virtual_alias_maps map lookup problem for support@xxx.net -- message not accepted, try again later
Jul 22 06:48:32 host postfix/cleanup[7349]: warning: mysql:/etc/postfix/mysql-virtual-alias-maps.cf lookup error for "support@xxx.net"
Jul 22 06:48:32 host postfix/cleanup[7349]: warning: A3AF422004D7: virtual_alias_maps map lookup problem for support@xxx.net -- message not accepted, try again later
Jul 22 06:49:32 host postfix/cleanup[7349]: warning: connect to mysql server 127.0.0.1: Access denied for user 'keyhelp'@'127.0.0.1' (using password: YES)
Jul 22 06:49:32 host postfix/cleanup[7349]: warning: mysql:/etc/postfix/mysql-virtual-alias-maps.cf lookup error for "support@xxx.net"
Jul 22 06:49:32 host postfix/cleanup[7349]: warning: B2A3722004D7: virtual_alias_maps map lookup problem for support@xxx.net -- message not accepted, try again later
Jul 22 06:50:32 host postfix/cleanup[7349]: warning: mysql:/etc/postfix/mysql-virtual-alias-maps.cf lookup error for "support@xxx.net"

es scheint so, als ob keyhelp teilweise kein MYSQL zugriff mehr hat?
Es wurde nichts neu installiert außer eventuelle updates die Keyhelp ja glaub ich selber per Cron macht...

Re: Mail & Mysql Problem

Posted: Fri 27. Jul 2018, 15:02
by Daniel
Hallo,

versuche bitte einmal dich mit dem Passwort und dem mysql-user: keyhelp aus

Code: Select all

/etc/postfix/mysql-virtual-alias-maps.cf
direkt über SSH anzumelden.

Der Befehl ist:

Code: Select all

~$ mysql -ukeyhelp -p
Wenn dies nicht möglich ist, dann stimmt das Passwort nicht mit dem Tatsächlich gesetzten überein.
Sofern die generelle Funktion von Keyhelp selbst nicht beeinträchtigt ist, dann jenes Passwort aus

Code: Select all

/etc/keyhelp/config/config.json
in die

Code: Select all

/etc/postfix/mysql-virtual-*.cf
eingetragen werden. Postfix muss im Anschluss neugestartet werden.

Re: Mail & Mysql Problem

Posted: Fri 27. Jul 2018, 15:13
by Fiesi
Das hat Funktioniert:
root@host ~ # mysql -ukeyhelp -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 185230
Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>
PW's sind gleich in beiden Datein

Re: Mail & Mysql Problem  [GELÖST]

Posted: Fri 27. Jul 2018, 19:53
by Fiesi
Fehler gefunden.

Hatte in der .conf

Code: Select all

skip-name-resolve
mit drin, das mochte er wohl nicht.

Re: Mail & Mysql Problem

Posted: Fri 22. Feb 2019, 15:44
by Tobi
Ich bin auch drauf reingefallen :-(