Email Spaming logs

how or where i can see how many email are sending per day and spamming mail.
Exist any log where i can see that?


Probaly exim4 main log: /var/log/exim4/mainlog

To check emails sent/received per user, I use the following command on Ubuntu 18.04:
grep '<=' /var/log/exim4/mainlog | awk '{print $5}' | grep \@ | sort | uniq -c | sort -nrk1

Note that the above command will only check the current/active exim log file. Depending on the log rotation (I think it rotates every day) you’ll get the results of the current day.

my concern is how i can know if one of my email on Hestia are sending SPAM or if is receiving SPAM.
The idea is how administrator get more control over security.

Might not be exactly what you are looking for but you have some info here

Felix cmd is also good.
But you have to setup some monitoring infrastructure (Zabbix, Nagios, Icinga, etc) if you want to be notified about things like this

Thanks Felix.
That code is similar to one i find in a tutorial online that helps to locate where spam is coming from and how to stop it.
This is the code in that tutorial:

grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n

i realize that need to change file location to /var/log/exim4/mainlog but what else is causing this code not to work?

here is link to tutorial:

I am using Ubuntu 20.04 / nginx and latest hestiacp

Thanks for any advice from anyone.