I'm having some spam issues with my servers, and I'm investigating the cause.
The problem I have is that anyone can send emails through my server. This is my configuration:
sl-postfix:
image: simplelogin/postfix:4
restart: unless-stopped
ports:
- "25:25"
- "465:465"
environment:
ALIASES_DEFAULT_DOMAIN: mydomain.com
DB_HOST: postgres
DB_USER: user
DB_PASSWORD: pw
DB_NAME: simplelogin
EMAIL_HANDLER_HOST: sl-email
POSTFIX_FQDN: mail.mydomain.com
SSL_CERT_FOLDER: /mnt/certs
SIMPLELOGIN_COMPATIBILITY_MODE: v4
# RELAY_HOST: test-relay-server:587
# RELAY_HOST_USERNAME: myusername
# RELAY_HOST_PASSWORD: mypassword
volumes:
- certs:/mnt/certs
networks:
- sl-network
depends_on:
- postgres
- certgen
# Edit: I add relevant info about the network conf, because the email comes from 10.0.0.1
networks:
sl-network:
ipam:
config:
- subnet: 10.0.0.0/24
gateway: 10.0.0.1
When I connect to the port 25 to send an email from my computer with the command:
I'm having some spam issues with my servers, and I'm investigating the cause. The problem I have is that anyone can send emails through my server. This is my configuration:
When I connect to the port 25 to send an email from my computer with the command:
The email is sent without problems, so everyone can do it too. This is the sl-postfix log: