no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tech:linux:postfix_report [2014/12/04 12:45] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Setting up daily mail reporting using pflogsumm ====== | ||
+ | [[http:// | ||
+ | |||
+ | ===== Setup ===== | ||
+ | * Create directory ''/ | ||
+ | * Copy '' | ||
+ | * Create file / | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | # | ||
+ | # Daily Postfix Log report | ||
+ | # | ||
+ | TS=$(date +%Y%m%d_%H%M%S); | ||
+ | LOGFILEDIR="/ | ||
+ | LOGFILE=" | ||
+ | PFLOGSUMM="/ | ||
+ | PFMAILINF="/ | ||
+ | PFMAILINF="/ | ||
+ | REMAIL=" | ||
+ | REPSUB=" | ||
+ | # | ||
+ | $PFLOGSUMM $PFMAILINF > $LOGFILE | ||
+ | cat $LOGFILE | mailx -s " | ||
+ | # | ||
+ | / | ||
+ | # | ||
+ | exit 0 | ||
+ | </ | ||