Aki,
# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.16 (09c29328)
# OS: Linux 5.14.16-arch1-1 x86_64 ext4
[root@wyvern ~]# dovecot -n
# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.16 (09c29328)
# OS: Linux 5.14.16-arch1-1 x86_64 ext4
# Hostname: wyvern.simplysam.us
auth_mechanisms = plain login
dict {
lastlogin = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
metadata = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
quota_clone = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
doveadm_worker_count = 5
first_valid_gid = 5000
first_valid_uid = 5000
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
last_valid_gid = 5000
last_valid_uid = 5000
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
lda_original_recipient_header = X-Original-To
lmtp_client_workarounds = whitespace-before-path
lmtp_rcpt_check_quota = yes
lmtp_save_to_detail_mailbox = yes
mail_attachment_detection_options = add-flags-on-save
mail_attribute_dict = proxy::metadata
mail_gid = 5000
mail_home = /var/mail/virtual/%Ld/%Ln
mail_location = maildir:/var/mail/virtual/%Ld/%Ln
mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve"
mail_uid = 5000
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy
include variables body enotify environment mailbox date index ihave duplicate
mime foreverypart extracttext spamtestplus virustest vnd.dovecot.pipe
vnd.dovecot.filter
namespace inbox {
inbox = yes
location =
mailbox Archive {
auto = subscribe
special_use = \Archive
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox "Sent Messages" {
auto = no
special_use = \Sent
}
mailbox Spam {
auto = subscribe
autoexpunge = 30 days
special_use = \Junk
}
mailbox Trash {
auto = subscribe
autoexpunge = 90 days
special_use = \Trash
}
prefix =
separator = /
type = private
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
antispam_backend = pipe
antispam_pipe_program = /usr/local/sbin/sa-learn-pipe
antispam_pipe_program_notspam_arg = --ham
antispam_pipe_program_spam_arg = --spam
antispam_pipe_tmpdir = /tmp
antispam_spam = Junk;Spam
antispam_trash = trash;Trash;Deleted Items;Deleted Messages
fts = flatcurve
fts_autoindex = yes
fts_autoindex_exclude = \Spam
fts_autoindex_exclude2 = \Trash
fts_enforced = yes
fts_flatcurve = commit_limit=500 max_term_size=30 min_term_size=2
optimize_limit=10 rotate_size=5000 rotate_time=5000 substring_search=yes
fts_languages = en es
fts_tokenizer_generic = algorithm=simple
fts_tokenizers = generic email-address
imapsieve_mailbox1_after = file:/var/lib/dovecot/sieve/report-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Junk
imapsieve_mailbox2_after = file:/var/lib/dovecot/sieve/report-spam.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_name = Spam
imapsieve_mailbox3_after = file:/var/lib/dovecot/sieve/report-ham.sieve
imapsieve_mailbox3_causes = COPY
imapsieve_mailbox3_from = Junk
imapsieve_mailbox3_name = *
imapsieve_mailbox4_after = file:/var/lib/dovecot/sieve/report-ham.sieve
imapsieve_mailbox4_causes = COPY
imapsieve_mailbox4_from = Spam
imapsieve_mailbox4_name = *
imapsieve_mailbox5_after = file:/var/lib/dovecot/sieve/report-ham.sieve
imapsieve_mailbox5_causes = COPY
imapsieve_mailbox5_name = Archive
imapsieve_url = sieve://wyvern.example.com:4190
last_login_dict = proxy::lastlogin
last_login_key = # hidden, use -P to show it
mailbox_alias_new = Sent Messages
mailbox_alias_new2 = Sent Items
mailbox_alias_new3 = Junk
mailbox_alias_old = Sent
mailbox_alias_old2 = Sent
mailbox_alias_old3 = Spam
quota = count:User quota
quota_clone_dict = proxy::quota_clone
quota_grace = 10%%
quota_max_mail_size = 30M
quota_rule = *:storage=1G
quota_rule2 = Trash:ignore
quota_rule3 = Spam:ignore
quota_status_nouser = DUNNO
quota_status_overquota = 552 5.2.2 Mailbox is full
quota_status_success = DUNNO
quota_vsizes = yes
sieve = file:~/sieve;active=~/dovecot.sieve
sieve_before = /var/lib/dovecot/sieve.d/
sieve_extensions = +spamtestplus +virustest +vnd.dovecot.pipe
+vnd.dovecot.filter
sieve_max_redirects = 30
sieve_plugins = sieve_extprograms
sieve_vacation_send_from_recipient = yes
trash = /etc/dovecot/dovecot-trash.conf.ext
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_enable_last = yes
pop3_reuse_xuidl = yes
protocols = imap pop3 lmtp sieve
quota_full_tempfail = yes
service auth-worker {
user = $default_internal_user
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
mode = 0666
}
}
service dict {
unix_listener dict {
group = vmail
mode = 0660
user = vmail
}
}
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
process_min_avail = 1
service_count = 1
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
unix_listener lmtp {
mode = 0666
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
process_min_avail = 1
service_count = 1
}
service managesieve {
process_limit = 20
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
service stats {
unix_listener stats-reader {
group = vmail
mode = 0664
user = vmail
}
unix_listener stats-writer {
group = vmail
mode = 0666
user = vmail
}
}
service submission-login {
inet_listener submission {
port = 587
}
}
ssl_cert = </etc/letsencrypt/live/wyvern.example.com/fullchain.pem
ssl_cipher_list =
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
verbose_proctitle = yes
protocol lmtp {
auth_username_format = %Lu
mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve
sieve"
}
protocol !indexer-worker {
mail_vsize_bg_after_count = 100
}
protocol lda {
mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve
sieve"
}
protocol imap {
imap_metadata = yes
mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve
imap_quota last_login"
}
protocol sieve {
mail_plugins =
}
protocol pop3 {
mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve
last_login"
}
protocol submission {
mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve"
}
Regards,
Elisamuel Resto
> On Nov 22, 2021, at 12:36 AM, Aki Tuomi <aki.tu...@open-xchange.com> wrote:
>
>
>>> On 21/11/2021 22:40 dove...@ptld.com wrote:
>>>
>>>
>>>> On 11-21-2021 1:15 pm, Elisamuel Resto wrote:
>>> I have gone through my configuration and even found a configuration example
>>> by Aki and that confirms how I configured it… still getting that
>>> error.
>>
>>> Nov 15 12:19:19 wyvern dovecot[461]: dict(51438): Panic: lib-sql: Too many
>>> bind args (2) for statement: SELECT meta_key FROM metadata WHERE meta_key
>>> LIKE AND username = ?
>>
>>
>> You fixed the query syntax to make sure that is not the issue?
>> "WHERE meta_key LIKE AND username = ?" is not valid syntax.
>
> It's not possible to fix the SQL syntax manually with dict driver. Sam, can
> you post your dict config, without passwords. Also which version of Dovecot &
> Pigeonhole is this?
>
> Aki