Control: close #1063369
Hi, Marc Haber schrieb am 07.02.2024 15:08 (GMT +01:00): > On Tue, Feb 06, 2024 at 10:22:35PM +0100, Timo Sigurdsson wrote: >> Package: aide >> Version: 0.18.3-1+deb12u2 > > Just for the record: Changing this in bookworm won't happen. > >> since Debian Bookworm, aide refuses to send emails by default if >> s-nail is not installed. > > This is not correct, MAILCMD is honored. Yes, that's how I worked around it. But that wasn't needed before Bookworm. > Documentation says: > > | The daily aide check will automatically select the method of sending > | mail according to the rules documented above. The variable MAILCMD in > | /etc/default/aide can be used to override these rules. If you know > | that your mail(1) works in a scenario where the automatism refuses to > | use mail(1), setting MAILCMD to the path to mail(1) manually will force > | the script to use mail(1). If you need more flexibility and/or would > | prefer to have additional methods of delivering the report supported > | by the package, please file a wishlist bug. I somehow did not fully read that paragraph. That is actually quite close to what I proposed, except I'd prefer the script not trying to be too smart here, but it's fair enough, I think. [...] >> The downside is >> that my custom MAILSUBJ is ignored now since Debian Bookworm. > > MAILSUBJ is honored in the code of dailyaidecheck: > if [ -n "${MAILCMD:-}" ]; then > eval "${MAILCMD} -s \"${MAILSUBJ}\" \"${MAILTO}\"" || RET=$? > > mailx is documented to honor the -s parameter. Please verify that mailx > is called correctly by our code and file an appropriate bug either > against aide or mailx. You are right. I actually confused the change of my MAILSUBJ - it is honored - with the new sender name (since it's not root anymore that sends mail). So, everything works as expected. Sorry for the noise :( Regards, Timo