LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-23-2011, 09:50 AM   #1
highrise
Member
 
Registered: Jun 2011
Posts: 48

Rep: Reputation: Disabled
Installed clamav / spamassassin, now I have no email...


hi guys

I have a dedicated server which is running CentOS release 5.5

I'm still learning this as I go, but, frustrated at the amount of spam I was getting, I decided to install the Qmail scanner.

I followed the instructions here, all of which seemed to go well.

http://netweblogic.com/linux/mail/qm...r-linux-plesk/

however, now when I try to send mail I am getting the following error:

The mail server responded: qq temporary problem (#4.3.0).

does anyone have any ideas? thanks in advance
 
Old 06-23-2011, 12:11 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,281

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
If you're just learning this, drop qmail and use something configurable and secure like postfix.
If you're stuck with qmail, go to http://www.lifewithqmail.org and start there.

The thing with qmail-1.03 is that mail is delivered via qmailqueue. It is not spam network friendly. There is a patched qmail (netqmail-1.05) which uses a $QMAILQUEUE variable to say what should be doing the delivering, and this changes during a delivery, iirc. I never sorted it and went down in flames, btw.

Also, if your mailboxes are not owned by the user perms 0600, things freak.
 
Old 06-23-2011, 05:02 PM   #3
roberto967
Member
 
Registered: Apr 2011
Location: Cagliari, Italy
Distribution: Slackware64-15.0 multilib
Posts: 119

Rep: Reputation: 36
Quote:
Originally Posted by highrise View Post
hi guys

I have a dedicated server which is running CentOS release 5.5

I'm still learning this as I go, but, frustrated at the amount of spam I was getting, I decided to install the Qmail scanner.

I followed the instructions here, all of which seemed to go well.

http://netweblogic.com/linux/mail/qm...r-linux-plesk/

however, now when I try to send mail I am getting the following error:

The mail server responded: qq temporary problem (#4.3.0).

does anyone have any ideas? thanks in advance
Yes, you have to put qmail-scanner inside the QMAILQUEUE environment variable, hopefully modifing your tcp.smtp

If you want to test simscan (a mail scanner from inter7.com) I have a short guide here http://notes.sagredo.eu/node/38.
 
Old 06-23-2011, 10:04 PM   #4
highrise
Member
 
Registered: Jun 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
thanks guys. How do I put the qmail-scanner insider that environment variable? don't know enough about this really.

The whole thing is running really slowly now and I am not getting all my messages. Is what I have done reversible even? Any help is much appreciated.

thanks in advance.


UPDATE: I have had a look at the logs and I am getting the following error:

error_condition: X-Qmail-Scanner-2.08st: clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2


I have gone through all the directories and CHOWN them to qscand but this has not helped. I don't mind if I have to go back to getting the spam, I just want my email to work again

Last edited by highrise; 06-23-2011 at 11:10 PM.
 
Old 06-24-2011, 03:44 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,281

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
A simple test is to throw things around This is all extremely rusty

cat testmail |spamc -r(?) for a spam report
cat testmail > 127.0.0.1:25
etc.
 
Old 06-24-2011, 03:38 PM   #6
highrise
Member
 
Registered: Jun 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
I tried those commands and I just got 'unknown file or directory'
 
Old 06-25-2011, 03:48 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,281

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by highrise View Post
I tried those commands and I just got 'unknown file or directory'
Save a mail off as testmail. I forgot that bit. Any mail will do, but it helps if it triggers at least one rule in spamassassin. I would also save off some spam and some viruses individually, as you want to see spamassassin & clamav clamp their jaws on them.
 
Old 06-25-2011, 08:28 AM   #8
roberto967
Member
 
Registered: Apr 2011
Location: Cagliari, Italy
Distribution: Slackware64-15.0 multilib
Posts: 119

Rep: Reputation: 36
Hi, you wrote me in private but my reply bounced: 451 qq temporary problem (#4.3.0) (state 18)

ANyway, I can be on help just on simscan, as I dropped qmail-scanner years ago

Roberto



Quote:
Originally Posted by highrise View Post
thanks guys. How do I put the qmail-scanner insider that environment variable? don't know enough about this really.

The whole thing is running really slowly now and I am not getting all my messages. Is what I have done reversible even? Any help is much appreciated.

thanks in advance.


UPDATE: I have had a look at the logs and I am getting the following error:

error_condition: X-Qmail-Scanner-2.08st: clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2


I have gone through all the directories and CHOWN them to qscand but this has not helped. I don't mind if I have to go back to getting the spam, I just want my email to work again
 
Old 06-27-2011, 08:17 AM   #9
highrise
Member
 
Registered: Jun 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
just in case anyone has a similar issue - in the end I just ran:

yum remove qmail-scanner

and the system started receiving email again. It seems Plesk uses its own config and build of qmail.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix+ClamAV+Spamassassin KarolisK Linux - Server 5 05-24-2011 12:37 PM
p3scan, spamassassin and clamav alitabas Linux - Software 0 08-21-2009 10:46 AM
Centos 4.4, Spamassassin and ClamAV JediKnight2 Linux - Software 1 03-11-2007 10:09 AM
Exim4 + Spamassassin + clamav not working arobinson74 Debian 0 02-24-2007 08:00 PM
LXer: Book review: Setup and Run a Small Office Email Server Using Postfix, Courier, Procmail, Squirrelmail, Clamav and Spamassassin LXer Syndicated Linux News 0 08-24-2006 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration