On Fri, 8 Sep 2023 11:44:00 +0200 Guido Berhoerster <gu...@berhoerster.name> 
wrote:
> debian-edu-fai installs currently prefers nullmailer over exim4. However,
> both the mailname and remote are not configured correctly so that mail
> cannot be delivered.
> 
> /etc/mailname contains:
> 
> postoffice.intern
> ws02.intern
> 
> This should be just a single line with "postoffice.intern". Not sure where
> that comes from, the nullmailer postinst should just write shared/mailname
> into it.

This is caused by debian-edu-fai in the DEBIAN/40-misc script:

ainsl -a /etc/mailname ${HOSTNAME}

which appends to the file rather than overwriting it.

/etc/mailname is also written to by the nullmailer and exim4 debconf modules
according to debconf preferences and as well as the pre-pkgsel
debian-installer script in debian-edu-config. So I'm not sure this whether
this should be touched at all by FAI? 

> /etc/nullmailer/remotes contains:
> 
> mail.intern
> 
> This hostname does not exist, it should be "postoffice.intern". I
> haven't fully figured out where it comes from, the debconf setting is
> empty, so it might be some default value:
> 
> debconf-get-selections --install | grep nullmailer
> nullmailer→·····nullmailer/adminaddr→···string
> nullmailer→·····nullmailer/defaultdomain→·······string→·intern
> nullmailer→·····nullmailer/relayhost→···string
> nullmailer→·····shared/mailname→string→·postoffice.intern
"mail.<domain>" is indeed the default in the nullmailer debconf module
if nullmailer/relayhost isn't set. For debugging it is also good to
know that this setting is reset after being applied by debconf
because it is considered "sensitive information".

-- 
Guido Berhoerster

Reply via email to