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