Am 23.10.24 um 16:06 schrieb Benny Pedersen via dovecot:
Stefan G. Weichinger via dovecot skrev den 2024-10-23 09:01:
ok?
i have
sieve = file:~/.sieve;active=~/.dovecot.sieve
note the ~ char :=)
mails is here in ~/.maildir so sieve data is not in maildir home
$home for my users comes from a db query and not from /etc/passwd or so
that query should be OK as normal mailing etc works great
I changed the setting slightly:
sieve =
file:/home/vmail/%d/%u/sieve/scripts;active=/home/vmail/%d/%u/sieve/.dovecot.sieve
edited filters in roundcube etc, checked symlink, looks ok
But it seems sieve isn't really working to me.
I temporarily disabled that learning stuff with rspamd and modernized
the used scripts etc
Right now I have:
# 2.3.21.1 (d492236fa0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.21.1 (49005e73)
# OS: Linux 6.1.0-26-amd64 x86_64 Debian 12.7
auth_cache_size = 4 M
debug_log_path = /var/log/dovecot-debug.log
default_process_limit = 300
info_log_path = /var/log/dovecot-info.log
listen = *
log_path = /var/log/dovecot.log
mail_debug = yes
mail_home = /mnt/mailboxes/%d/%u
mail_location = maildir:~
mail_plugins = " notify quota acl"
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 spamtest spamtestplus virustest editheader mboxmetadata
servermetadata imapsieve vnd.dovecot.imapsieve
namespace {
inbox = yes
location =
prefix =
separator = /
type = private
}
namespace {
location = maildir:/home/vmail/oeffentlich
prefix = Oeffentlich/
separator = /
subscriptions = yes
type = public
}
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
acl = vfile:/etc/dovecot/dovecot-acl:cache_secs=300
acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Spam
imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Spam
imapsieve_mailbox2_name = *
sieve =
file:/home/vmail/%d/%u/sieve/scripts;active=/home/vmail/%d/%u/sieve/.dovecot.sieve
sieve_extensions = +editheader +mboxmetadata +servermetadata
+spamtest +spamtestplus +virustest
sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.debug
+vnd.dovecot.environment
sieve_pipe_bin_dir = /usr/lib/dovecot/sieve
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_spamtest_max_value = 6
sieve_spamtest_status_header = X-Spamd-Result: .*?
\[([[:digit:]]+\.[[:digit:]]+) / [[:digit:]]+\.[[:digit:]]+\];
sieve_spamtest_status_type = score
sieve_trace_dir = /tmp/sieve_trace/
sieve_trace_level = commands
sieve_user_log = /home/vmail/%d/%u/sieve/sieve_user.log
}
protocols = imap sieve lmtp
service auth {
client_limit = 1200
unix_listener auth-client {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
mode = 0777
}
user = root
}
service imap-login {
process_min_avail = 10
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
ssl = required
ssl_ca = </etc/letsencrypt/pfsense/cloud_imap_mail_smtp_LE_cert.ca
ssl_cert = </etc/letsencrypt/pfsense/cloud_imap_mail_smtp_LE_cert.fullchain
ssl_cipher_list =
ALL:HIGH:!SSLv2:!MEDIUM:!LOW:!EXP:!RC4:!MD5:!aNULL:@STRENGTH
ssl_key = # hidden, use -P to show it
ssl_key_password = # hidden, use -P to show it
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
protocol lmtp {
mail_debug = yes
mail_plugins = " notify quota acl sieve"
postmaster_address = l...@xunil.at
}
protocol imap {
mail_debug = yes
mail_max_userip_connections = 20
mail_plugins = " notify quota acl imap_sieve imap_acl"
}
protocol sieve {
log_debug = category=sieve
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 ihave imapflags
}
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org