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

Sometimes listen on localhost causes smtpd to not start #1106

Open
ryanakca opened this issue Dec 9, 2020 · 0 comments
Open

Sometimes listen on localhost causes smtpd to not start #1106

ryanakca opened this issue Dec 9, 2020 · 0 comments

Comments

@ryanakca
Copy link
Contributor

ryanakca commented Dec 9, 2020

Sometimes listen on localhost causes smtpd to listen on 127.0.0.1:25 twice. This reliably happens on Debian when 127.0.0.1 localhost is included twice in /etc/hosts.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976194#17 for details.

jchristgit added a commit to jchristgit/OpenSMTPD that referenced this issue Aug 8, 2024
When `127.0.0.1 localhost` is included twice in `/etc/hosts`, such as on
some installations of Debian, OpenSMTPD currently fails to start with
"address already in use". Fix it by not creating duplicate listeners on
for the same DNS entry.

Fixes OpenSMTPD#1075 and OpenSMTPD#1106.
jchristgit added a commit to jchristgit/OpenSMTPD that referenced this issue Aug 8, 2024
When `127.0.0.1 localhost` is included twice in `/etc/hosts`, such as on
some installations of Debian, OpenSMTPD currently fails to start with
"address already in use". Fix it by not creating duplicate listeners on
for the same DNS entry.

Fixes OpenSMTPD#1075 and OpenSMTPD#1106.
jchristgit added a commit to jchristgit/OpenSMTPD that referenced this issue Aug 8, 2024
When `127.0.0.1 localhost` is included twice in `/etc/hosts`, such as on
some installations of Debian, OpenSMTPD currently fails to start with
"address already in use". Fix it by not creating duplicate listeners for
the same DNS entry.

Fixes OpenSMTPD#1075 and OpenSMTPD#1106.
jchristgit added a commit to jchristgit/OpenSMTPD that referenced this issue Aug 11, 2024
When `127.0.0.1 localhost` is included twice in `/etc/hosts`, such as on
some installations of Debian, OpenSMTPD currently fails to start with
"address already in use". Fix it by checking that no existing listener
on the same address and port is configured before configuring another
one.

Fixes OpenSMTPD#1075 and OpenSMTPD#1106.
jchristgit added a commit to jchristgit/OpenSMTPD that referenced this issue Aug 11, 2024
When `127.0.0.1 localhost` is included twice in `/etc/hosts`, such as on
some installations of Debian, OpenSMTPD currently fails to start with
"address already in use". Fix it by checking that no existing listener
on the same address and port is configured before configuring another
one.

Fixes OpenSMTPD#1075 and OpenSMTPD#1106.
jchristgit added a commit to jchristgit/OpenSMTPD that referenced this issue Aug 11, 2024
When `127.0.0.1 localhost` is included twice in `/etc/hosts`, such as on
some installations of Debian, OpenSMTPD currently fails to start with
"address already in use". Fix it by only adding listeners for unique
addresses returned in a single `getaddrinfo` call.

Fixes OpenSMTPD#1075 and OpenSMTPD#1106.
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