domains_servers_map 361 B

123456789101112131415
  1. #!/usr/bin/perl
  2. use strict ;
  3. use warnings ;
  4. # Is there a map between account xxx@domain and the imap host server
  5. # cat G_success_login_on.txt | ./domains_servers_map | sort | uniq -c | sort -g
  6. while ( my $line = <> )
  7. {
  8. if ( $line =~ /success login on \[(.*)\] with user \[.*\@(.*)\] auth / )
  9. {
  10. print "$2 $1\n" ;
  11. }
  12. }