Skip to content

Commit e5985c9

Browse files
authored
Group emails by from address
1 parent 55d0f44 commit e5985c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mail/postfix.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Find all emails grouped by from address
2+
3+
```
4+
$DATE="Oct 1"
5+
$LOG="/var/log/mail.log"
6+
egrep "$DATE.*queue\ active" $LOG | grep -o from=.\*\, | awk -F, '{print $1}' | sort | uniq -c | sort -n
7+
```

0 commit comments

Comments
 (0)