- Joined
- Dec 13, 2016
- Messages
- 259
- Points
- 18
How do you monitor email usage? What tools do you use to make sure your server is not sending spam? Besides the builtin mailqueue and csf how do others determine spam is being sent?
You can check the Number of mails being sent by an PHP Script by using the following command :
grep "cwd=" /var/log/exim_mainlog|awk '{for(i=1;i<=10;i++){print $i}}'|sort| uniq -c|grep cwd|sort -n
It will show up the Path of Mail directory
Example :
10000 cwd=/home/username/public_html/direc/
If you see large amount of mails you can check the directory for any spam scripts
grep "<=.*P=local" /var/log/exim_mainlog | awk '{print $6}' | sort | uniq -c | sort -nr | head -5
eximstats /var/log/exim_mainlog | grep -A7 "Top senders by message count" | tail -5 | awk '{print $1,$NF}'
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!