#1033537 aide-common: More configurable MTA command when run as non-root

#1033537#5
Date:
2023-03-27 05:14:23 UTC
From:
To:
Recently aide started to send mails not by sendmail command but by connecting
to port 25 on localhost, using s-nail.
As I can see user (root) sending mail is hardcoded in /usr/share/aide/bin/dailyaidecheck
these changes makes filtering mails quite fragile. It would be nice to have for example
custom header describes that this is the mail from aide on host
say
X-Aide: $hostname
or sth.

#1033537#10
Date:
2023-03-27 09:13:15 UTC
From:
To:
Hi Kamil,

thanks for your suggestions. I appreciate that.

Yes, that's one of the options. See README.Debian for an in-depth
explanation.

Yes, that was to emulate mailx. It would indeed be nice if that would be
configurable. I am unsure whether it would be ok to have this sent from
a non-replyable address, but probably yes.

I would be willing to accept a patch making this configurable for the
s-nail case. Make sure to also suggest wording for the docs.

Same here. A patch would be considered.

In both cases, this is material for post-bookworm.

Greetings
Marc

#1033537#15
Date:
2023-10-03 14:23:27 UTC
From:
To: