Package: samhain
Version: 2.8.3a-1
Severity: normal

the wheezy version (very quietly) fails to send any mail reports
with the default config, i.e. SetMailAddress=root@localhost and no 
SetMailRelay. the squeeze version worked fine with this combo of settings.

here's the relevant output from samhain -t check -i -p debug -m crit -l none:
...
MARK   :  [2013-05-25T18:15:01+1000] (samhain.c, 2080, 0) msg=<File check 
completed.>, time=<3>, kBps=<96006.504000>
DEBUG  :  [2013-05-25T18:15:01+1000] (sh_mail.c, 1653, 4) msg=<The requested 
name is valid but does not have an IP address: >, subroutine=<res_query>
DEBUG  :  [2013-05-25T18:15:01+1000] (sh_mail.c, 1895, 0) msg=<No MX record for 
domain localhost>, subroutine=<get_mx>
ERROR  :  [2013-05-25T18:15:01+1000] (sh_mail.c, 1930, 0) msg=<Unknown host 
localhost>, subroutine=<return_mx>
ERROR  :  [2013-05-25T18:15:01+1000] (sh_mail.c, 1084, 0) msg=<The specified 
host is unknown: localhost>, subroutine=<return_mx>, service=<email>, 
host=<localhost>
ERROR  :  [2013-05-25T18:15:01+1000] (sh_mail.c, 725, 0) msg=<Service failure>, 
service=<mail>, obj=<root@localhost>
ALERT  :  [2013-05-25T18:15:01+1000] (samhain.c, 781, 0) msg=<EXIT>, 
program=<Samhain>, status=<None>

the machine in question has a perfectly working /etc/hosts entry for localhost,
and the faulty behaviour is the same if one uses SetMailAddress=root@127.0.0.1.

the problem shows up in samhain's logs with severity debug and error, which
is quite low considering that samhain assigns lots of events the severities 
crit or alert and that the logs are usually quite large; that syslogseverity 
defaults to alert makes it even harder to spot the trouble.

as a workaround i used: SetMailAddress=root, SetMailRelay=localhost

regards
az


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to