added build & push
This commit is contained in:
@@ -10,7 +10,6 @@ apt-get autoclean
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
|
||||
EOF
|
||||
COPY etc/postfix/ /etc/postfix/
|
||||
RUN cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
|
||||
COPY --chmod=0775 entrypoint.sh /entrypoint.sh
|
||||
EXPOSE 25
|
||||
VOLUME /var/spool/postfix
|
||||
|
||||
@@ -20,32 +20,34 @@ alias_maps = hash:/etc/aliases
|
||||
alias_database = hash:/etc/aliases
|
||||
myorigin = zntrl.de
|
||||
# mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
||||
# trusts all hosts in the kopano docker network
|
||||
mynetworks_style = subnet
|
||||
|
||||
# virtual domains
|
||||
virtual_mailbox_domains = zntrl.de
|
||||
virtual_mailbox_domains = zntrl.de ads64.de
|
||||
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
|
||||
virtual_alias_maps = hash:/etc/postfix/virtual
|
||||
# virtual_transport = lmtp:unix:/var/spool/kopano/dagent.sock
|
||||
virtual_transport = lmtp:dagent:2003
|
||||
|
||||
# default domains
|
||||
# default outbound transport for all domains, use one relay for all domains
|
||||
# authenticates to relay.zntrl.de for authorisation to relay mail, see also: SMTP (outbound)
|
||||
default_transport = smtp:[relay.zntrl.de]:465
|
||||
|
||||
# SMTPD (inbound) TLS parameters
|
||||
smtpd_tls_key_file = /etc/postfix/ssl/private/nuc0.lan.key
|
||||
smtpd_tls_cert_file = /etc/postfix/ssl/nuc0-full-chain.pem
|
||||
smtpd_tls_CApath = /etc/ssl/certs
|
||||
smtpd_tls_CAfile = /etc/postfix/ssl/certs/balusign-signing-ca.pem
|
||||
smtpd_tls_cert_file = /etc/postfix/ssl/nuc0-full-chain.pem
|
||||
smtpd_tls_key_file = /etc/postfix/ssl/private/nuc0.lan.key
|
||||
smtpd_tls_security_level=may
|
||||
smtpd_tls_loglevel = 1
|
||||
|
||||
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
||||
|
||||
# SMTP (outbound)
|
||||
smtp_tls_CApath=/etc/ssl/certs
|
||||
smtp_tls_key_file = /etc/postfix/ssl/private/nuc0.lan.key
|
||||
smtp_tls_cert_file = /etc/postfix/ssl/nuc0-full-chain.pem
|
||||
smtp_tls_CApath=/etc/ssl/certs
|
||||
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
||||
smtp_tls_wrappermode = yes
|
||||
smtp_tls_security_level = encrypt
|
||||
|
||||
@@ -2,5 +2,7 @@ baloan@zntrl.de notused
|
||||
blu3prince@zntrl.de notused
|
||||
fafnir@zntrl.de notused
|
||||
postmaster@zntrl.de notused
|
||||
andreas@ads64.de notused
|
||||
postmaster@ads64.de notused
|
||||
# Comment out the entry below to implement a catch-all.
|
||||
# @zntrl.de notused
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/bash
|
||||
# docker login --username baloan --password 'yZBCUs5&@?:.'
|
||||
# docker run -d --name apache -p80:80 -v/root/kopano/dist:/var/www httpd
|
||||
# export DOCKER_BUILDKIT=1
|
||||
# docker run -d --name apache -p80:80 -v/root/kopano/dist:/var/www httpd
|
||||
docker build -t postfix .
|
||||
docker run -d --name postfix -v/root/kopano/postfix/etc/postfix:/etc/postfix postfix
|
||||
docker run -d --name postfix -v/root/kopano/postfix/etc/postfix:/etc/postfix -p8025:25 postfix
|
||||
docker logs -f postfix
|
||||
docker exec -it postfix sh
|
||||
|
||||
Reference in New Issue
Block a user