Created
October 30, 2014 06:15
-
-
Save dynax60/94618e3407a6f180baf8 to your computer and use it in GitHub Desktop.
What sender was for specified recipient? (need amavis)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find . -name "mail.log*" -mtime -90 | xargs grep amavis | grep myaddr@mydomain.ru | perl -MData::Dumper -ne '/\[([^\]]+)\] \<([^\>]+)\>/; ++$a->{$2}->{$1}; }{ print Dumper($a)' | |
$VAR1 = { | |
'sock@test.domain.ru' => { | |
'192.168.116.2' => 27 | |
}, | |
'vcenter@domain.ru' => { | |
'192.168.130.110' => 11 | |
}, | |
'satisfactoryr@mail.ru' => { | |
'186.118.238.61' => 1 | |
}, | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment