April 10, 2020

Docker Mail Server Note


tvial/docker-mailserver

https://github.com/tomav/docker-mailserver
https://hub.docker.com/r/tvial/docker-mailserver/dockerfile


env-mailserver:
OVERRIDE_HOSTNAME=mail.domain.name 
DMS_DEBUG=0
ONE_DIR=0
POSTMASTER_ADDRESS=admin@domain.name
PERMIT_DOCKER=
TLS_LEVEL=intermediate
SPOOF_PROTECTION= 
ENABLE_SRS=0 
ENABLE_POP3=
ENABLE_CLAMAV=0
ENABLE_FAIL2BAN=1
ENABLE_MANAGESIEVE=
POSTSCREEN_ACTION=enforce
SMTP_ONLY=
SSL_TYPE=
VIRUSMAILS_DELETE_DELAY=
ENABLE_POSTFIX_VIRTUAL_TRANSPORT=
POSTFIX_DAGENT=
POSTFIX_MAILBOX_SIZE_LIMIT=
POSTFIX_MESSAGE_SIZE_LIMIT=
PFLOGSUMM_TRIGGER=
PFLOGSUMM_RECIPIENT=
PFLOGSUMM_SENDER=
LOGWATCH_INTERVAL=
LOGWATCH_RECIPIENT=
REPORT_RECIPIENT=0 
REPORT_SENDER=
REPORT_INTERVAL=daily
POSTFIX_INET_PROTOCOLS=ipv4

ENABLE_SPAMASSASSIN=0
SPAMASSASSIN_SPAM_TO_INBOX=0
SA_TAG=2.0
SA_TAG2=6.31
SA_KILL=6.31
SA_SPAM_SUBJECT=***SPAM*****
ENABLE_FETCHMAIL=0
FETCHMAIL_POLL=300
ENABLE_LDAP=
LDAP_START_TLS=
LDAP_SERVER_HOST=
LDAP_SEARCH_BASE=
LDAP_BIND_DN=
LDAP_BIND_PW=
LDAP_QUERY_FILTER_USER=
LDAP_QUERY_FILTER_GROUP=
LDAP_QUERY_FILTER_ALIAS=
LDAP_QUERY_FILTER_DOMAIN= 
DOVECOT_TLS=
DOVECOT_USER_FILTER=
DOVECOT_PASS_FILTER=
DOVECOT_MAILBOX_FORMAT=maildir
ENABLE_POSTGREY=0
POSTGREY_DELAY=300
POSTGREY_MAX_AGE=35
POSTGREY_TEXT=Delayed by postgrey
POSTGREY_AUTO_WHITELIST_CLIENTS=5

ENABLE_SASLAUTHD=1
SASLAUTHD_MECHANISMS=rimap
SASLAUTHD_MECH_OPTIONS= EC2.Local.IP.Addr
SASLAUTHD_LDAP_SERVER=
SASLAUTHD_LDAP_SSL=
SASLAUTHD_LDAP_BIND_DN=cn=admin,dc=mydomain,dc=net
SASLAUTHD_LDAP_BIND_DN=
SASLAUTHD_LDAP_PASSWORD=
SASLAUTHD_LDAP_SEARCH_BASE=
SASLAUTHD_LDAP_FILTER=
SASLAUTHD_LDAP_START_TLS=
SASLAUTHD_LDAP_TLS_CHECK_PEER=
SASL_PASSWD=string 
SRS_SENDER_CLASSES=envelope_sender 
SRS_EXCLUDE_DOMAINS=
SRS_SECRET=  
DEFAULT_RELAY_HOST= 
#Relay host should be empty, submits email by localhost   
RELAY_HOST=  
RELAY_PORT=587
RELAY_USER=
RELAY_PASSWORD=
 Outlook Client Setting:


Useful docker commands for this container image:
#check log
sudo ./setup.sh debug show-mail-logs

#run command in container
sudo ./setup.sh debug login bash
#restart service
sudo docker-compose down

sudo docker-compose up -d mail



1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete