Koozali.org: home of the SME Server
Obsolete Releases => SME 6.x Contribs => Topic started by: Jáder on April 24, 2007, 03:22:18 PM
-
Hi
I´m using SME6.01. with SEVERAL addons and because saw alert messages about being a old version I decided to upgrade using that script of Jesper.
Now I have several problems... and basically e-mail is not working.
I need some help even to start to understando HOW BAD is my problem... but here what I know:
[root@panda root]# /var/qmail/bin/qmail-qread |grep local |wc -l
32
[root@panda root]# /var/qmail/bin/qmail-qstat
messages in queue: 205
messages in queue but not yet preprocessed: 0
I changed permissions here:
[root@panda root]# ls -al /var/qmail/bin/qmail-queue
-rwsrwxr-x 1 qmaild qmail 12968 Apr 21 2003 /var/qmail/bin/qmail-queue
and here:
[root@panda root]# ls -la /etc/freshclam.conf
-rwx------ 1 root root 1594 Apr 23 11:32 /etc/freshclam.conf
[root@panda root]# rpm -qi qmail
Name : qmail Relocations: (not relocateable)
Version : 1.03 Vendor: (none)
Release : 08 Build Date: Mon 21 Apr 2003 12:50:49 PM BRT
Install date: Tue 15 Nov 2005 07:02:06 AM BRST Build Host: sardine.nssg.mitel.com
Group : Networking/Daemons Source RPM: qmail-1.03-08.src.rpm
Size : 820230 License: Daniel J. Bernstein
Packager : e-smith developers <bugs@e-smith.com>
URL : http://cr.yp.to/qmail.html
Summary : A modern, fast, secure replacement for sendmail
Description :
[root@panda root]# rpm -qa|grep qmail
qmail-1.03-08
e-smith-qmailanalog-1.10.0-01
qmailanalog-0.70-03
qmail-qfilter-1.5-1
qmail-bsmtp-0.1-1
e-smith-qmail-1.8.0-01
ANY help is welcome. There are 50 users w/o e-mail!
Now even send on webmail appears to do not work!
I can be found on MSN jader31 #AT# terra #DOT# com #DOT# br
Thanks
Jáder
-
In a working envorinment I have :
-rws--x--x 1 qmailq qmail 12968 Apr 21 2003 /var/qmail/bin/qmail-queue
maybe it will help when you apply :
chmod uga=+rxwt /tmp
and restart the httpd-admin and httpd-e-smith services.
Harro
-
Confucius
I also had that permissions.
I saw a "chmod 4711 qmail-queue" on somewhere.
I just could understand why will happen when that strange (at least to me) chmod is run. Could you explain it to me ? Thanks
I also cannot understand why I should restart http-admin and httpd-e-smith services (to me both are for http... not for qmail).
They should help with webmail problem, but not with this qmail error:
[root@panda root]# tail /var/log/qmail/current |tai64nlocal
2007-04-24 11:37:51.589632500 warning: trouble injecting bounce message, will try later
2007-04-24 11:37:51.590498500 warning: trouble injecting bounce message, will try later
2007-04-24 11:37:51.591349500 warning: trouble injecting bounce message, will try later
BTW: my webmail error is:
"There was an error sending your message: unable to send data"
on compose message window when I press SEND.
-
1 of the last updates from Jesper (knuddi) managed to disrupt the effective rights on the /tmp directory. This results in a lot of trouble.
Amavis-ng, httpd-admin and prob. qmail and a few more rely on the /tmp directory. Since the /tmp directory became un-approachable due to the changed rights it's causing a system wide problem.
Maybe the best you can do now is :
change the rights on the /tmp directory as mentioned before and restart the server. See what that brings you.
Your log files will inform you further about any kind of trouble. Would like to know how far this will get you.
Harro
-
Hi Confucius
I did the chmod on /tmp and restarted:
qmail
smtpfront-qmail
httpd-admin
httpd-e-smith
but still getting same errors:
#tail -f /var/log/qmail/current |tai64nlocal
2007-04-24 12:00:09.765405500 warning: trouble injecting bounce message, will try later
and same error on webmail too.
Here is a ps gaux|grep qmail:
[root@panda root]# ps gaux|grep qmail
root 498 0.0 0.0 1280 264 ? S 08:13 0:00 supervise qmail
qmaill 521 0.0 0.0 1292 264 ? S 08:14 0:00 /usr/local/bin/mu
qmaill 528 0.0 0.0 1292 264 ? S 08:14 0:00 /usr/local/bin/mu
qmaill 534 0.0 0.0 1296 228 ? S 08:14 0:00 /usr/local/bin/mu
qmailq 9471 0.4 8.8 50088 44960 ? S 09:27 0:45 clamd
qmailq 19973 0.0 8.8 50088 44960 ? S 11:27 0:00 clamd
qmails 23009 0.0 0.0 1344 376 ? S 11:56 0:00 qmail-send
root 23011 0.0 0.0 1296 276 ? S 11:56 0:00 qmail-lspawn /Ma
qmailr 23012 0.0 0.0 1296 284 ? S 11:56 0:00 qmail-rspawn
qmailq 23013 0.0 0.0 1288 304 ? S 11:56 0:00 qmail-clean
qmaild 23095 0.0 0.0 1348 468 ? S 11:56 0:00 /usr/local/bin/tc
root 23754 0.0 0.1 1676 576 pts/0 R 12:03 0:00 grep qmail
On SME panel of Antivirus I have several messages not delivered with this error:
Error: Cannot connect to /var/lib/clamav/clamd.sock.
But it´s there:
[root@panda root]# ls -la /var/lib/clamav/clamd.sock
srwxrwxrwx 1 qmailq qmail 0 Apr 24 09:28 /var/lib/clamav/clamd.sock
Could we double check step by step qmail / amavis / smtpfront to be sure each pass is ok before move next one ?
Thanks by your time AND patience! ;)
Jáder
-
See if there is anything usefull in this thread.
http://forums.contribs.org/index.php?topic=12831.0
On SME panel of Antivirus I have several messages not delivered with this error:
Error: Cannot connect to /var/lib/clamav/clamd.sock.
service clamd restart
Also related to /tmp I think. The sock maybe be there as a file but doesn't mean it's used, can be that clamd tripped and had no option to remove the sock.
-
Hi
I have no /tmp problem, see:
[root@panda root]# ls -lad /tmp/
drwxrwxrwt 4 root root 4096 Apr 24 13:44 /tmp/
[root@panda root]#
And have restarted all services I remembered:
service qmail restart;service smtpfront-qmail restart;service clamd restart;service httpd-e-smith ; restart httpd-admin restart
Still no luck
Why my clients cannot send messages to server anymore?
They are keeping on outbox and getting a error from server.
I have disabled SpamFilter and Antivirus on sme panel... no luck! :(
I´m getting desperate... the problem now appears to be just on qmail.
Can I reinstall it or verify it... step by step?
What logs should I search first for errors ?
On
[root@panda root]# tail -f /var/log/qmail/current |tai64nlocal
2007-04-24 13:48:05.309142500 warning: trouble injecting bounce message, will try later
How debug this ?
Could this to be a smtpfront-qmail problem? (I don´t think so!)
Thanks
Jáder
-
I had the same problem
Solved it as follows
Log in as root
chmod 1777 /tmp
service clamd restart
If the service still does not start
Download the Knuddi script again
Run it again
sh antivirus_install.sh
After installation
run chmod 1777 /tmp
service clamd restart
Reboot
-
Hi besterl
I have problem to reboot my server (work time here now).
I have chmd 1777 /tmp and restarted almost everything I could remember:
qmail
smtpfront-qmail
httpd-e-smith
httpd-admin
clamd
And appear to do not solve my problem.
I´ll have to wait more 3 hours to reboot server.
Just as an info, most of time it fails to stop qmail...
[root@panda queue]# service qmail restart
Stopping qmail: [ FAILED ]
Starting qmail: [ OK ]
[root@panda queue]# service qmail status
/service/qmail: up (pid 3470) 2669 seconds, normally down, want down
some time later, I found qmail stopped for a while...
and obviously, restart it. It appears to be very busy so do not restart.
-
what can you find in the logfiles related to this sudden stop of qmail ?
/var/log/qmail/current & /var/log/messages
-
Now (as yesterday) I have /var/log/qmail/current showing this:
deferral: Sorry,_message_has_wrong_owner._
yesterday I have same problem and was solving it by:
for i in /var/qmail/queue/mess/*; do chown qmailq:qmail $i/*;done
killall -ALRM qmail-send
I did this today... no go!
BTW... to stop the previous problem (4.3.0 on qmail-inject) I do a DUMMY thing... chmod -R 777 /var/qmail/queue/.
I know this is now right... but I´m tired of permissions problems!
Now qmail accept message from clients (including webmail)... but let them on queue! ARGH!
[root@panda queue]# /var/qmail/bin/qmail-qstat
messages in queue: 251
messages in queue but not yet preprocessed: 0
[root@panda queue]#
Jáder
-
I'm not gonne try to even understand what you have done. It seems you did more then we can see in your messages here.
I suggest that you do reboot the server. Check all logfiles related to current problems and maybe we have an option to turn you server back to normal again. From what I see now is that you know very well how to find your way but we still need to guess about a lot of things.
Harro
PS: I know you have to wait for a silent moment to reboot.
-
Hi
I have done several attempts... to fix the problems.
I just would like to understand why I´m getting permissions problems when I have 777 all /var/qmail/queue directory and used for to change owner of mails to qmailq!!!
Can I remove and reinstall something (qmail, smtpfront-qmail) ?
How should I do this ?
Thanks
Jáder
-
let's 1st verify the qmail directory
ls -la /var/qmail/
drwxr-x--- 11 qmailq qmail 4096 Apr 21 2003 queue
ls -la /var/qmail/queue
drwxr-x--- 11 qmailq qmail 4096 Apr 21 2003 .
drwxr-xr-x 15 root qmail 4096 Mar 30 2006 ..
drwx------ 2 qmails qmail 4096 Sep 24 2006 bounce
drwx------ 25 qmails qmail 4096 Apr 21 2003 info
drwx------ 2 qmailq qmail 4096 Apr 24 21:35 intd
drwx------ 25 qmails qmail 4096 Apr 21 2003 local
drwxr-x--- 2 qmailq qmail 4096 Dec 12 2003 lock
drwxr-x--- 25 qmailq qmail 4096 Apr 21 2003 mess
drwx------ 2 qmailq qmail 4096 Apr 24 21:35 pid
drwx------ 25 qmails qmail 4096 Apr 21 2003 remote
drwxr-x--- 2 qmailq qmail 4096 Apr 24 21:35 todo
I can see that the bounce, local & remote directory are not owned by qmailq ... when you did a chmod -R qmailq I can imagine that this could create a problem. When you do have these set wrong come back on it so it makes sense to go 1 level deeper.
Harro
-
They appears to have right owner, see:
[root@panda tmp]# ls -lad /var/qmail/queue/
drwxrwxrwx 11 qmailq qmail 4096 Apr 24 14:46 /var/qmail/queue/
[root@panda tmp]# ls -la /var/qmail/queue/
total 44
drwxrwxrwx 11 qmailq qmail 4096 Apr 24 14:46 .
drwxr-xr-x 14 root qmail 4096 Nov 15 2005 ..
drwxrwxrwx 2 qmails qmail 4096 Apr 24 16:34 bounce
drwxrwxrwx 25 qmails qmail 4096 Nov 15 2005 info
drwxrwxrwx 2 qmailq qmail 4096 Apr 24 17:05 intd
drwxrwxrwx 25 qmails qmail 4096 Nov 15 2005 local
drwxrwxrwx 2 qmailq qmail 4096 Nov 15 2005 lock
drwxrwxrwx 25 qmailq qmail 4096 Nov 15 2005 mess
drwxrwxrwx 2 qmailq qmail 4096 Apr 24 17:05 pid
drwxrwxrwx 25 qmails qmail 4096 Nov 15 2005 remote
drwxrwxrwx 2 qmailq qmail 4096 Apr 24 17:05 todo
-
Jader,
Have you been fiddling with the fstab ? I wanne rule out all suspicious possibilities. I've found this :
http://www.lifewithqmail.org/lwq.html#system-requirements
look at the NOTE.
Harro
-
No
[root@panda root]# cat /etc/fstab
#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few entries are updated during
# the template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/fstab/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
LABEL=/1 / ext3 usrquota,grpquota 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
I have done a signal-event post-upgrade and a signal-event reboot
but still getting error messages:
[root@panda root]# tail /var/log/qmail/current |tai64nlocal
2007-04-24 18:38:35.946453500 delivery 134: deferral: Sorry,_message_has_wrong_owner._(#4.3.5)/
2007-04-24 18:38:35.946454500 status: local 0/10 remote 0/20
2007-04-24 18:38:37.966832500 starting delivery 135: msg 7045437 to local alias-localdelivery-carina@segura.com.br
2007-04-24 18:38:37.966837500 status: local 1/10 remote 0/20
2007-04-24 18:38:37.966838500 delivery 135: deferral: Sorry,_message_has_wrong_owner._(#4.3.5)/
2007-04-24 18:38:37.966839500 status: local 0/10 remote 0/20
2007-04-24 18:38:47.981795500 starting delivery 136: msg 7045618 to local alias-localdelivery-esegura@segura.com.br
2007-04-24 18:38:47.981803500 status: local 1/10 remote 0/20
2007-04-24 18:38:47.981917500 delivery 136: deferral: Sorry,_message_has_wrong_owner._(#4.3.5)/
2007-04-24 18:38:47.981918500 status: local 0/10 remote 0/20
[root@panda root]#
[root@panda root]# /var/qmail/bin/qmail-qstat
messages in queue: 362
messages in queue but not yet preprocessed: 0
[root@panda root]# uptime
6:40pm up 5 min, 1 user, load average: 0.10, 0.40, 0.22
[root@panda root]#
-
Jader,
I never used this myself. But it might fix your problem, could also kill all you have in the queue now (make a copy is my suggestion)
Quit all services that use the qmail-queue
wget http://qmail.jms1.net/scripts/qfixq
chmod 700 qfixq
./qfixq
When you have done this you suppose to run it again to do the actal fixing.
./qfixq live
I've found this here : http://qmail.jms1.net/scripts/qfixq.shtml (doesn't allow IE, I used lynx to get quick access)
EDIT: another tool that might be working (written by a more involved person) http://linux.softpedia.com/get/Communications/Email/queue-repair-1657.shtml
-
Ihave nothing more to loose... so I try it!
The error on /var/log/qmail/current changed to
delivery 7: deferral: forward:_fatal:_qq_trouble_creating_files_in_queue_(#4.3.0)/
and it bring back right permissions:
[root@panda tmp]# ls -la /var/qmail/queue/
total 44
drwxr-x--- 11 qmailq qmail 4096 Apr 24 14:46 .
drwxr-xr-x 14 root qmail 4096 Nov 15 2005 ..
drwx------ 2 qmails qmail 4096 Apr 24 17:59 bounce
drwx------ 25 qmails qmail 4096 Nov 15 2005 info
drwx------ 2 qmailq qmail 4096 Apr 24 19:15 intd
drwx------ 25 qmails qmail 4096 Nov 15 2005 local
drwxr-x--- 2 qmailq qmail 4096 Nov 15 2005 lock
drwxr-x--- 25 qmailq qmail 4096 Nov 15 2005 mess
drwx------ 2 qmailq qmail 4096 Apr 24 19:15 pid
drwx------ 25 qmails qmail 4096 Nov 15 2005 remote
drwxr-x--- 2 qmailq qmail 4096 Apr 24 19:15 todo
[root@panda tmp]#
After all I restart clamd, smtpfront-qmail and qmail... and to be sure the whole server!
Will return in one hour (have one apointment)
Thanks so far
Jáder
-
You have switched AntiVirus & SpamAssassin back on in the server manager ? They should work together as a team and I have the impression that there might be things on an/or off that cause an unbalanced situation.
Seeing that the rights are set correctly is a good thing. Getting a different error is always positive to me too. In most cases it means progress.
Now it is obvious that in the queue itself might be still a problem with the rights that we don't see.
ls -la /var/qmail/queue/mess/
total 100
drwxr-x--- 25 qmailq qmail 4096 Apr 21 2003 .
drwxr-x--- 11 qmailq qmail 4096 Apr 21 2003 ..
drwxr-x--- 2 qmailq qmail 4096 May 24 2006 0
drwxr-x--- 2 qmailq qmail 4096 Nov 8 2005 1
drwxr-x--- 2 qmailq qmail 4096 Apr 21 2003 10
drwxr-x--- 2 qmailq qmail 4096 Apr 21 2003 11
etc...
ls -la /var/qmail/queue/local/
total 100
drwx------ 25 qmails qmail 4096 Apr 21 2003 .
drwxr-x--- 11 qmailq qmail 4096 Apr 21 2003 ..
drwx------ 2 qmails qmail 4096 May 29 2005 0
drwx------ 2 qmails qmail 4096 May 1 2005 1
drwx------ 2 qmails qmail 4096 Apr 21 2003 10
drwx------ 2 qmails qmail 4096 Apr 21 2003 11
etc....
ls -la /var/qmail/queue/remote/
total 100
drwx------ 25 qmails qmail 4096 Apr 21 2003 .
drwxr-x--- 11 qmailq qmail 4096 Apr 21 2003 ..
drwx------ 2 qmails qmail 4096 May 24 2006 0
drwx------ 2 qmails qmail 4096 Nov 8 2005 1
drwx------ 2 qmails qmail 4096 Apr 21 2003 10
drwx------ 2 qmails qmail 4096 Apr 21 2003 11
etc....
ls -la /var/qmail/queue/info/
total 100
drwx------ 25 qmails qmail 4096 Apr 21 2003 .
drwxr-x--- 11 qmailq qmail 4096 Apr 21 2003 ..
drwx------ 2 qmails qmail 4096 May 24 2006 0
drwx------ 2 qmails qmail 4096 Nov 8 2005 1
drwx------ 2 qmails qmail 4096 Apr 21 2003 10
drwx------ 2 qmails qmail 4096 Apr 21 2003 11
etc....
For now this is all I can do. Past 1 AM here... Appointment with myself :)
Will be back fresh soon.
Harro
-
Hi
I think I fixed it.
Not really sure how...but:
I have used anything/everything who could fix a qmail queue... nothing worked.
I also removed relays.ordb.org (or another one I cannot remember) from my spam blocking lists.
I enabled back SpamFilter and Antivirus on web panel... nothing fixed it! :(
So I started to change permissions back to old ones... no extra W or X
when qmail-queue went back to normal (permissions, owner)
as had been several times before (even with double check!)... it started to work.
So my opinion is: if isn´t broke... don´t fix it!
If it´s working... just say "thanks God" because now is 11pm!!
I hope never EVER anyone get stuck on this problem like I did.
Best luck to everyone else!
I´d like to say THANK YOU to Confucius by his HUGE patience!
Regards
Jáder
-
What a relief that it's working again... Was slowly getting a bit worried but now I see it did pay off to invest some time.
1 last advice... start working on an upgrade and I suggest to do a clean install and move all data by the known ways.
Jesper announced already that during this summer his support for ClamAV on SME6 will end.
Harro
-
Hi Confucios/Harro
Yes... I was getting nervous about not be able to put it back on trails... but now everything is ok.
I appreciate all your effort to help.
I really think last tool I run ( ./queue_repair.py -r) MAY have fixed everything but permissions/owner of qmail-queue... after I fix those everything was ok.
I think remove a bad blacklist (maybe the default one for old versions) MAY have helped.
This client will upgrade very soon... they are planning to buy a SERVER (not a builded machine as for now!) ... maybe even a rack server!
I look forward to install SME7 on all SME6 I still have running... It´s very good to use Centos 4.x (a new distro) x RH 7.x (a very OLD distro!)
Thank you!
Jáder
-
Very glad to see that you resolved whatever initially caused your problem. I would like to add though that the only reported problem was the /tmp diretory rights. Having said that, then most deamons use this location for everything and when unavailable I am sure the server can be sick in almost all corners. I recommended a reboot for the same reason but do understand that some servers are not easily rebooted (I have a few of those).
Until now just around 1100 people/servers have updated to the new ClamAV version including the latest sme-antivirus panel. I personally think that is quite fantastic.
/Jesper
-
Jesper
I´d like to say THANK YOU by your great contributions.
I apologize if I let anyone to think the problem is your contribution... I really do not believe that.
This server is HIGHLY customized.
I just would like we have better Howto about how to diagnose a qmail problem (maybe a step by step procedure).
I saw the qmail big pictures on their site... but there is no step by step diagnostic.
In some moment I thought about to remove qmail rpm (and smtpfront-qmail too) and reinstall. Not sure if that would have cut my resolution time...
But do not know what/where find for tips/logs/problems... it´s SCARY!!
Jesper, let me say again: Was not your fault!
I´m responsable for anything I do on my own servers! ;)
I just got desperate after second day w/o e-mail and qmail debug is not easy (at least to me!).
Thanks to everyone who contributes to SME!
It´s wonderful see someone who never saw you really trying to help you to fix your problems.
Jáder