I installed mail scanner for spam protection, but is there any script for Linux to notify me or email me that some one spaming on my server ?
I installed mail scanner for spam protection, but is there any script for Linux to notify me or email me that some one spaming on my server ?
I am assuming you are talking about your "customers" who are authenticated users sending outgoing mail via SMTP.
There are number of steps to take which would make large scale spamming difficult.
Such as;
The above steps are dependent on what platform and what MTA you are using. I use logwatch to monitor the
/var/log/maillog
, but tools like munin, and collectd, or nagios can be configured to execute custom scripts to monitor per-user.You can sign up for RBL monitoring services, which will give you a retrospective view of whether the server is being used to originate UCE, or other abuse mail;
http://mxtoolbox.com/services_servermonitoring2.aspx
http://blacklist-monitor.simplycast.com/Multi-Channel/blm/blacklist-smtp-check.html
You could implement Amavis-new with spamassassin and clamav, or RBL's such as Spamhaus or Barraccudacentral, these will cut down spam on your server a lot.
You could also monitor traffic and if you have unusual high traffic peaks this could be an indicator for spam. But this depends on what your server is used for. If it is a small webserver with almost no traffic then this technique will help you monitor unwanted traffic.