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"
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.