After I received a lot of alerts (high CPU load) on a typical mail server, I took a look at the history in Nagiosgraph:
The alerts began on March 8th but at first I didn't find a reason, why the CPU load would from time to time skyrocket. At first I thought the installed webmail application could be responsible when higher than usual attachments were uploaded, probably causing the server to delay all other processes. But that was not it. However, that thought pushed me to take a look at the disk space movements during the last day. To my big surprise the usage on the log partition went sharp up:
So I compared the logs before and after log rotation and found that the dovecot info log grew huge compared with a couple of days ago. The reason were millions of entries like this:
imap-login: Info: Maximum number of connections from user+IP exceeded (mail_max_userip_connections): user=
As I discovered these entries, I got aware that during a second, around 50 new entries like this were written in the logs. Always from the same user and the same remote ip address (rip).
There were a total of 9'316'085 such entries in the logs. In a period from March 8th until the user was blocked. I compared the load peaks with the occurrences of mail_max_userip_connections and they matched - the reason for the high cpu loads was found.
But one mystery remains: What was causing it? I would have liked to know if the user had a virus or was using a completely broken mail client...
No comments yet.
AWS Android Ansible Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Consul Container Containers CouchDB DB DNS Database Databases Docker ELK ElasticSearch Elasticsearch Filebeat FreeBSD GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Icingaweb2 InfluxDB Internet Java Kibana Kubernetes LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Rancher SSL Security Shell SmartOS Solaris Surveillance SystemD TLS Tomcat Ubuntu Unix VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder