Topic: Problem with definer in remote MySQL
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Ubuntu 18.04.1 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I have a fresh new installation of iredmail, performed following the instruction for using an external MySQL server. I also added sa_bayes.
I can log into iRedAdmin, but at the beginning I could not log into Sogo. The problem was the one described here: https://forum.iredmail.org/topic11776-i … error.html
I solved the issue following this suggestion: https://forum.iredmail.org/post51660.html#p51660
I was able to log into sogo and I tried to send an email between two internal accounts (from test1@mydomain.com to test2@mydomain.com). The message was "sent" in Sogo, but never arrived to the receiver and in the logs I see:
Oct 3 05:28:15 mail amavis[2361]: (02361-04) (!!)TROUBLE in check_mail: gen_mail_id FAILED: find_or_save_addr: failed to insert addr test1@mydomain.com: sql exec: err=1449, HY000, DBD::mysql::st execute failed: The user specified as a definer ('admin_iredmail'@'10.133.59.88') does not exist at (eval 108) line 173. at (eval 110) line 116.
Oct 3 05:28:15 mail amavis[2361]: (02361-04) (!)PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20181003T052815-02361-Fi2KOkkn
Oct 3 05:28:15 mail postfix/amavis/smtp[2730]: 6C1B87F018: to=<test1@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=991, delays=991/0.1/0.01/0.05, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02361-04, gen_mail_id FAILED: find_or_save_addr: failed to insert addr test1@mydomain.com: sql exec: err=1449, HY000, DBD::mysql::st execute failed: The user specified as a definer ('admin_iredmail'@'10.133.59.88') does not exist at (eval 108) line 173. at (eval 110) line 116. (in reply to end of DATA command))I don't see any other view in the DB with that definer... maybe it is in some config file?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.