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

smtpd "listen on all" looses interfaces with changing IPs #222

Closed
poolpOrg opened this issue May 21, 2013 · 4 comments

Comments

@poolpOrg
Copy link
Member

commented May 21, 2013

To: gilles@poolp.org, eric@openbsd.org, chl@openbsd.org
Subject: smtpd "listen on all" looses interfaces with changing IPs

Hi,

I just found out that my server rejects incoming smtp connections some days after I upgraded to 5.3.
netstat -a told me smtpd with "listen on all port 25" had bound to all
the IPs of all interfaces instead of just 0.0.0.0. This made it loose
the binding to my pppoe0, which gets assigned dynamic IPs.
Of course, I could fix this by doing "listen on 0.0.0.0" and
"listen on ::" instead.
Still I decided to report this since it caught me by surprise and I
guess think this is not the behaviour people will expect.

@poolpOrg

This comment has been minimized.

Copy link
Member Author

commented May 21, 2013

Received to bugs@

I explained that this is not really a bug:

On OpenBSD, in a "listen on all" line, "all" is not a keyword but the name of an interface group, like "listen on egress" or "listen on wlan".

We have to discuss and decide if we want it to be a special case or not, the ticket will stay opened until we discuss and take a decision

@ghost ghost assigned poolpOrg May 28, 2013

@ericfaurot

This comment has been minimized.

Copy link
Contributor

commented May 29, 2013

On openbsd, we want to keep the same semantic for "all", to be consistent across daemons.
Also, we don't want the semantic to change depending on the system. So either we completely
drop the "all" iface group emulation in portable, or we keep it as is.
If people what something else, they should use "listen on 0.0.0.0" explicitely.

@poolpOrg

This comment has been minimized.

Copy link
Member Author

commented May 29, 2013

I agree

I think we should drop the "all" emulation in portable because it will become increasingly difficult to know what's happening when portable has support for interface groups on systems that support them ... then "listen on all" will have different semantic on two different operating systems using the same portable snapshot.

@clongeau ?

Gilles

@clongeau

This comment has been minimized.

Copy link

commented May 29, 2013

Agreed. I'll remove it.

@poolpOrg poolpOrg closed this Jun 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.