Unable to get sendmail submission port to listen on IPv6

Jeremy Chadwick jdc at koitsu.org
Fri Apr 19 14:00:14 UTC 2013

On Fri, Apr 19, 2013 at 02:45:16PM +0200, Beat Siegenthaler wrote:
> Hi all,
> I did not recognize that 587 is only listening onIy on IPv4. Maybe it's
> new, maybe it was alltime so.
> sendmail  25090        root    4u  IPv4 0xfffffe01e810f3d0      0t0   
> TCP *:25 (LISTEN)
> sendmail  25090        root    5u  IPv6 0xfffffe01a988f000      0t0   
> TCP *:25 (LISTEN)
> sendmail  25090        root    6u  IPv4 0xfffffe011c53d000      0t0   
> TCP *:587 (LISTEN)
> FreeBSD 9.1-STABLE #8 r248707
> freebsd.submit.mc states:
> dnl If you use IPv6 only, change [] to [IPv6:::1]
> FEATURE(`msp', `[]')dnl
> But IPv6:::1 makes no difference, same picture only listen v4.
> hostname.domain.com grown over the years. TLS, some milters, SRS Hack.
> And working fine so far.
> Any hint for me?

Note: I have not used sendmail in years, so I'm going off of memory.

Multiple things:

1. The files that "control" sendmail are `hostname`.mc and
`hostname`.submit.mc.  The freebsd.mc and freebsd.submit.mc are "stock"

I assume you're already familiar with the need to run "make" in

2. `hostname`.mc controls options/features for the daemon -- i.e. the
thing that is listening on TCP ports.  `hostname`.submit.mc is for
outbound mail.  You're wanting sendmail to listen on TCP port 587, which
is what's used by SMTP clients (ex. Eudora, Thunderbird, etc.) trying to
send mail to sendmail (rather than the classic model/method of using
port 25).

3. What you need to add is here:


Good luck.

| Jeremy Chadwick                                   jdc at koitsu.org |
| UNIX Systems Administrator                http://jdc.koitsu.org/ |
| Mountain View, CA, US                                            |
| Making life hard for others since 1977.             PGP 4BD6C0CB |

More information about the freebsd-stable mailing list