Topic: iRedMail EE dovecot custom conf problem
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version: upgraded today to EE from 1.7.4
- Deployed via installer originally
- Linux/BSD distribution name and version: Debian 12.12
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes, til EE upgrade
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Putting custom settings in /opt/iredmail/custom/<software> worked fine for all software, except for custom dovecot-pgsql.conf settings.
This server has been modified to use the sdbox mail storage, a move I now regret but need to live with. This involves a few changes to dovecot.conf and putting my custom conf in /opt/iredmail/custom/dovecot/conf-enabled/dovecot.conf works fine.
But if I put a file in this directory named dovecot-pgsql.conf with my custom user_query string, Dovecot fails to start with error message "Unknown settings user_query." If I copy the entire contents of the dovecot-pgsql.conf file it takes issue with the very first config line: "Unknown setting: driver"
Can I specify custom user_query settings so the deploy / upgrade process doesn't overwrite? For now to get going I have hand-edited the file in the /etc/dovecot directory but I know that is over-written with any changes in the GUI.
For the record, my new user_query setting is below:
user_query = SELECT \
'%u' AS master_user, \
LOWER(CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir)) AS home, \
CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule \
FROM mailbox,domain \
WHERE mailbox.username='%u' \
AND mailbox.domain='%d' \
AND mailbox."enable%Ls%Lc"=1 \
AND mailbox.domain=domain.domain \
AND domain.backupmx=0 \
AND domain.active=1 \
AND mailbox.active=1
The only difference from the original is the removal of this line:
CONCAT(mailbox.mailboxformat, ':~/', mailbox.mailboxfolder) AS mail, \
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.