-
Notifications
You must be signed in to change notification settings - Fork 0
noreply@server.com configuration
Ségolène Albouy edited this page May 20, 2026
·
4 revisions
Test that you can send email using local SMTP server.
Run telnet localhost 25 then copy paste LINE BY LINE after changing FROM (change server.com with your institution domain) and TO addresses
EHLO localhost
MAIL FROM:<noreply@server.com>
RCPT TO:<your.address@example.com>
DATA
From: noreply@server.com
To: your.address@example.com
Subject: This is a test
Hi there :)
.
QUIT
or simply with swaks --to your.address@example.com --from <noreply@server.com --server 127.0.0.1:25
In front/app/config/.env
EMAIL_HOST="host.docker.internal"
EMAIL_PORT=25
EMAIL_USE_TLS=False
EMAIL_USE_SSL=False
EMAIL_HOST_USER=""
EMAIL_HOST_PASSWORD=""
DEFAULT_FROM_EMAIL="noreply@server.com "
SERVER_EMAIL="noreply@server.com "
In docker-compose.yml
web:
...
extra_hosts:
- "host.docker.internal:host-gateway"Add docker subnet
# find your network name
$ docker network ls
# find the IP of IPAM.Config.Subnet
$ docker network inspect docker_aikon_networkAdd IP to /etc/postfix/main.cf
$ sudo nano /etc/postfix/main.cf
...
inet_interfaces = all
mynetworks = ..... # add the IP
Allow firewall
sudo ufw allow from YOUR_IP to any port 25
sudo ufw reload