Hi, I want to create a no-reply email on my vps using a docker mail server, I have followed the example to make a forwarding email, so I have created the email with docker exec -ti mailserver setup email add no-reply@jumblgram.com
using this yml, but now I am unsure how exactly I can connect to that email in outlook for example. Also I am struggling on how I can activate auto renewal of the ssl certificate.
services:
mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
container_name: mailserver
# Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
hostname: mail.jumblgram.com
ports:
- "25:25"
- "587:587"
- "465:465"
volumes:
- ./docker-data/dms/mail-data/:/var/mail/
- ./docker-data/dms/mail-state/:/var/mail-state/
- ./docker-data/dms/mail-logs/:/var/log/mail/
- ./docker-data/dms/config/:/tmp/docker-mailserver/
- ./data/letsencrypt:/etc/letsencrypt
- /etc/localtime:/etc/localtime:ro
environment:
- ENABLE_FAIL2BAN=1
# Using letsencrypt for SSL/TLS certificates:
- SSL_TYPE=letsencrypt
# Allow sending emails from other docker containers:
# Beware creating an Open Relay: https://docker-mailserver.github.io/docker-mailserver/latest/config/environment/#permit_docker
- PERMIT_DOCKER=network
# You may want to enable this: https://docker-mailserver.github.io/docker-mailserver/latest/config/environment/#spoof_protection
# See step 6 below, which demonstrates setup with enabled/disabled SPOOF_PROTECTION:
- SPOOF_PROTECTION=0
cap_add:
- NET_ADMIN # For Fail2Ban to work
restart: always
stop_grace_period: 1m
healthcheck:
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
timeout: 3s
retries: 0
certbot:
image: certbot/certbot
container_name: certbot
ports:
- "80:80"
volumes:
- ./data/letsencrypt:/etc/letsencrypt
- ./data/certbot/logs:/var/log/letsencrypt/
command: certonly --standalone --force-renewal --email <mail> -d mail.<domain> --agree-tos