FS#20436 - [iana-etc] /etc/services does not know about smtps
Attached to Project:
Arch Linux
Opened by SeeSchloss (Schee) - Wednesday, 11 August 2010, 10:59 GMT
Last edited by Allan McRae (Allan) - Sunday, 29 April 2012, 11:23 GMT
Opened by SeeSchloss (Schee) - Wednesday, 11 August 2010, 10:59 GMT
Last edited by Allan McRae (Allan) - Sunday, 29 April 2012, 11:23 GMT
|
Details
This morning after installing iana-etc, I noticed postfix
would not start anymore and would tell me this in its
log:
Aug 11 12:21:57 aura postfix/master[18485]: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype The cause of this is that I have enabled smtps in postfix, and while the old /etc/services knew about smtps, the new one doesn't. Adding this line: smtps 465/udp # Secure SMTP fixes the problem, but I'm not sure what the right solution is... as the point of using iana-etc was, I guess, to avoid having to manage these files ourselves. |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 29 April 2012, 11:23 GMT
Reason for closing: Won't fix
Additional comments about closing: See comments
Sunday, 29 April 2012, 11:23 GMT
Reason for closing: Won't fix
Additional comments about closing: See comments
smtps 465/tcp # Secure SMTP
smtps 465/udp # Secure SMTP
Port 465 shows up Appendix A of the 1996 non-standard standard The SSL Protocol Version 3.0 as "Simple Mail Transfer Protocol with SSL". Unfortunately, it's not registered for SMTPs, it's registered for URD - "URL Rendesvous Directory for SSM" by Cisco. The recommended approach, at least for authentication, is to use START TLS encryption on submission port 587.
#
# Services added for the Debian GNU/Linux distribution
#
That section contains an entry for smtps. We might want to add such a section also and add services that used to be in our old /etc/services and are required for packages to work.
Well I did a quick diff between the old and new /etc/services and there are LOTS of changes. Most of them (10441) are new services which is fine, but 142 services have disappeared. I haven't looked at them closely yet, I'm attaching the diff.
I've always seen smtps in /etc/services but another solution,
at least for postfix, is to replace in master.cf
smtps inet n - n - - smtpd ...
by
465 inet n - n - - smtpd ...
But the second problem is that /etc/protocols is missing and this is unacceptable for many applications that simply require it including firewalling. This file should be returned. Is it ok to put that in this bug or should another one be filed for /etc/protocols?
And about missing services: How can an application rely on a service name being present that is not IANA-assigned? All we did was switch from some stolen /etc/services file with no history and clear indication of origin to the officially assigned service numbers by the IANA. All this shows is that applications are broken, not our services file.
Debian and Ubuntu in a "Services added for the Debian GNU/Linux distribution"
FreeBSD just has it
Gentoo has it as an alias name for the (IANA-assigned) "urd 465/tcp" entry
OpenBSD in a "Unofficial services" section
Remember /etc/services is a list of "WELL KNOWN PORT NUMBERS", not necessarily "OFFICIAL IANA-ASSIGNED PORT NUMBERS AND NOTHING ELSE". While using IANA's list as a base is a good idea, leaving out well-known, widely used service names *will* break things - especially when removing previously included services.
However, this means managing (at least part of) this list ourselves, and I can understand a decision to just rely on an external authority instead.
I'm with Schee here. Leaving well-known services/ports out does not feel right especially when they're included everywhere else.
I was googling for that Postfix error but your comments were dated August 10th 2010. And now I have logged in, all dates are replaced by my login.
I found similar reports in the forum on April 1st 2011 and August 31th 2007.
Now I wonder why I am affected only since I installed Postfix 2.8.4-1 and the one 24 hours before that was a -2 AFAIR. And the last change to /etc/services was a couple of weeks IIRC.
Yet this (old?) bug is not closed yet so there should be a reason.
I have never _relied_ on IANA for anything. Archlinux used to have a fine services file. The fact that my systems went tits up about two weeks ago as a result ofa a broken services file could get a reply in the form of "well, then don't blame /etc/services but blame your software". Which is exactly the point of the first line in this comment.
That means that webcache should not be renamed to http-alt, and then back to webcache, and then to http-alt again (port 8080) and I could care less about a service named urd instead of smtps. I know smtps is deprecated, it has been for yeears in favour of TLS, but try to tell that to $random_person.
Furthermore, Changing these files should never without a .pacnew replacement so that I can vimdiff.
Please fix and close this bug.
Copy, commit, close bug, done.
Either someone needs to petition iana to amend the list if there is something lacking, or, if that is impossible, there needs to be some sort of cross-distro effort to provide a secondary list. If each distro should customise the list on a case-by-case basis, we will all go mad.
I vote in favor of closing this as WONTFIX (upstream).
If you really need that, you should create an aur package that provides iana-etc and uses a different list, but IMHO we should stick to upstream.
Do we want a strict, narrow, iana-only services file or rather have a file that will prevent future bug reports and supports more service names? My gut feeling is in favour of the latter option, but on the other hand, 'man services' refers to rfc1700 (http://www.ietf.org/rfc/rfc1700.txt), which states:
The common use of the Internet protocols by the Internet community
requires that the particular values used in these parameter fields be
assigned uniquely. It is the task of the IANA to make those unique
assignments as requested and to maintain a registry of the currently
assigned values.
After some more digging it seems that smtps was already revoked in 1998: http://www.imc.org/ietf-apps-tls/mail-archive/msg00204.html, found via http://readlist.com/lists/postfix.org/postfix-users/18/94843.html.
I can only come to one conclusion after having read these pages which is the same as tomegun's conclusion: WONTFIX sounds good, we can't keep supporting deprecated stuff ad infinitum while we are also working with and/or preferring standards. It would be nice if we can let the arch users know that we are using an iana-only services file, and maybe an iana-etc-deprecated package could be created as an alternative, though i'd prefer it if that were not only in the aur.
Standards and reality differ greatly in this case.
The fact remains: We can add /etc/{services,protocols} to backup=(), and anyone who requires non standard entries in there, can add them.
I'd be fine with adding them to backup().
IMHO not having /etc/services and /etc/protocols in backup is a real bug, but adding non-standard ports by default because something non-standard might want to use it is a no-go.
Closing as "Won't Fix".