View | Details | Raw Unified | Return to bug 19587
Collapse All | Expand All

(-)460.status-mail-rejects (-1 / +1 lines)
Lines 8-14 Link Here
8
  echo Checking for rejected mail hosts:
8
  echo Checking for rejected mail hosts:
9
9
10
  start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'`
10
  start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'`
11
  zcat -fc /var/log/maillog.0* /var/log/maillog | grep reject= |
11
  zcat -fc /var/log/maillog.* /var/log/maillog | grep reject= |
12
	perl -ne "print \"\$2\n\" 
12
	perl -ne "print \"\$2\n\" 
13
	if /^$start.*ruleset=check_\S+,\s+arg1=(<[^@]+@)?([^>,]+).*reject=/o;" |
13
	if /^$start.*ruleset=check_\S+,\s+arg1=(<[^@]+@)?([^>,]+).*reject=/o;" |
14
	sort | uniq -c | sort -nr
14
	sort | uniq -c | sort -nr

Return to bug 19587