Page 1 of 1

How to get list of all emails sent from specific email address

Posted: Fri Feb 10, 2023 3:27 pm
by myVesta

Code: Select all

cat /var/log/exim4/mainlog | exigrep "<= [email protected]"
cat /var/log/exim4/mainlog.1 | exigrep "<= [email protected]"
zcat /var/log/exim4/mainlog*.gz | exigrep "<= [email protected]"
If you want to put it in one big log file:

Code: Select all

touch mylog.txt
cat /var/log/exim4/mainlog | exigrep "<= [email protected]" >> mylog.txt
cat /var/log/exim4/mainlog.1 | exigrep "<= [email protected]" >> mylog.txt
zcat /var/log/exim4/mainlog*.gz | exigrep "<= [email protected]" >> mylog.txt