Koozali.org: home of the SME Server

qmail ... more problems after antivirus_install.sh

Offline Confucius

  • ****
  • 235
  • +0/-0
qmail ... more problems after antivirus_install.sh
« Reply #15 on: April 24, 2007, 10:30:40 PM »
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

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
qmail ... more problems after antivirus_install.sh
« Reply #16 on: April 24, 2007, 11:40:32 PM »
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]#
...

Offline Confucius

  • ****
  • 235
  • +0/-0
qmail ... more problems after antivirus_install.sh
« Reply #17 on: April 25, 2007, 12:05:54 AM »
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

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
qmail ... more problems after antivirus_install.sh
« Reply #18 on: April 25, 2007, 12:20:28 AM »
Ihave nothing more to loose... so I try it!
The error on /var/log/qmail/current changed to
Code: [Select]

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
...

Offline Confucius

  • ****
  • 235
  • +0/-0
qmail ... more problems after antivirus_install.sh
« Reply #19 on: April 25, 2007, 01:08:43 AM »
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.

Code: [Select]

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...


Code: [Select]

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....


Code: [Select]

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....


Code: [Select]

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

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
qmail ... more problems after antivirus_install.sh
« Reply #20 on: April 25, 2007, 04:04:45 AM »
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
...

Offline Confucius

  • ****
  • 235
  • +0/-0
qmail ... more problems after antivirus_install.sh
« Reply #21 on: April 25, 2007, 08:55:17 AM »
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

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
qmail ... more problems after antivirus_install.sh
« Reply #22 on: April 25, 2007, 12:03:45 PM »
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
...

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
qmail ... more problems after antivirus_install.sh
« Reply #23 on: April 25, 2007, 08:20:48 PM »
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

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
qmail ... more problems after antivirus_install.sh
« Reply #24 on: April 26, 2007, 11:57:18 AM »
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
...