Enable milter in postfix and run the containers

master
Pierre Jaury 9 years ago
parent ccb37addf1
commit 080985fb56

@ -15,6 +15,11 @@ services:
volumes: volumes:
- /data/certs:/certs - /data/certs:/certs
redis:
image: redis
volumes:
- /data/redis:/data
imap: imap:
build: dovecot build: dovecot
image: freeposte/dovecot image: freeposte/dovecot
@ -39,9 +44,23 @@ services:
- /data/freeposte:/data - /data/freeposte:/data
- /data/certs:/certs - /data/certs:/certs
filter: milter:
build: amavis build: rmilter
image: freeposte/amavis image: freeposte/rmilter
env_file: freeposte.env
volumes:
- /data/filter:/data
antispam:
build: rspamd
image: freeposte/rspamd
env_file: freeposte.env
volumes:
- /data/filter:/var/lib/rspamd
antivirus:
build: clamav
image: freeposte/clamav
env_file: freeposte.env env_file: freeposte.env
volumes: volumes:
- /data/filter:/data - /data/filter:/data

@ -39,5 +39,13 @@ smtpd_sasl_security_options = noanonymous
############### ###############
virtual_mailbox_domains = ${sql}sqlite-virtual_mailbox_domains.cf virtual_mailbox_domains = ${sql}sqlite-virtual_mailbox_domains.cf
virtual_alias_maps = ${sql}sqlite-virtual_alias_maps.cf virtual_alias_maps = ${sql}sqlite-virtual_alias_maps.cf
virtual_transport = lmtp:inet:filter:2525 virtual_transport = lmtp:inet:imap:2525
lmtp_host_lookup = native lmtp_host_lookup = native
###############
# Milter
###############
smtpd_milters = inet:milter:9900
milter_protocol = 6
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
milter_default_action = tempfail
Loading…
Cancel
Save