|
Lines 303-322
Link Here
|
| 303 |
# 5: more debug details |
303 |
# 5: more debug details |
| 304 |
#$log_level = 2; # (defaults to 0) |
304 |
#$log_level = 2; # (defaults to 0) |
| 305 |
|
305 |
|
|
|
306 |
@!@ |
| 307 |
if configRegistry.get('mail/amavis/debug/level'): |
| 308 |
print "$log_level = '%s';" % configRegistry['mail/amavis/debug/level'] |
| 309 |
@!@ |
| 310 |
|
| 306 |
# Customizable template for the most interesting log file entry (e.g. with |
311 |
# Customizable template for the most interesting log file entry (e.g. with |
| 307 |
# $log_level=0) (take care to properly quote Perl special characters like '\') |
312 |
# $log_level=0) (take care to properly quote Perl special characters like '\') |
| 308 |
# For a list of available macros see README.customize . |
313 |
# For a list of available macros see README.customize . |
| 309 |
|
314 |
|
| 310 |
# only log infected messages (useful with log level 0): |
315 |
# We rely on the built-in log template for now. |
| 311 |
# $log_templ = '[? %#V |[? %#F ||banned filename ([%F|,])]|infected ([%V|,])]# |
316 |
# If needed, a custom log template can be specified via |
| 312 |
# [? %#V |[? %#F ||, from=[?%o|(?)|<%o>], to=[<%R>|,][? %i ||, quarantine %i]]# |
317 |
# $log_templ = |
| 313 |
# |, from=[?%o|(?)|<%o>], to=[<%R>|,][? %i ||, quarantine %i]]'; |
|
|
| 314 |
|
318 |
|
| 315 |
# log both infected and noninfected messages (default): |
|
|
| 316 |
$log_templ = '[? %#V |[? %#F |[?%#D|Not-Delivered|Passed]|BANNED name/type (%F)]|INFECTED (%V)], # |
| 317 |
[?%o|(?)|<%o>] -> [<%R>|,][? %i ||, quarantine %i], Message-ID: %m, Hits: %c'; |
| 318 |
|
| 319 |
|
| 320 |
# |
319 |
# |
| 321 |
# Section IV - Notifications/DSN, BOUNCE/REJECT/DROP/PASS destiny, quarantine |
320 |
# Section IV - Notifications/DSN, BOUNCE/REJECT/DROP/PASS destiny, quarantine |
| 322 |
# |
321 |
# |