| Summary: | mail/emailrelay: can't bind when only IPv4 addresses configured | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Dmitry Afanasiev <KOT> |
| Component: | Individual Port(s) | Assignee: | Martin Wilke <miwi> |
| Status: | Closed FIXED | ||
| Severity: | Affects Some People | CC: | miwi, robertn |
| Priority: | --- | Keywords: | patch |
| Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(robertn) |
| Hardware: | Any | ||
| OS: | Any | ||
Dmitry, thanks for the patch. In the future please try to provide patches as attachments so they can benefit from various flags and diff view. A commit references this bug: Author: miwi Date: Mon Jan 4 07:10:15 UTC 2016 New revision: 405217 URL: https://svnweb.freebsd.org/changeset/ports/405217 Log: - Make IPV6 optional On system without any IPv6 addresses emailrelay fails to start with messages: # service emailrelay start emailrelay: error: cannot bind the listening port: :::25 emailrelay: exception: cannot bind the listening port: :::25 /usr/local/etc/rc.d/emailrelay: WARNING: failed to start emailrelay PR: 204126 Submitted by: Dmitry Afanasiev Approved by: maintainer timeout Changes: head/mail/emailrelay/Makefile Hi, Thank you for your report, I made IPV6 optional which should solve the issue. |
On system without any IPv6 addresses emailrelay fails to start with messages: # service emailrelay start emailrelay: error: cannot bind the listening port: :::25 emailrelay: exception: cannot bind the listening port: :::25 /usr/local/etc/rc.d/emailrelay: WARNING: failed to start emailrelay To make it working on my IPv4-only system I removed --enable-ipv6 from configure's args: # svn diff /usr/ports/mail/emailrelay Index: /usr/ports/mail/emailrelay/Makefile =================================================================== --- /usr/ports/mail/emailrelay/Makefile (revision 399880) +++ /usr/ports/mail/emailrelay/Makefile (working copy) @@ -16,7 +16,7 @@ USES= autoreconf pkgconfig GNU_CONFIGURE= yes CONFIGURE_ENV= e_spooldir=${PREFIX}/var/spool/emailrelay -CONFIGURE_ARGS= --without-pam --enable-ipv6 +CONFIGURE_ARGS= --without-pam USE_RC_SUBR= ${PORTNAME} OPTIONS_DEFINE= DOCS DOXYGEN GUI OPENSSL But I think proper way to solve this issue is enabling IPv6 via "make config"