Remove connection limit dovecot

This commit is contained in:
Quentin 2021-09-14 17:46:06 +02:00
parent 6716687fd7
commit acd46fde80
Signed by: quentin
GPG Key ID: A98E9B769E4FF428
8 changed files with 10 additions and 4 deletions

View File

@ -39,7 +39,7 @@ services:
dovecot: dovecot:
build: build:
context: ./email/build/dovecot context: ./email/build/dovecot
image: superboum/amd64_dovecot:v5 image: superboum/amd64_dovecot:v6
# VoIP # VoIP
jitsi-meet: jitsi-meet:

View File

@ -11,7 +11,6 @@ RUN apt-get update && \
dovecot-lmtpd && \ dovecot-lmtpd && \
rm -rf /etc/dovecot/* rm -rf /etc/dovecot/*
RUN useradd mailstore RUN useradd mailstore
COPY ./conf/* /etc/dovecot/
COPY entrypoint.sh /usr/local/bin/entrypoint COPY entrypoint.sh /usr/local/bin/entrypoint
ENTRYPOINT ["/usr/local/bin/entrypoint"] ENTRYPOINT ["/usr/local/bin/entrypoint"]

View File

@ -43,6 +43,8 @@ userdb {
service imap-login { service imap-login {
service_count = 0 # performance mode. set to 1 for secure mode
process_min_avail = 1
inet_listener imap { inet_listener imap {
port = 143 port = 143
} }

View File

@ -29,7 +29,7 @@ job "email" {
driver = "docker" driver = "docker"
config { config {
image = "superboum/amd64_dovecot:v5" image = "superboum/amd64_dovecot:v6"
readonly_rootfs = false readonly_rootfs = false
ports = [ "zauthentication_port", "imaps_port", "imap_port", "lmtp_port" ] ports = [ "zauthentication_port", "imaps_port", "imap_port", "lmtp_port" ]
command = "dovecot" command = "dovecot"
@ -37,7 +37,7 @@ job "email" {
volumes = [ volumes = [
"secrets/ssl/certs:/etc/ssl/certs", "secrets/ssl/certs:/etc/ssl/certs",
"secrets/ssl/private:/etc/ssl/private", "secrets/ssl/private:/etc/ssl/private",
"secrets/conf/dovecot-ldap.conf:/etc/dovecot/dovecot-ldap.conf", "secrets/conf/:/etc/dovecot/",
"/mnt/glusterfs/email/mail:/var/mail/", "/mnt/glusterfs/email/mail:/var/mail/",
] ]
} }
@ -135,6 +135,11 @@ job "email" {
destination = "secrets/conf/dovecot-ldap.conf" destination = "secrets/conf/dovecot-ldap.conf"
perms = "400" perms = "400"
} }
template {
data = file("../config/dovecot/dovecot.conf")
destination = "secrets/conf/dovecot.conf"
perms = "400"
}
# ----- secrets ------ # ----- secrets ------
template { template {