|
CentOS Linux Server Installation , FAQ, Tips and Tricks |
Postfix Mail System - Find out the total email send by each user last 24 hours |
|||
|
Some readers ask me is there a quick way to find out total emails have been send out by particular user?
This is rather important when we find out those email accounts that have compromised by spammer.
The easiest way is look at our /var/log/maillong. However, there are thousand of lines and it is rather impossible for us to calculate each lines.
Thus, we need some help from the Linux CLI.
The output will be as below
From above, the total email send out by james was 2206. This might draw your attention to investigate further to confirm the amount of legitimate email send by this user.
If the answer you get from user was lesser than that. The account might has already compromised. I would suggest you to change the password immediately.
Note. Please check if your log rotation is configured as daily? If no, please change it to highlighted below
Hope this help to ease your daily admin task.
|
|||
|
|
|||
|
All trademarks are the property of their respective owners. |