Help - Search - Members - Calendar
Full Version: Plesk 7.1.5 - Qmail Issues
The Planet Forums > Control Panels > Plesk
md3v
All,

Since 4PSA upgraded our box to Plesk 7.1.5 we have had major issues with qmail.

Note the following:

==
[root@server home]# sh qstat.sh
messages in queue: 140
messages in queue but not yet preprocessed: 0
[root@server home]# ./qmhandle -l
Messages in local queue: 0
Messages in remote queue: 0
[root@server home]# ps -aef | grep "qmail" | wc -l
288
==

This does not seem normal -- 288 qmail processes!

Does anyone know what could be causing this?

In addition...

Something is wrong with your qmail database as plesk.ev1servers.net shows up in the headers of email/s send via our server. I have ran NightHawk's script as well as set the hostname via PSA but its not solved the issue. I know there is a fix for it:

==
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e "update misc set val='host.ourserver.net' where param='FullHostName'" psa
==

Which I have run multiple times and rebooted the server completely.. but it has not fixed the issue.
md3v
All,

Ok, I resolved issue 2... here's how.

(1) On the server, as mentioned previously, plesk.ev1servers.net kept coming up in email headers.

I ran nslookup on the server and out came:

==
[root@server etc]# nslookup 66.98.156.x
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 127.0.0.1
Address: 127.0.0.1#53

x.156.98.66.in-addr.arpa name = server.mydomain.net.
x.156.98.66.in-addr.arpa name = plesk.ev1servers.net.
==

Ah, interesting - rDNS for the x.156.98.66.in-addr.arpa was obviously wrong.

I went hunting for named related files and found: /var/named/run-root/var/

In this directory I found:

156.98.66.in-addr.arpa
157.98.66.in-addr.arpa

In the 156.x.x.x file found:

==
[root@server var]# cat 156.98.66.in-addr.arpa_original
$TTL 86400

