Re: migration from 2.3 to 2.4 : postfix can't deliver via lmtp

"Stefan G. Weichinger via dovecot" <[email protected]>
Newsgroups gmane.mail.imap.dovecot
Message-ID <[email protected]>
Am 31.03.26 um 11:51 schrieb Aki Tuomi via dovecot:
> That's a weird permission, can you send `doveconf -n`?

Sure:

# 2.4.1-4 (7d8c0e5759): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.1-4 (0a86619f)
# OS: Linux 6.12.74+deb13+1-amd64 x86_64 Debian 13.4
# Hostname: ---
dovecot_config_version = 2.4.1
acl_driver = vfile
auth_allow_weak_schemes = yes
auth_cache_size = 4M
auth_mechanisms = plain login
auth_verbose = yes
dovecot_storage_version = 2.4.0
import_environment {
   CORE_ERROR = %{env:CORE_ERROR}
   CORE_OUTOFMEM = %{env:CORE_OUTOFMEM}
   LISTEN_FDS = %{env:LISTEN_FDS}
   LISTEN_PID = %{env:LISTEN_PID}
   MALLOC_MMAP_THRESHOLD_ = 131072
   NOTIFY_SOCKET = %{env:NOTIFY_SOCKET}
   PATH = %{env:PATH}
   TZ = :/etc/localtime
}
info_log_path = /var/log/dovecot.info
listen = * [::]
log_path = /var/log/dovecot.log
mail_driver = maildir
mail_home = /home/vmail/%{user | domain}/%{user}
mail_path = ~
mail_plugins {
   acl = yes
   quota = yes
}
protocols = imap sieve lmtp
quota_status_overquota = 552 5.2.2 Mailbox is full
quota_storage_grace = 30M
quota_storage_size = 10G
sieve_extensions {
   fileinto = yes
   reject = yes
   envelope = yes
   encoded-character = yes
   vacation = yes
   subaddress = yes
   comparator-i;ascii-numeric = yes
   relational = yes
   regex = yes
   imap4flags = yes
   copy = yes
   include = yes
   body = yes
   variables = yes
   enotify = yes
   environment = yes
   mailbox = yes
   date = yes
   index = yes
   ihave = yes
   duplicate = yes
   mime = yes
   foreverypart = yes
   extracttext = yes
   editheader = yes
   mboxmetadata = yes
   servermetadata = yes
   spamtest = yes
   spamtestplus = yes
   virustest = yes
}
sieve_global_extensions {
   vnd.dovecot.debug = yes
   vnd.dovecot.environment = yes
   vnd.dovecot.pipe = yes
}
sieve_pipe_bin_dir = /usr/lib/dovecot/sieve
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_spamtest_score_max_value = 6
sieve_spamtest_status_header = X-Spamd-Result: .*? 
\[([[:digit:]]+\.[[:digit:]]+) / [[:digit:]]+\.[[:digit:]]+\];
sql_driver = mysql
ssl = required
verbose_proctitle = yes
namespace inbox {
   inbox = yes
   type = private
   mailbox Sent {
     auto = subscribe
     special_use = "\\Sent"
   }
   mailbox "Sent Messages" {
     special_use = "\\Sent"
   }
   mailbox Spam {
     auto = subscribe
     special_use = "\\Junk"
     sieve_script script-1 {
       cause = COPY
       driver = file
       path = /usr/lib/dovecot/sieve/report-spam.sieve
       type = before
     }
   }
   mailbox Trash {
     auto = subscribe
     special_use = "\\Trash"
   }
   mailbox Drafts {
     special_use = "\\Drafts"
   }
   mailbox * {
     sieve_script script-2 {
     }
   }
   imapsieve_from Spam {
     sieve_script script-2 {
       cause = COPY
       driver = file
       path = /usr/lib/dovecot/sieve/report-ham.sieve
       type = before
     }
   }
}
service quota-status {
   client_limit = 1
   executable = quota-status -p postfix
   inet_listener quota-status-listener-1 {
     port = 12340
   }
}
protocol lda {
   mail_plugins = sieve
}
protocol lmtp {
   mail_plugins = sieve
   postmaster_address = [email protected]
}
protocol imap {
   imap_idle_notify_interval = 29 mins
   mail_max_userip_connections = 50
   mail_plugins {
     imap_acl = yes
     imap_quota = yes
     imap_sieve = yes
   }
}
mysql /var/run/mysqld/mysqld.sock {
   dbname = postfix
   password = # hidden, use -P to show it
   user = postfix
}
passdb sql {
   default_password_scheme = MD5-CRYPT
   query = SELECT username as user, password, '/home/vmail/%{user | 
domain }/%{user}' as userdb_home, 'maildir:/home/vmail/%{user | domain 
}/%{user}' as userdb_mail, 1001 as userdb_uid, 1001 as userdb_gid FROM 
mailbox WHERE username = '%{user}' AND active = '1'
}
userdb prefetch {
}
userdb sql {
   iterate_query = SELECT userid AS username, domain FROM users
   query = SELECT username as user, password, '/home/vmail/%{user | 
domain }/%{user}' as userdb_home, 'maildir:/home/vmail/%{user | domain 
}/%{user}' as userdb_mail, 1001 as  userdb_uid, 1001 as userdb_gid FROM 
mailbox WHERE username = '%{user}' AND active = '1'
}
service imap-login {
   process_min_avail = 8
   inet_listener imap {
     port = 0
     ssl = no
     listen =
   }
   inet_listener imaps {
     port = 993
     ssl = yes
     listen =
   }
}
service lmtp {
   extra_groups = $SET:default_internal_group
   user = vmail
   unix_listener /var/spool/postfix/private/dovecot-lmtp {
     group = postfix
     mode = 0660
     user = postfix
   }
}
service imap {
}
service auth {
   client_limit = 1200
   user = root
   unix_listener /var/spool/postfix/private/auth {
     group = postfix
     mode = 0666
     user = postfix
   }
   unix_listener auth-client {
     group = postfix
     mode = 0660
     user = postfix
   }
   unix_listener auth-userdb {
     mode = 0660
   }
}
service auth-worker {
}
service dict {
   unix_listener dict {
   }
}
ssl_server {
   cert_file = /opt/dockerfiles/traefik/cert-dump/certs/some.crt
   dh_file = /etc/dovecot/dh.pem
   key_file = /opt/dockerfiles/traefik/cert-dump/private/some.key
}
service managesieve-login {
   inet_listener sieve {
     port = 4190
   }
}
service managesieve {
}
protocol 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
}
quota "User quota" {
   driver = count
   storage_size = 10G
}
protocol !indexer-worker {
   mail_vsize_bg_after_count = 100
}
sieve_script personal {
   active_path = /home/vmail/%{user | 
domain}/%{user}/sieve/scripts/.dovecot.sieve
   driver = file
   path = /home/vmail/%{user | domain}/%{user}/sieve/scripts
}
sieve_script before-0 {
   driver = file
   path = /usr/lib/dovecot/sieve/global-spam.sieve
   type = before
}


I am open to any suggestions, this is a work in progress ;-)

thank you

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.