Hello,
I use Opensmtpd with Dovecot LMTP. All this run but one point I not
understand.
I use Virtual Users, with System User vmail, home is /var/vmail but
dovecot stored message in path /home/vmail/<domain>/user. In configuration
files is /var/vmail (dovecot users).
Thx for help
Silvio
----
cat /etc/passwd | grep vmail
vmail:x:2000:2000:Vmail Directory and User:/var/vmail:/usr/sbin/nologin
----
dovecot -n
# 2.3.13 (89f716dc2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.13 (cdd19fe3)
# OS: Linux 5.10.0-18-amd64 x86_64 Debian 11.5
# Hostname: asia.sisi-systems.ovh
default_vsz_limit = 1 G
doveadm_password = # hidden, use -P to show it
doveadm_port = 20000
mail_gid = vmail
mail_location = maildir:~/Maildir
mail_plugins = " notify replication"
mail_privileged_group = vmail
mail_uid = vmail
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 imapsieve vnd.dovecot.imapsieve
namespace inbox {
inbox = yes
location =
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Spam {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix =
}
passdb {
args = scheme=SHA512-CRYPT username_format=%u /etc/dovecot/users
driver = passwd-file
}
plugin {
imapsieve_mailbox1_before = file:/var/vmail/sieve/global/learn-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Spam
imapsieve_mailbox2_before = file:/var/vmail/sieve/global/learn-ham.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Spam
imapsieve_mailbox2_name = *
mail_replica = tcp:192.168.1.112
quota = maildir:User quota
quota_exceeded_message = Benutzer %u hat das Speichervolumen ?berschritten. /
User %u has exhausted allowed storage space.
sieve =
file:/var/vmail/sieve/%d/%n/scripts;active=/var/vmail/sieve/%d/%n/active-script.sieve
sieve_before = /var/vmail/sieve/global/spam-global.sieve
sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment
sieve_pipe_bin_dir = /usr/bin
sieve_plugins = sieve_imapsieve sieve_extprograms
}
protocols = lmtp imap pop3 sieve
service aggregator {
fifo_listener replication-notify-fifo {
user = vmail
}
unix_listener replication-notify {
user = vmail
}
}
service doveadm {
inet_listener {
port = 20000
}
}
service imap-login {
inet_listener imap {
port = 143
}
vsz_limit = 1 G
}
service lmtp {
unix_listener lmtp {
group = vmail
user = vmail
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
ssl = yes
}
}
service managesieve {
process_limit = 1024
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
service replicator {
process_min_avail = 1
unix_listener replicator-doveadm {
mode = 0600
user = vmail
}
}
ssl = required
ssl_cert = </etc/lego/certificates/imap.sisi-systems.ovh.crt
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_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_min_protocol = TLSv1.2
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
override_fields = uid=vmail gid=vmail home=/home/vmail/%d/%n
}
protocol imap {
imap_idle_notify_interval = 29 mins
mail_max_userip_connections = 20
mail_plugins = " notify replication quota imap_quota imap_sieve"
}
protocol lmtp {
mail_plugins = " notify replication sieve notify push_notification"
postmaster_address = network at sisi-systems.ovh
}
protocol pop3 {
mail_max_userip_connections = 10
mail_plugins = " notify replication"
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20220926/85309b5a/attachment.sig>