Sent emails from: sender@example.com
1 |
cat ./var/log/qmail/smtpd/current |grep -i "rcpt: from <sender@example.com" |awk '{print $1" "$6 " "$7 " "$8 " " $9 " " $10}' |tai64nlocal > ../workresult/sender\@example.com-emails.txt |
Sent emails from: 10.11.12.13
1 |
cat /var/log/qmail/smtpd/current|grep "CHKUSER relaying rcpt:" |tai64nlocal |more |awk '{print $9;}'|awk '{match($0,/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/); ip = substr($0,RSTART,RLENGTH); print ip}'|grep -v "10.11.12.13" |