Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 2021 03:39:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255406] mail/emailrelay: only listening on IPv6 ports and won't accept IPv4 address parameters
Message-ID:  <bug-255406-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255406

            Bug ID: 255406
           Summary: mail/emailrelay: only listening on IPv6 ports and
                    won't accept IPv4 address parameters
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: andymac@bullseye.apana.org.au
                CC: robertn@the-nelsons.org
                CC: robertn@the-nelsons.org
             Flags: maintainer-feedback?(robertn@the-nelsons.org)

System: 12.2 RELEASE amd64 with 2 ethernet interfaces both with IPv4 addres=
ses
but IPv6 disabled; loopback interface still has IPv4 and IPv6.  Port instal=
led
as package (emailrelay-1.9_6).

Problem: any attempt to configure an interface with only an IPv4 address for
the --listen option results in:

(for IPv4 address)
emailrelay: error: invalid ip address string: invalid format: 192.168.10.2
emailrelay: exception: invalid ip address string: invalid format: 192.168.1=
0.2

(for interface name)
emailrelay: error: invalid ip address string: invalid format: em0
emailrelay: exception: invalid ip address string: invalid format: em0

using "emailrelay --interface <address> --port 10025 --as-proxy localhost 2=
5"

If the interface isn't specified so emailrelay should listen on all interfa=
ces
for port 10025 (i.e. "emailrelay --port 10025 --as-proxy localhost:25"),
sockstat reports:
  daemon emailrelay <pid> 3 tcp6 *:10025 *:*

which suggests that emailrelay is only listening on IPv6 addresses as proto
would be tcp46 if listening on both -4 and -6 addresses.

PR 204126 seems to have been related but a long time ago.  I note from the =
port
commit log that the IPv6 configuration was changed relatively recently.  The
emailrelay documentation suggests that mixed IPv4 & IPv6 operation should be
supported.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255406-7788>