Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mail-sandbox but postfix only starts on localhost #469

Open
belerovon opened this issue Dec 6, 2022 · 0 comments
Open

mail-sandbox but postfix only starts on localhost #469

belerovon opened this issue Dec 6, 2022 · 0 comments

Comments

@belerovon
Copy link

belerovon commented Dec 6, 2022

Hi all

I wanna use the mail-sandbox in my docker-compose and configured it like:
mail-sandbox:
container_name: "dmarc_mail-sandbox"
image: "webdevops/mail-sandbox:latest"
restart: "unless-stopped"
ports:
- "0.0.0.0:1125:25"
environment:
MAILBOX_USERNAME: dmarc
MAILBOX_PASSWORD: dmarc
POSTFIX_MYNETWORKS: 192.168.0.0/16

When I start the container I got a connection refused when do an telnet on :1125

On container I can see:
netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -

In main.cf:
inet_interfaces = 127.0.0.1

All the time when I try to set inet_interfaces = all and restart the postifix service, the interface will be set back to 127.0.0.1.

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant