Topic: freebsd + postgresql + amavisd issue
======== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): NGINX
- Linux/BSD distribution name and version: freebsd 10.1-STABLE jail
- Related log if you're reporting an issue: May 4 19:06:38 mail postgres[73053]: [11-1] ERROR: relation "mailaddr" does not exist at character 31
====
Hi,
I've exactly this issue: http://www.iredmail.com/bbs/topic2925-i … resql.html .
It *seems* that the amavisd DBI commands do not connect correctly to the amavisd database before performing the sql query. I've checked and the tables DO exist in the db schema.
Please find below an excerpt of the log:
May 4 19:06:38 mail postgres[73053]: [11-1] ERROR: relation "mailaddr" does not exist at character 31
May 4 19:06:38 mail postgres[73053]: [11-2] STATEMENT: SELECT id,priority,email FROM mailaddr WHERE email IN ('@.', 'XXXXXX@XXXXXXX', '@XXXXXX', '@.XXXXXX', '@XXXXXX', '@.XXXXXX', '209.85.215.52', '209.*.*.52', '209.85.*.*', '209.*.215.52', '*.*.215.52', '209.85.*.52', '*.85.215.52', '*.*.*.52', '209.85.215.*', '*.*.*.*', '209.*.*.*') ORDER BY priority DESC
May 4 19:06:38 mail postgres[73062]: [11-1] ERROR: relation "users" does not exist at character 61
May 4 19:06:38 mail postgres[73062]: [11-2] STATEMENT: SELECT policy_name,message_size_limit
May 4 19:06:38 mail postgres[73062]: [11-3] FROM users, policy
May 4 19:06:38 mail postgres[73062]: [11-4] WHERE
May 4 19:06:38 mail postgres[73062]: [11-5] (users.policy_id=policy.id)
May 4 19:06:38 mail postgres[73062]: [11-6] AND (users.email IN ('tino@XXXXXX', '@XXXXXX', '@XXXXXX', '@.'))
May 4 19:06:38 mail postgres[73062]: [11-7] ORDER BY users.priority DESC
May 4 19:06:38 mail postgres[73062]: [11-8]
Thank you,
tino
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.