mail no longer working

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
wacko
Forum User
Forum User
Posts: 21
Joined: Tue May 24, 2005 10:24 am

mail no longer working

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

what are the permissions like on /var/qmail/bin/qmail-queue*, /var/spool/qscan, and /var/spool/qscan/tmp?
wacko
Forum User
Forum User
Posts: 21
Joined: Tue May 24, 2005 10:24 am

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
wacko
Forum User
Forum User
Posts: 21
Joined: Tue May 24, 2005 10:24 am

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

yeah: yum remove qmail-scanner
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Last edited by breun on Wed Jul 12, 2006 6:15 am, edited 1 time in total.
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

My mail client (OS X Mail.app) says "qq temporary problem (#4.3.0)" when I try to send out mail.
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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?
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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....
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
wacko
Forum User
Forum User
Posts: 21
Joined: Tue May 24, 2005 10:24 am

Unread post 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
Post Reply