Package: opensmtpd
Version: 6.0.3p1-5+deb10u4
Version: 6.7.1p1-2
Severity: minor

Dear Maintainer,

These are present in 22c42ed535cf83098aa540afb8967663e3a7ceae
on Salsa ("debian/sid" branch).

/etc/smtpd.conf suggests[1]:
  # To accept external mail, replace with: listen on all
However, saying "listen on all" yields to the unit failing with the
following journal output:
  Jun 21 13:52:35 tarta systemd[1]: Starting OpenSMTPD SMTP server...
  Jun 21 13:52:35 tarta smtpd[30262]: invalid virtual ip or interface: all
  Jun 21 13:52:35 tarta systemd[1]: opensmtpd.service: Control process exited, 
code=exited, status=1/FAILURE
  Jun 21 13:52:35 tarta systemd[1]: opensmtpd.service: Failed with result 
'exit-code'.
  Jun 21 13:52:35 tarta systemd[1]: Failed to start OpenSMTPD SMTP server.

Confering with the parser[2]:
-- >8 --
listener_type   : socket_listener
                | if_listener
                ;

socket_listener : SOCKET sock_listen {
                        if (conf->sc_sock_listener) {
                                yyerror("socket listener already configured");
                                YYERROR;
                        }
                        create_sock_listener(&listen_opts);
                }
                ;

if_listener     : STRING if_listen {
                        listen_opts.ifx = $1;
                        create_if_listener(&listen_opts);
                }
                ;

listen          : LISTEN {
                        memset(&listen_opts, 0, sizeof listen_opts);
                        listen_opts.family = AF_UNSPEC;
                        listen_opts.flags |= F_EXT_DSN;
                } ON listener_type
                ;
-- >8 --
And neither create_{sock,if}_listener() parse "all" specially.

Mayhap using "0.0.0.0" would work, instead?

Best,
наб

[1]: 
https://salsa.debian.org/debian/opensmtpd/-/blob/22c42ed535cf83098aa540afb8967663e3a7ceae/smtpd/smtpd.conf#L8-10
[2]: 
https://salsa.debian.org/debian/opensmtpd/-/blob/22c42ed535cf83098aa540afb8967663e3a7ceae/smtpd/parse.y#L2488-2493

-- System Information:
Debian Release: 10.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-9-amd64 (SMP w/24 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, 
TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages opensmtpd depends on:
ii  adduser                3.118
ii  debconf [debconf-2.0]  1.5.71
ii  ed                     1.15-1
ii  libasr0                1.0.2-2
ii  libc6                  2.28-10
ii  libdb5.3               5.3.28+dfsg1-0.5
ii  libevent-2.1-6         2.1.8-stable-4
ii  libpam0g               1.3.1-5
ii  libssl1.1              1.1.1d-0+deb10u3
ii  lsb-base               10.2019051400
ii  zlib1g                 1:1.2.11.dfsg-1

Versions of packages opensmtpd recommends:
ii  opensmtpd-extras  5.7.1-4+b2

Versions of packages opensmtpd suggests:
ii  ca-certificates  20200601~deb10u1


-- debconf information excluded

Attachment: signature.asc
Description: PGP signature

Reply via email to