otrs.Postmaster high CPU load

Moderator: crythias

Locked
khaito
Znuny newbie
Posts: 13
Joined: 12 Apr 2013, 10:47
Znuny Version: 3.0.9
Real Name: Robyn Milne
Location: Scotland, UK

otrs.Postmaster high CPU load

Post by khaito »

Hi folks,

System is OTRS 3.0.9 on Ubuntu server 10.04 Lucid
Think I might have accidentally altered one of the settings in my sendmail config and I'm now dealing with an OTRS server that's crashing daily because the CPU load is maxed. It's only been happening since I was looking at the sendmail config so hence why I'm assuming I must have accidentally changed something.

/var/log/syslog is showing a lot of this:

Code: Select all

Jun 30 07:07:02 otrsserver sm-mta[15171]: rejecting connections on daemon MSP-v4: load average: 50
I had changed the sendmail settings to only reject connections above a load average of 45 but even this seems excessive.

Top is showing mutliple otrs.Postmaster as sitting at either 50% of cpu load or only one of them sitting at 99%

If I go into /var/mail and check out the log/mail for a user who originally set this server up, it shows a lot of
"The following addresses had permanent fatal errors -----
<user@companydomain.uk>
----- Transcript of session follows -----
550 5.1.2 <user@companydomain.uk>... Host unknown (Name server: webmail.compadomain.: host not found)

It's missing a few letters in the Name Server and doesn't have the complete URL. I've grep'ed the whole system to find where this is set but can't find anywhere with the mail url typo'ed in it. Not sure whether it's related to the crashing issue though.

I've checked mailq and it's empty, so I can't figure out why sendmail is suddenly going mad.

Anyone got any ideas/input? Any help would be much appreciated. :)

Cheers
--------------------------------------------
Production
OTRS 3.0.9 - Ubuntu 10.04.3 LTS - Apache2 - MySQL 4.012 - PHP 5.3.2 - PHPMyAdmin 4.3.3

Testing
OTRS 3.1.14 - Ubuntu 12.04.2 LTS - Apache2 - MySQL 4.020 - PHP 5.3.10 - PHPMyAdmin 4.3.4
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: otrs.Postmaster high CPU load

Post by crythias »

Name server is DNS /etc/resolv.conf
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
khaito
Znuny newbie
Posts: 13
Joined: 12 Apr 2013, 10:47
Znuny Version: 3.0.9
Real Name: Robyn Milne
Location: Scotland, UK

Re: otrs.Postmaster high CPU load

Post by khaito »

Hi,

Thanks for the response. Should've mentioned the /etc/resolv.conf has

Code: Select all

nameserver dnsipaddress#1
nameserver dnsipaddress#2
domain companydomain <--- this is highlighted red for some reason
search companydomain
Problem could be that my work uses a single label domain so it's not 'name.domain', just 'name'. ?
--------------------------------------------
Production
OTRS 3.0.9 - Ubuntu 10.04.3 LTS - Apache2 - MySQL 4.012 - PHP 5.3.2 - PHPMyAdmin 4.3.3

Testing
OTRS 3.1.14 - Ubuntu 12.04.2 LTS - Apache2 - MySQL 4.020 - PHP 5.3.10 - PHPMyAdmin 4.3.4
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: otrs.Postmaster high CPU load

Post by crythias »

You will need to use dig or nslookup to validate your DNS lookups...

nslookup
set type=mx
recipientdomainname.com

exit
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
khaito
Znuny newbie
Posts: 13
Joined: 12 Apr 2013, 10:47
Znuny Version: 3.0.9
Real Name: Robyn Milne
Location: Scotland, UK

Re: otrs.Postmaster high CPU load

Post by khaito »

Sorted it. Turns out I had missed a setting when I had re-run sendmailconfig.

Added this back in:

Code: Select all

# who I masquerade as (null for no masquerading) (see also $=M)
DMdomain.co.uk
Then restarted sendmail and apache2, killed the old otrs.postmaster processes and it seems okay now. Shall keep an eye on it but fingers crossed that's it sorted now. :) Cheers
--------------------------------------------
Production
OTRS 3.0.9 - Ubuntu 10.04.3 LTS - Apache2 - MySQL 4.012 - PHP 5.3.2 - PHPMyAdmin 4.3.3

Testing
OTRS 3.1.14 - Ubuntu 12.04.2 LTS - Apache2 - MySQL 4.020 - PHP 5.3.10 - PHPMyAdmin 4.3.4
Locked