Topic: duplicate key errors in postgresql log
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 6.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue: $PGDATA/pg_log/postgresql-xxx.log
====
Hi all
I get lots of messages
2016-09-08 23:30:07.426 CEST >ERROR: duplicate key value violates unique constraint "idx_greylisting_whitelists_account_sender"
< 2016-09-08 23:30:07.426 CEST >DETAIL: Key (account, sender)=(@., 182.50.78.64/28) already exists.
< 2016-09-08 23:30:07.426 CEST >STATEMENT: INSERT INTO greylisting_whitelists (comment, account, sender) VALUES ('AUTO-UPDATE: constantcontact.com', '@.', '182.50.78.64/28'); SELECT currval('greylisting_whitelists_id_seq')
...I suspect that the "UPSERT" logic may be somewhat inappropriate for postgreSQL?
Can I safely ignore these messages for now, or is there a fix?
Thanks and best regards
Marcel
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.