Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#680619: nullmailer: dpkg-reconfigure corrupts IPv6 zone index in "remotes"

5 views
Skip to first unread message

Nick Leverton

unread,
Jul 7, 2012, 8:40:01 AM7/7/12
to
Package: nullmailer
Version: 1.11-1
Severity: normal
Tags: ipv6

Nullmailer now supports IPv6 and the Debian packages allows IPv6 literals
in debconf by wrapping them in [ ].

However the maintainer scripts don't cope with IPv6 link-local address
literals having a zone index such as [fe80:5054:ff:fef4:ef81%eth1] which
(in this example) gets corrupted to just "1 e".

Nick



--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

lu...@isonzo5.hopto.org

unread,
Nov 6, 2022, 10:50:03 AM11/6/22
to
Package: nullmailer
Version: 1:2.2-3+b1
Followup-For: Bug #680619
Control: tags -1 ipv6

Same behavior happens with passwords: scripts strip square brackets from them too, regardless of the smarthost being an IPv6 address or anything else.

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (900, 'stable'), (800, 'unstable'), (500, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nullmailer depends on:
ii debconf [debconf-2.0] 1.5.79
ii libc6 2.35-4
ii libgnutls30 3.7.8-2
ii libstdc++6 12.2.0-3
ii lsb-base 11.4
ii sysvinit-utils [lsb-base] 3.05-6

nullmailer recommends no packages.

nullmailer suggests no packages.

-- debconf information excluded

Jörg Mechnich

unread,
Jun 9, 2023, 1:41:49 PM6/9/23
to
Pretty sure the following contraption in the postinst script is responsible:

> 36 echo "$RET" | sed -r -e ':a s/(\[[^]:]*):/\1=/; ta' \
> 37 -e 's/[[:space:]]*:[[:space:]]*/\n/g' \
> 38 -e ':b s/(\[[^]=]*)=/\1:/; tb' \
> 39 -e 's/[][]//g' > /etc/nullmailer/remotes

Unfortunately I am not completely sure what happens here (and what could
possibly removed or fixed).

Jörg
OpenPGP_signature

David Bremner

unread,
Jun 28, 2023, 12:00:05 PM6/28/23
to
Jay <j_...@yahoo.com> writes:

> Pretty sure this also affects passwords with special characters. I'm not sure what problem the postinst script is trying to solve.

It is transforming this input format

This is a colon-separated list of remote servers to which to send each
message. Each entry contains a remote host name or address followed by
an optional protocol string 'host protocol'. The protocol name defaults
to smtp, and may be followed by command-line arguments for that module.
.
Examples:
.
smarthost
smarthost smtp --port=10025
mail.example.com smtp --user=foo --pass=bar
192.168.1.254 qmqp
[fe80::5054:ff:fef4:ef81] smtp

Into a syntax compatible with /etc/nullmailer/remotes
(see remotes(5)).

I didn't write that sed snippet, but I guess the intent is to stick to
posix tools to minimized dependencies.

I suspect part of the answer is not to use : as an input separator.
Apparently debconf can handle multiline strings directly using
"debconf-escape", so maybe that can replace the broken sed.
0 new messages