I'm investigating a server which I have not set up, for which there is no technician to answer questions.
The problem is that the load average is high, which makes the server unable to send emails! It happens periodically, sometimes several times per minute, and the load average can be as high as 80!
I noticed that sometimes it might take an hour before an email can actually be sent, and I would like to understand better what is going on on the server.
Periodically (sometimes several times per minute, and the load average can be as high as 80) I get messages like this in the mail log:
Feb 9 01:37:54 mydomain sm-mta[999]: rejecting connections on daemon MTA-v4: load average: 48
I don't know the cause of this, but it seems like emails are not actually being sent, so I wonder what could be possibly going on.
Occasionally, emails actually seem to be sent. The only thing I know is sending emails is the web server, so the e-mails sent from www-data make sense. I don't know what could be sending those.
Feb 9 01:54:22 mydomain sendmail[6704]: r1...: from=www-data, size=1380, class=0, nrcpts=1, msgid=<...@www.mydomain2.se>, relay=www-data@localhost
Feb 9 01:54:23 mydomain sm-mta[6706]: r1... from=<www-data@mail.mydomain.se>, size=1482, class=0, nrcpts=1, msgid=<...@www.mydomain2.se>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 9 02:01:02 mydomain sendmail[6751]: r1...: from=root, size=323, class=0, nrcpts=1, msgid=<..r191115u006751@mail.mydomain.se>, relay=root@localhost
Feb 9 02:01:02 mydomain sm-mta[6752]: r1...: from=<root@mail.mydomain.se>, size=597, class=0, nrcpts=1, msgid=<..r191115u006751@mail.mydomain.se>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
netstat -ntop shows only apache2 processes.
What could be some ways to tackle this problem?