On Wed, May 28, 2014 at 05:15:48PM +0200, Holger Levsen wrote:
> DSA informed me that testing samhain for piuparts.debian.org causes mails to 
> root@$slave which are very irritating to them, as they do use samhain as well.
> 
> Copies of these mails can be found at 
> http://www.palfrader.org/volatile/2014-05-28-wVnu9SVZFqw/piuparts currently.

These mails are sent by samhain indeed.

> As starting samhain is prevented via invoke-rc.d, I believe the culprit must 
> be within samhain's initscript, in these lines:
> 
>      if [ ! -f /var/state/samhain/samhain_file ] ; then
>          [ -f /var/log/samhain/samhain-init.log ] && rm -f 
> /var/log/samhain/samhain-init.log
>          echo "Creating samhain's file integrity database (this can take some 
> minutes)...."
>          samhain -t init >/var/log/samhain/samhain-init.log 2>&1
>      fi

This is probably the culprit.

The samhain integrity database is required for samhain to start. I'm not sure
how to tackle this issue. It never has been a problem for other samhain
users.

I guess I could defer the initialisation database to the first time samhain
is started (through init) or I could add a debconf prompt to ask the admin
user if he wants the integrity database to be initialised.

For the time being, you could have in piuparts a samhainrc file that disables
sending email.

> What surprises me though, is that no other package (out of 40k packages) 
> doesnt produce mails to root - could you think of anything else producing 
> these mails?

No, these look like samhain's emails.

Regards

Javier

Attachment: signature.asc
Description: Digital signature

Reply via email to