Thanks to visit codestin.com
Credit goes to github.com

Skip to content

other: I can't send emails to the internet. #3488

@jpsanchezl10

Description

@jpsanchezl10

Subject

Other

Description

I deployed the docker with this command:

docker run -d --name=mailserver \
  --hostname="$HOSTNAME" \
  --domainname="example.com" \
  -p 25:25 -p 143:143 -p 587:587 -p 993:993 \
  -e ENABLE_SPAMASSASSIN=1 \
  -e SPAMASSASSIN_SPAM_TO_INBOX=1 \
  -e ENABLE_CLAMAV=1 \
  -e ENABLE_POSTGREY=1 \
  -e ENABLE_FAIL2BAN=0 \
  -e ENABLE_SASLAUTHD=0  \
  -e ONE_DIR=1 \
  -e TZ=America/New_York \
  -v ~/docker/mailserver/data/:/var/mail/ \
  -v ~/docker/mailserver/state/:/var/mail-state/ \
  -v ~/docker/mailserver/logs/:/var/log/mail/ \
  -v ~/docker/mailserver/config/:/tmp/docker-mailserver/ \
  --restart=unless-stopped \
  mailserver/docker-mailserver

I am able to receive emails from outside the internet (I set up my DNS records in Cloudflare), but I can only send email to other users inside the server (@example.com).

If I try to send email to Gmail, iCloud, yahoo, etc, they never receive the email.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions