Bug#611085: Let user set the recipient for non-empty paniclog report

Adrien Sévère adrien.severe at ccmbenchmark.com
Tue Jan 25 14:00:21 UTC 2011


Package: exim4-base
Version: 4.69-9+lenny1

Hi,

It might be intersesting to let user define where the "exim paniclog on<host>  has non-zero size" mail should be sent, using a variable (ex: E4B_PANICLOG_REPORT_TO in /etc/default/exim4). (See diff for /etc/cron.daily/exim4-base output below)


73,74c73,74
<        if ! printf "Subject: exim paniclog on %s has non-zero size\nTo: root\n\nexim paniclog /var/log/exim4/paniclog on %s has non-zero size, mail system might be broken. The last ${E4BCD_PANICLOG_LINES} lines are quoted below.\n\n%s\n" \
<        "$(hostname --fqdn)" "$(hostname --fqdn)" \
---
>        if ! printf "Subject: exim paniclog on %s has non-zero size\nTo: %s\n\nexim paniclog /var/log/exim4/paniclog on %s has non-zero size, mail system might be broken. The last ${E4BCD_PANICLOG_LINES} lines are quoted below.\n\n%s\n" \
>        "$(hostname --fqdn)" "${E4B_PANICLOG_REPORT_TO
:-root}" "$(hostname --fqdn)" \
76c76
<        | exim4 root; then
---
>        | exim4 ${E4B_PANICLOG_REPORT_TO:-root}; then

-- 
Adrien Sévère
Benchmark Group / CommentCaMarche
69 avenue Pierre Grenier
92100 Boulogne Billancourt
Tél: +33(0)1 47 79 53 94






More information about the Pkg-exim4-maintainers mailing list