diff --git a/dockers/postfix/docker-compose.yml b/dockers/postfix/docker-compose.yml index 0aedf6b..a363cbe 100644 --- a/dockers/postfix/docker-compose.yml +++ b/dockers/postfix/docker-compose.yml @@ -18,6 +18,7 @@ services: - ${MAIN_IP}:465:465 - ${MAIN_IP}:993:993 - ${MAIN_IP}:4190:4190 + - ${MAIN_IP}:11334:11334 volumes: - mailData:/var/mail - mailState:/var/mail-state @@ -35,7 +36,7 @@ services: - HOSTNAME=${smtpHost} - DOMAINNAME=${domain} - CONTAINER_NAME=${smtpServName} - - LDAP_SERVER_HOST=ldap://${ldapServName} # your ldap container/IP/ServerName + - LDAP_SERVER_HOST=ldap://${ldapServName} - LDAP_SEARCH_BASE=${ldap_root} env_file: - env-config @@ -45,7 +46,11 @@ services: - SYS_PTRACE labels: - "traefik.enable=true" + - "traefik.http.routers.mail.middlewares=test-adminipallowlist@file" - "traefik.http.routers.mail.rule=Host(`mail.${domain}`) || Host(`smtp.${domain}`)" + - "traefik.http.routers.mail.entrypoints=websecure" + - "traefik.http.services.mail.loadbalancer.server.port=11334" + - "traefik.docker.network=postfixNet" # - "traefik.http.routers.webmails.rule=Host(`webmail.${domain}`)" # - "traefik.http.middlewares.reg-webmails.redirectregex.regex=^https://webmail.${domain}(.*)" # - "traefik.http.middlewares.reg-webmails.redirectregex.replacement=https://kaz.bzh/relever-ses-mails-chez-kaz-via-un-webmail" diff --git a/dockers/postfix/env-config b/dockers/postfix/env-config index 5bc4e3e..eb0d956 100644 --- a/dockers/postfix/env-config +++ b/dockers/postfix/env-config @@ -192,7 +192,9 @@ POSTFIX_INET_PROTOCOLS=all # --------------------- Spamassassin section ---------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------------------------------- +# commenter pour rspam ENABLE_SPAMASSASSIN=1 +# commenter pour rspam ENABLE_AMAVIS = 1 # deliver spam messages in the inbox (eventually tagged using SA_SPAM_SUBJECT) @@ -215,8 +217,26 @@ SPAM_SUBJECT=***SPAM***** # KAM is a 3rd party SpamAssassin ruleset, provided by the McGrail Foundation. If SpamAssassin is enabled, KAM can be used in addition to the default ruleset. +# commenter pour rspam ENABLE_SPAMASSASSIN_KAM=1 + +# ----------------------------------------------------------------------------------------------------------------------------- +# --------------------- Rspam section ---------------------------------------------------------------------------------- +# ----------------------------------------------------------------------------------------------------------------------------- + +#ENABLE_RSPAMD=1 +#RSPAMD_GREYLISTING=1 +#RSPAMD_LEARN=1 +#RSPAMD_HFILTER=0 +#RSPAMD_HFILTER_HOSTNAME_UNKNOWN_SCORE=0 +#RSPAMD_NEURAL=0 + +#ENABLE_OPENDKIM=0 +#ENABLE_OPENDMARC=0 +#ENABLE_POLICYD_SPF=0 + + # ----------------------------------------------------------------------------------------------------------------------------- # --------------------- Fetchmail section ------------------------------------------------------------------------------------- # -----------------------------------------------------------------------------------------------------------------------------