Page 1 of 3

mail no longer working

Posted: Tue Jul 11, 2006 7:27 am
by wacko
Hi,

I recently ran yum upgrade with the following channels,
[atomic]
name=Atomic Rocket Turtle - $releasever - Atomic PSA-Compatible RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/art/3ES/

[atomic-app-vault]
name=Atomic Rocket Turtle - $releasever - Atomic PSA App Vault RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/app-vault/

[psa-7.5]
gpgcheck=0
name=Atomic Rocket Turtle - $releasever - SW-Soft PSA 7.5 RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/psa-7.5/3ES/
As far as I can remember it upgraded spamassassin, not sure if it upgraded qmail-scanner or not, after this my mail has stopped working, I have attempted to uninstall qmail-scanner,spamassassin, reinstall them, run the reconfigure script and still no joy, When I attempt to send directly to the mail server I get an error message, The maillog shows the following,

Jul 11 11:59:52 artemis X-Qmail-Scanner-2.01st: [artemis.domain.com115261559277210733] /var/spool/qscan/tmp/artemis.domain.com115261559277210733 exists - try again later...

yet there is nothing in the qscan/tmp directory, can somone please give me a pointer as to what is going wrong?!!

Im runnning RHEL3 with plesk 7.5

Much appreciated.

--w

Posted: Tue Jul 11, 2006 8:29 am
by scott
what are the permissions like on /var/qmail/bin/qmail-queue*, /var/spool/qscan, and /var/spool/qscan/tmp?

Posted: Tue Jul 11, 2006 8:41 am
by wacko
Hey Scott,

They are

-r-s--x--x 1 qmailq qmail 14808 Mar 21 14:57 /var/qmail/bin/qmail-queue
-rw-rw---- 1 113 113 14272 Jul 11 11:52 qmail-queue.log
-rw-rw---- 1 10012 113 39 Jul 11 11:52 qmail-scanner-queue-version.txt
-rw-r----- 1 10012 113 12288 Jul 11 11:52 quarantine-events.db
drwxr-x--- 2 113 113 4096 Jul 10 18:07 tmp

Thnks for the help on this! never happened like this before, currently my mail is completely down, is it a permissions issue on these dirs?

Thnks
-- w

Posted: Tue Jul 11, 2006 10:23 am
by scott
ah, which qmail-scanner rpm are you using? qmail-scanner 2.01-6 is the latest stable. If you're using the -bleeding channel you'll get one of the screwed up broken ones.

Posted: Tue Jul 11, 2006 10:42 am
by wacko
This is the one when i try and run the install, im not using the bleeding edge,

Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 3ES - Atomic PSA-Compatible RPMS
Server: Atomic Rocket Turtle - 3ES - Atomic PSA App Vault RPMS
Server: Atomic Rocket Turtle - 3ES - SW-Soft PSA 7.5 RPMS
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[install: qmail-scanner 1:2.01-6.rhel3.art.noarch]
Is this ok [y/N]:

Is there a way to completely remove and reinstall qmailscanner/spamassassin from scratch, I currently have them removed just to acceot mail which the mailserver does seem to be accepting mail as per maillog, on just normal qmail, but i cnt seem to download anything or send anything via it.

Thnks a bunch scott!
-- w

Posted: Tue Jul 11, 2006 3:53 pm
by scott
yeah: yum remove qmail-scanner

Posted: Wed Jul 12, 2006 6:10 am
by breun
My server also doesn't accept mail anymore since updating to qmail-scanner 2.01-6. Uninstalling doesn't fix it either. In my maillog I get these errors:
Unable to open pipe to /var/qmail/bin/qmail-queue.orig [16777215] (#4.3.0) - Broken pipe
Unable to close pipe to /var/qmail/bin/qmail-queue.orig [255] (#4.3.0) - Broken pipe
Permissions:
-rwsr-xr-x 1 qmailq qmail 4647 Jul 12 12:06 qmail-queue
-r-xr-xr-x 1 root qmail 16012 Jul 5 2005 qmail-queue.orig
drwxr-xr-x 6 qscand qscand 4096 Jul 12 12:06 qscan
drwxr-x--- 2 qscand qscand 4096 Jul 12 12:07 tmp
I noticed qmail-scanner-queue.pl is now owned by qscand:qscand whereas with qmail-scanner 1.25 it was owned by qmaild:qmail. Changing that didn't fix it either though and only got me extra errors in the log:
cannot open /var/spool/qscan/qmail-scanner-queue-version.txt - did you initialise the system by running "qmail-scanner-queue.pl -z"? - Permission denied
I ran qmail-scanner-queue.pl -z and changed back the owner, but still no working mail.

Posted: Wed Jul 12, 2006 6:14 am
by breun
My mail client (OS X Mail.app) says "qq temporary problem (#4.3.0)" when I try to send out mail.

Posted: Wed Jul 12, 2006 6:28 am
by breun
When I stop the spamassassin service and restart qmail my server does accept mail, but apparently still fails to deliver it due to the broken pipe issue.

Posted: Wed Jul 12, 2006 6:34 am
by breun
I also get this error:
Unable to close pipe to /var/qmail/bin/qmail-queue.orig [62] (#4.3.0) - Illegal seek
Anyone with ideas?

Posted: Wed Jul 12, 2006 6:42 am
by breun
Are these files chowned and chmodded correctly?

Code: Select all

-rwsr-xr-x  1 qmailq qmail     4647 Jul 12 12:06 qmail-queue
-r-xr-xr-x  1 root   qmail    16012 Jul  5  2005 qmail-queue.orig
-rwsr-xr-x  1 qscand qscand  154292 Jul 12 12:06 qmail-scanner-queue.pl
I think the problem might be permissions. qmail-queue is owned by qmailq:qmail and qmail-scanner-queue.pl by qscand:qscand. Is that correct? I don't understand completely how qmail-scanner works in this regard.

Posted: Wed Jul 12, 2006 7:13 am
by breun
And what about this?
# /usr/share/qmail-scanner/contrib/test_installation.sh

An error has occured.

Cannot find any reference to the Q-S administrator Email address in
/var/qmail/bin/qmail-scanner-queue.pl on your system!

Exiting....

Posted: Wed Jul 12, 2006 7:29 am
by breun
I just found a fix with Scott.

Code: Select all

chown qmailq:qmail /var/qmail/bin/qmail-queue.orig
chmod 4755 /var/qmail/bin/qmail-queue.orig
A new rpm with a fixed qmail-scanner-reconfigure script is on its way.

Posted: Wed Jul 12, 2006 7:33 am
by scott
theres a new user in the mix now, qscand, which I'd always created, but never did anything with. So the qmail-scanner queue now operates as qscand, where it had operated as qmailq before.

Just put out -7, which adds in a permissions, and qscand user check that should resolve this.

Posted: Thu Jul 13, 2006 6:21 am
by wacko
Hey Scott,

I uninstalled the older version and installed the latest 07 version you put out, still no njoy, attempted manually to change the permissions as breun suggested and it still gives me the same errors as they do before.

When I have qmail-scanner i get all the issues bruen was having, with the mailclient telling me it had temporary problems sending out mail the logs files and still getting the error of "exists - try again later..."

I have for now removed qmail-scanner and my mail has started to work again, but obviously the spam is coming in along with it. Im not sure what is different in my config that your update did not fix

Is it possible to go to an older version where qscand was not an issue?

Thnks
--w