Bug#1081253: closed by Andreas Metzler (Re: Bug#1081253: exim4-config: Upgrage exim4-config (4.96-15+deb12u5) reset dc_local_interfaces)

2024-10-06 Thread Andreas Metzler
On 2024-09-10 Graeme Vetterlein  wrote:
> Thanks for that. I'd suggest the man page for this is somewhat lacking in
> detail:


> dc_local_interfaces
>  List  of  IP addresses the Exim daemon should listen on. If
> this
>  is left empty,  Exim  listens  on  all  interfaces.  Sets
>  macro
>  MAIN_LOCAL_INTERFACES only if there is a non-empty value.



> vs:

> dc_local_interfaces
>  List  of  IP addresses and port numbers the Exim daemon should
> listen on.

>      of the form []:;[ address>]:;...  **

>          If this is explicitly set to empty
> (dc_local_interfaces='')  Exim  listens  on  all  interfaces.

>  If this is not explicitly set, a default using localhost
> will be used.

>  Sets  macro MAIN_LOCAL_INTERFACES only if there is a
> non-empty value.


> (I suspect the above is not the full story , it's what I've gleaned though
> trial an error)
[...]

That is not what happens. If an option is unset, it is set to a default
value the next time the package mainterscripts (postinst) are run (i.e.
on the next upgrade or on dpkg-reconfigure).

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



Bug#1081253: closed by Andreas Metzler (Re: Bug#1081253: exim4-config: Upgrage exim4-config (4.96-15+deb12u5) reset dc_local_interfaces)

2024-09-10 Thread Graeme Vetterlein
Thanks for that. I'd suggest the man page for this is somewhat lacking 
in detail:



dc_local_interfaces
 List  of  IP addresses the Exim daemon should listen on. 
If this
 is left empty,  Exim  listens  on  all  interfaces.  Sets 
 macro

 MAIN_LOCAL_INTERFACES only if there is a non-empty value.



vs:

dc_local_interfaces
 List  of  IP addresses and port numbers the Exim daemon 
should listen on.


     of the form []:;[address>]:;... **


         If this is explicitly set to empty 
(dc_local_interfaces='')  Exim  listens  on  all  interfaces.


 If this is not explicitly set, a default using localhost 
will be used.


 Sets  macro MAIN_LOCAL_INTERFACES only if there is a 
non-empty value.



(I suspect the above is not the full story , it's what I've gleaned 
though trial an error)


**Poor meta syntax  on my part since '[' is literal while '<' is meta 
syntax ... I'm guessing there is a better "house style"



On 10/09/2024 18:03, Debian Bug Tracking System wrote:

This is an automatic notification regarding your Bug report
which was filed against the exim4-config package:

#1081253: exim4-config: Upgrage exim4-config (4.96-15+deb12u5) reset 
dc_local_interfaces

It has been closed by Andreas Metzler.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Andreas 
Metzler  by
replying to this email.



Bug#1081253: exim4-config: Upgrage exim4-config (4.96-15+deb12u5) reset dc_local_interfaces

2024-09-09 Thread Graeme Vetterlein
Package: exim4-config
Version: 4.96-15+deb12u5
Severity: normal

Dear Maintainer,


I ran synantic , which applied the update: exim4-config (4.96-15+deb12u5)
then rebooted the system


I had previously REMOVED all settings of dc_local_interfaces in 
/etc/exim4/update-exim4.conf.conf

Following a the reboot, SMTP was only listening on the localhost interface

Examining the files , I discovered the line:

dc_local_interfaces='127.0.0.1 ; ::1'

Had been added to /etc/exim4/update-exim4.conf.conf ( and a regen run)


FYI: I had previously set dc_local_interfaces . However I needed the file to be 
portable
between 2 systems ( the mail gateway is xbox.home which is a CNAME for 
ybox.home or zbox.home...alternates
on Debian releases) the interface names differ between these 2 systems.


-- Package-specific info:
Exim version 4.96 #2 built 09-Jul-2024 08:53:35
Copyright (c) University of Cambridge, 1995 - 2018
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2022
Berkeley DB: Berkeley DB 5.3.28: (September  9, 2013)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS TLS_resume 
move_frozen_messages Content_Scanning DANE DKIM DNSSEC Event I18N OCSP 
PIPECONNECT PRDR PROXY Queue_Ramp SOCKS SPF SRS TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz 
dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl dovecot external plaintext spa tls
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Malware: f-protd f-prot6d drweb fsecure sophie clamd avast sock cmdline
Fixed never_users: 0
Configure owner: 0:0
Size of off_t: 8
Configuration file search path is 
/etc/exim4/exim4.conf:/var/lib/exim4/config.autogenerated
Configuration file is /var/lib/exim4/config.autogenerated
# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
#
# update-exim4.conf uses this file to determine variable values to generate
# exim configuration macros for the configuration file.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file
#
# GPV notes:
# 1: Not set /etc/mailname (still says zbox.home) because we use dc_readhost 
(below) to rewite it
# 2: Need to run update-exim4.conf
# 3: The syntax of the dc_local_interfaces is poorly documented (lots of trial 
& error) (lsof confirms it's listening)
#
# Who   WhenWhat
# GPV   27feb19 Copied dreamplug version, chnaged 116 to 117
# GPV   01Mar19 Changed to 0.0.0.0 to ensure it listens on all the interfaces 
(can do better, some ports on some)
# GPV   03Mar19 0.0.0.0 is too dangerous, because guys coming in from outside 
can access SMTP
# GPV   29MAr20 New VIGOR DSL router can send email (SMTP) so also allow just 
this one device on the 192.168 LAN (web suggests both ; and : as 
seperator..using :)
# GPV   28Jan22 Merged into ybox default, looks like it's identical to zbox file
# GPV   13Aug22 Changed everything from 151 to 152 and from zbox to ybox
# GPV   15Mar23 Made a guess that adding received_headers_max = 50 would add it 
to /var/lib/exim4/config.autogenerated (and in turn have an effect)
# GPV   15Mar23 That does not work, try ading to a files under 
/etc/exim4/conf.d/  (in fact add that line here prevents regeneration)
# GPV   12Apr24 Moved back to zbox...annoyingly dc_local_interfaces cannot use 
actaul interface names (which would wold great) but must use IP addresses
dc_eximconfig_configtype='smarthost'
dc_other_hostnames='ybox.home;home;wellesleydrive;xbox.home;zbox.home'
#dc_local_interfaces='[10.117.128.152]:587;[10.117.0.152]:587;[127.0.0.1]:587;[10.117.0.152]:25;[127.0.0.1]:25;[192.168.1.152]:25'
#dc_local_interfaces='[10.117.0.152]:587;[127.0.0.1]:587;[10.117.0.152]:25;[127.0.0.1]:25;[192.168.1.152]:25;[192.168.1.152]:587'
# We are using a tempory address for the moment, it will need to move
#dc_local_interfaces='[0.0.0.0]:587 # Missed out so it listens on all IF
dc_readhost='vetterlein.com'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets='10.117.0.0/16 : 192.168.1.254/32'
dc_smarthost='smtp.forwardemail.net'
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
mailname:zbox.home
# /etc/default/exim4
EX4DEF_VERSION=''

# who   whenwhat
# GPV   11aug   didn't copy the zbox version OR the installed version, instead 
followed advice in comments
#

# 'combined' -   one daemon running queue and listening on SMTP po