@ IN SOA server.mydomain.net
. server.mydomain.net. (
1099776453 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum

IN NS server.mydomain.net.
96 IN PTR plesk.ev1servers.net.
96 IN PTR server.mydomain.net.
==

I made a backup of this file then edited it, removed this line:

96 IN PTR plesk.ev1servers.net.

Then restarted named, sent a test email and the incorrect header was/is gone.

I am still working on the other issues - if anyone has any feedback I would greatly appreciate it!
md3v
*UPDATE*

I did as instructed at: http://faq.sw-soft.com/index.php?ToDo=view...Id=231&catId=38 to rebuild the queue in case it was broken... no luck.

SO - I delete /var/qmail/queue and then force reinstalled using:

rpm -Uvh --force psa-qmail-1.03-rh9.build71041019.17.i586.rpm

This recreated the queue and default qmail config.

NOW when I run the same command set as above I get:

==
[root@server home]# ps -aef | grep "qmail" | wc -l
15
[root@server home]# sh qstat.sh
messages in queue: 1
messages in queue but not yet preprocessed: 0
[root@server home]# ./qmhandle -l
Messages in local queue: 0
Messages in remote queue: 0
==

15 still seems high, any suggestions.

Here's a ps -aux...

==
[root@server home]# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.0 1384 84 ? S 00:26 0:06 init [3]
root 2 0.0 0.0 0 0 ? SW 00:26 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SW 00:26 0:00 [kapmd]
root 4 0.0 0.0 0 0 ? SWN 00:26 0:00 [ksoftirqd_CPU0]
root 9 0.0 0.0 0 0 ? SW 00:26 0:00 [bdflush]
root 5 0.0 0.0 0 0 ? SW 00:26 0:00 [kswapd]
root 6 0.0 0.0 0 0 ? SW 00:26 0:00 [kscand/DMA]
root 7 0.0 0.0 0 0 ? SW 00:26 0:00 [kscand/Normal]
root 8 0.0 0.0 0 0 ? SW 00:26 0:02 [kscand/HighMem]
root 10 0.0 0.0 0 0 ? SW 00:26 0:00 [kupdated]
root 11 0.0 0.0 0 0 ? SW 00:27 0:00 [mdrecoveryd]
root 15 0.0 0.0 0 0 ? SW 00:27 0:00 [kjournald]
root 70 0.0 0.0 0 0 ? SW 00:27 0:00 [khubd]
root 2991 0.0 0.0 0 0 ? SW 00:27 0:00 [kjournald]
root 2992 0.0 0.0 0 0 ? SW 00:27 0:00 [kjournald]
root 3245 0.0 0.0 0 0 ? SW 00:27 0:00 [eth0]
root 3322 0.0 0.0 1456 364 ? S 00:27 0:00 syslogd -m 0
root 3326 0.0 0.0 1384 164 ? S 00:27 0:00 klogd -x
named 3998 0.0 0.1 30512 1920 ? S 00:27 0:01 /usr/sbin/named -u named -c /etc/named.conf -u named -t /var/na
root 4011 0.0 0.0 3512 420 ? S 00:27 0:00 /usr/sbin/sshd
root 4025 0.0 0.0 2072 360 ? S 00:27 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 4039 0.0 0.0 4416 4 ? S 00:27 0:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
mysql 4079 0.4 0.1 14788 1808 ? S 00:27 0:14 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr
popuser 4082 0.0 0.6 24192 7044 ? S 00:28 0:01 /usr/bin/spamd -u popuser -d -m 20 -x --virtual-config-dir=/var
root 4098 0.0 0.0 1472 4 ? S 00:28 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlog
root 4105 0.0 0.0 1352 40 ? S 00:28 0:00 /usr/lib/courier-imap/sbin/courierlogger imapd
root 4111 0.0 0.0 1472 56 ? S 00:28 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlog
root 4117 0.0 0.0 1356 44 ? S 00:28 0:00 /usr/lib/courier-imap/sbin/courierlogger imapd-ssl
root 4121 0.0 0.0 1472 112 ? S 00:28 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlog
root 4129 0.0 0.0 1360 216 ? S 00:28 0:00 /usr/lib/courier-imap/sbin/courierlogger pop3d
root 4132 0.0 0.0 1468 112 ? S 00:28 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlog
root 4137 0.0 0.0 1360 216 ? S 00:28 0:00 /usr/lib/courier-imap/sbin/courierlogger pop3d-ssl
root 4170 0.0 0.0 6764 308 ? S 00:28 0:00 /usr/sbin/sshd
root 4173 0.0 0.4 20780 4932 ? S 00:28 0:00 /usr/sbin/httpd
postgres 4218 0.0 0.1 9784 1064 ? S 00:28 0:00 /usr/bin/postmaster -p 5432
postgres 4235 0.0 0.0 10772 948 ? S 00:28 0:00 postgres: stats buffer process
postgres 4236 0.0 0.0 9804 972 ? S 00:28 0:00 postgres: stats collector process
admin 4245 0.0 0.0 6880 596 ? S 00:28 0:01 /usr/sbin/sshd
root 4251 0.0 0.4 20720 4820 ? S 00:28 0:00 /usr/sbin/httpd
apache 4252 0.0 0.5 20932 5976 ? S 00:28 0:00 /usr/sbin/httpd
apache 4253 0.0 0.5 20924 5820 ? S 00:28 0:00 /usr/sbin/httpd
apache 4254 0.0 0.5 20924 6108 ? S 00:28 0:00 /usr/sbin/httpd
apache 4255 0.0 0.6 21076 6548 ? S 00:28 0:00 /usr/sbin/httpd
apache 4256 0.0 0.6 20948 6148 ? S 00:28 0:00 /usr/sbin/httpd
apache 4257 0.0 0.5 20924 5816 ? S 00:28 0:00 /usr/sbin/httpd
apache 4258 0.0 0.5 20924 5860 ? S 00:28 0:00 /usr/sbin/httpd
apache 4259 0.0 0.5 20932 5988 ? S 00:28 0:00 /usr/sbin/httpd
admin 4263 0.0 0.0 4436 192 pts/0 S 00:28 0:00 -bash
root 4314 0.0 0.0 4308 276 pts/0 S 00:28 0:00 su -
root 4319 0.0 0.2 11912 2940 ? S 00:28 0:00 /usr/local/psa/admin/bin/httpsd
psaadm 4323 0.0 0.2 11912 2916 ? S 00:28 0:00 /usr/local/psa/admin/bin/httpsd
psaadm 4324 0.0 0.2 11912 2916 ? S 00:28 0:00 /usr/local/psa/admin/bin/httpsd
psaadm 4325 0.0 0.2 11912 2916 ? S 00:28 0:00 /usr/local/psa/admin/bin/httpsd
psaadm 4326 0.0 0.2 11912 2916 ? S 00:28 0:00 /usr/local/psa/admin/bin/httpsd
psaadm 4327 0.0 0.2 11912 2916 ? S 00:28 0:00 /usr/local/psa/admin/bin/httpsd
root 4343 0.0 0.0 1440 172 ? S 00:28 0:00 crond
xfs 4361 0.0 0.2 4976 2148 ? S 00:28 0:00 xfs -droppriv -daemon
root 4371 0.0 0.0 3620 64 ? S 00:28 0:00 rhnsd --interval 240
mailman 4380 0.0 0.3 7012 3448 ? S 00:28 0:00 /usr/bin/python /var/mailman/bin/mailmanctl -s -q start
mailman 4381 0.0 0.3 7068 3532 ? S 00:28 0:00 qrunner /var/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
mailman 4382 0.0 0.3 7068 3532 ? S 00:28 0:00 qrunner /var/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
mailman 4383 0.0 0.3 7068 3532 ? S 00:28 0:00 qrunner /var/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
mailman 4384 0.0 0.3 7060 3524 ? S 00:28 0:00 qrunner /var/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
mailman 4385 0.0 0.3 7100 3564 ? S 00:28 0:00 qrunner /var/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
mailman 4386 0.0 0.3 7144 3608 ? S 00:28 0:00 qrunner /var/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
mailman 4387 0.0 0.3 7060 3524 ? S 00:28 0:00 qrunner /var/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
root 4397 0.0 0.6 11200 6620 ? S 00:28 0:01 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg
root 4482 0.0 0.4 9076 4428 ? S 00:28 0:00 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/minis
root 4485 0.0 0.0 1364 64 tty1 S 00:28 0:00 /sbin/mingetty tty1
root 4486 0.0 0.0 1364 64 tty2 S 00:28 0:00 /sbin/mingetty tty2
root 4487 0.0 0.0 1364 64 tty3 S 00:28 0:00 /sbin/mingetty tty3
root 4488 0.0 0.0 1364 64 tty4 S 00:28 0:00 /sbin/mingetty tty4
root 4489 0.0 0.0 1364 64 tty5 S 00:28 0:00 /sbin/mingetty tty5
root 4490 0.0 0.0 1364 64 tty6 S 00:28 0:00 /sbin/mingetty tty6
root 4491 0.0 0.0 1376 68 ttyS0 S 00:28 0:00 /sbin/agetty -L 9600 ttyS0 vt100
root 4507 0.0 0.1 4668 1140 pts/0 S 00:28 0:00 -bash
qmaild 5219 0.0 0.0 3328 360 ? S 00:35 0:00 /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/
qmailq 5221 0.0 0.0 1368 56 ? S 00:35 0:00 bin/qmail-queue
qmaild 7860 0.0 0.1 3328 1256 ? S 00:51 0:00 /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/
qmailq 7862 0.0 0.0 1368 272 ? S 00:51 0:00 bin/qmail-queue
qmaild 9466 0.0 0.1 3328 1272 ? S 01:06 0:00 /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/
qmailq 9471 0.0 0.0 1368 272 ? S 01:06 0:00 bin/qmail-queue
root 12284 0.0 0.1 4668 1196 pts/0 S 01:13 0:00 -bash
root 12291 0.0 0.0 3920 592 pts/0 R 01:13 0:00 tail -f /var/log/messages /var/log/secure /usr/local/psa/var/lo
root 12396 0.0 0.1 6764 1588 ? S 01:14 0:00 /usr/sbin/sshd
admin 12398 0.0 0.1 6884 1856 ? R 01:14 0:00 /usr/sbin/sshd
admin 12401 0.0 0.1 4524 1364 pts/1 S 01:14 0:00 -bash
root 12451 0.0 0.0 4308 912 pts/1 S 01:14 0:00 su -
root 12454 0.0 0.1 4616 1476 pts/1 S 01:14 0:00 -bash
qmails 13208 0.0 0.0 1424 372 pts/1 S 01:17 0:00 qmail-send
qmaill 13209 0.0 0.0 1372 416 pts/1 S 01:17 0:00 splogger qmail
root 13210 0.0 0.0 1400 336 pts/1 S 01:17 0:00 qmail-lspawn ./Maildir/
qmailr 13211 0.0 0.0 1396 344 pts/1 S 01:17 0:00 qmail-rspawn
qmailq 13213 0.0 0.0 1368 304 pts/1 S 01:17 0:00 qmail-clean
qmaild 15417 0.0 0.1 3332 1260 ? S 01:21 0:00 /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/
qmailq 15419 0.0 0.0 1364 268 ? S 01:21 0:00 bin/qmail-queue
root 16356 0.0 0.0 2728 792 pts/1 R 01:27 0:00 ps -aux
==
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.