diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/periodic/daily/460.status-mail-rejects | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/periodic/daily/460.status-mail-rejects b/etc/periodic/daily/460.status-mail-rejects index 34f1df2..fa95d8c 100755 --- a/etc/periodic/daily/460.status-mail-rejects +++ b/etc/periodic/daily/460.status-mail-rejects @@ -51,9 +51,7 @@ case "$daily_status_mail_rejects_enable" in done cat /var/log/maillog } | - fgrep 'reject=' | - egrep -e "^$start.*ruleset=check_[^[:space:]]+,[[:space:]]+arg1=(<[^@]+@)?([^>,]+).*reject=.*" | - sed -e 's/.*arg1=//' -e 's/.*@//' -e 's/[>[:space:]].*$//' | + sed -n -E "s/^$start"'.*ruleset=check_[^ ]+,[ ]+arg1=(<[^@]+@)?([^>,]+).*reject=.*/\2/p' | sort -f | uniq -ic | sort -fnr | tee /dev/stderr | wc -l) [ $rc -gt 0 ] && rc=1 fi;; |