LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-01-2011, 11:23 PM   #1
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
qmail: mail get stuck in queue after installing openprotect package


i install qmail mta.and can recive and send mail sucessfully.but as i am installing openprotect package for qmail,which includes mailscanner and mailwatch with in ..now mail get stuck in /qmail/queue.in/mess/0/....1/..2/..3/ directory..

now iam not getting any mail in inbox.means i can send mail and mail get stuck in queue dir.and delivering in mailbox....
i follow it documentation for installing but not get any solution.still mail are in queue.can any one know proper installtion of openprotect..or what is solution for mail deliver...please help
 
Old 12-02-2011, 12:52 AM   #2
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
today i send mail...and getting this error.........



There was a problem communicating with SMTP:
Expected response code 250 but got code "451", with message "451 qq trouble creating files in queue (#4.3.0)
"
Log data:
++ Starting Swift_SmtpTransport
<< 220 myserver - Welcome to Qmail Toaster Ver. 1.3 SMTP Server ESMTP

>> EHLO myserver.co.in

<< 250-myserver - Welcome to Qmail Toaster Ver. 1.3 SMTP Server
250-STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE 20971520
250 AUTH LOGIN PLAIN CRAM-MD5

++ Swift_SmtpTransport started
>> MAIL FROM:

<< 250 ok

>> RCPT TO:

<< 250 ok

>> DATA

<< 354 go ahead

>>
.

<< 451 qq trouble creating files in queue (#4.3.0)

!! Expected response code 250 but got code "451", with message "451 qq trouble creating files in queue (#4.3.0)





whats the problems
 
Old 12-02-2011, 02:39 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
<< 451 qq trouble creating files in queue (#4.3.0)

!! Expected response code 250 but got code "451", with message "451 qq trouble creating files in queue (#4.3.0)
This looks like a permissions issue. The qmail-queue program cannot create file(s) in the queue directory (usually /var/qmail/queue)
So check the permissions and ownership of the queue directory and all its subdirs:
Code:
find /var/qmail/queue/ -type d -exec ls -ld {} \;
Regards
 
Old 12-02-2011, 10:04 PM   #4
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
thanx..
i run the command here is the output.........

#find /var/qmail/queue/ -type d -exec ls -ld {} \;
drwxr-x--- 11 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/
drwxr-x--- 25 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/mess
drwxr-x--- 2 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/mess/8
drwxr-x--- 2 qmailq qmail 4096 Nov 10 15:54 /var/qmail/queue/mess/0
drwxr-x--- 2 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/mess/7
drwxr-x--- 2 qmailq qmail 4096 Nov 11 10:29 /var/qmail/queue/mess/17
drwxr-x--- 2 qmailq qmail 4096 Nov 11 10:50 /var/qmail/queue/mess/21
drwxr-x--- 2 qmailq qmail 4096 Nov 12 10:20 /var/qmail/queue/mess/19
drwxr-x--- 2 qmailq qmail 4096 Nov 11 12:25 /var/qmail/queue/mess/22
drwxr-x--- 2 qmailq qmail 4096 Nov 11 10:56 /var/qmail/queue/mess/18
drwxr-x--- 2 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/mess/6
drwxr-x--- 2 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/mess/3
drwxr-x--- 2 qmailq qmail 4096 Nov 12 11:29 /var/qmail/queue/mess/20
drwxr-x--- 2 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/mess/2
drwxr-x--- 2 qmailq qmail 4096 Nov 14 11:12 /var/qmail/queue/mess/13
drwxr-x--- 2 qmailq qmail 4096 Nov 10 15:42 /var/qmail/queue/mess/10
drwxr-x--- 2 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/mess/4
drwxr-x--- 2 qmailq qmail 4096 Nov 10 10:19 /var/qmail/queue/mess/9
drwxr-x--- 2 qmailq qmail 4096 Nov 14 10:22 /var/qmail/queue/mess/14
drwxr-x--- 2 qmailq qmail 4096 Nov 14 11:12 /var/qmail/queue/mess/16
drwxr-x--- 2 qmailq qmail 4096 Nov 14 11:12 /var/qmail/queue/mess/11
drwxr-x--- 2 qmailq qmail 4096 Nov 11 09:47 /var/qmail/queue/mess/15
drwxr-x--- 2 qmailq qmail 4096 Nov 11 11:55 /var/qmail/queue/mess/1
drwxr-x--- 2 qmailq qmail 4096 Nov 12 10:20 /var/qmail/queue/mess/12
drwxr-x--- 2 qmailq qmail 4096 Nov 11 16:25 /var/qmail/queue/mess/5
drwx------ 25 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/8
drwx------ 2 qmails qmail 4096 Nov 10 15:54 /var/qmail/queue/local/0
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/7
drwx------ 2 qmails qmail 4096 Nov 11 10:29 /var/qmail/queue/local/17
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/21
drwx------ 2 qmails qmail 4096 Nov 12 09:31 /var/qmail/queue/local/19
drwx------ 2 qmails qmail 4096 Nov 11 12:25 /var/qmail/queue/local/22
drwx------ 2 qmails qmail 4096 Nov 11 10:56 /var/qmail/queue/local/18
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/6
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/3
drwx------ 2 qmails qmail 4096 Nov 12 11:29 /var/qmail/queue/local/20
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/2
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/13
drwx------ 2 qmails qmail 4096 Nov 10 15:42 /var/qmail/queue/local/10
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/4
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/9
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/14
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/16
drwx------ 2 qmails qmail 4096 Nov 14 10:49 /var/qmail/queue/local/11
drwx------ 2 qmails qmail 4096 Nov 11 09:47 /var/qmail/queue/local/15
drwx------ 2 qmails qmail 4096 Nov 11 11:55 /var/qmail/queue/local/1
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/local/12
drwx------ 2 qmails qmail 4096 Nov 11 16:25 /var/qmail/queue/local/5
drwx------ 2 qmailq qmail 4096 Nov 14 11:12 /var/qmail/queue/pid
drwxr-x--- 2 qmailq qmail 4096 Nov 10 10:21 /var/qmail/queue/lock
drwx------ 25 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/8
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/0
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/7
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/17
drwx------ 2 qmails qmail 4096 Nov 11 10:50 /var/qmail/queue/remote/21
drwx------ 2 qmails qmail 4096 Nov 12 10:20 /var/qmail/queue/remote/19
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/22
drwx------ 2 qmails qmail 4096 Nov 11 10:50 /var/qmail/queue/remote/18
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/6
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/3
drwx------ 2 qmails qmail 4096 Nov 12 10:20 /var/qmail/queue/remote/20
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/2
drwx------ 2 qmails qmail 4096 Nov 14 11:12 /var/qmail/queue/remote/13
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/10
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/4
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/9
drwx------ 2 qmails qmail 4096 Nov 14 10:22 /var/qmail/queue/remote/14
drwx------ 2 qmails qmail 4096 Nov 14 11:12 /var/qmail/queue/remote/16
drwx------ 2 qmails qmail 4096 Nov 14 11:12 /var/qmail/queue/remote/11
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/15
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/1
drwx------ 2 qmails qmail 4096 Nov 12 10:20 /var/qmail/queue/remote/12
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/remote/5
drwx------ 25 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/info
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/info/8
drwx------ 2 qmails qmail 4096 Nov 10 15:54 /var/qmail/queue/info/0
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/info/7
drwx------ 2 qmails qmail 4096 Nov 11 10:29 /var/qmail/queue/info/17
drwx------ 2 qmails qmail 4096 Nov 11 10:50 /var/qmail/queue/info/21
drwx------ 2 qmails qmail 4096 Nov 12 10:20 /var/qmail/queue/info/19
drwx------ 2 qmails qmail 4096 Nov 11 12:25 /var/qmail/queue/info/22
drwx------ 2 qmails qmail 4096 Nov 11 10:56 /var/qmail/queue/info/18
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/info/6
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/info/3
drwx------ 2 qmails qmail 4096 Nov 12 11:29 /var/qmail/queue/info/20
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/info/2
drwx------ 2 qmails qmail 4096 Nov 14 11:12 /var/qmail/queue/info/13
drwx------ 2 qmails qmail 4096 Nov 10 15:42 /var/qmail/queue/info/10
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/info/4
drwx------ 2 qmails qmail 4096 Nov 10 10:19 /var/qmail/queue/info/9
drwx------ 2 qmails qmail 4096 Nov 14 10:22 /var/qmail/queue/info/14
drwx------ 2 qmails qmail 4096 Nov 14 11:12 /var/qmail/queue/info/16
drwx------ 2 qmails qmail 4096 Nov 14 11:12 /var/qmail/queue/info/11
drwx------ 2 qmails qmail 4096 Nov 11 09:47 /var/qmail/queue/info/15
drwx------ 2 qmails qmail 4096 Nov 11 11:55 /var/qmail/queue/info/1
drwx------ 2 qmails qmail 4096 Nov 12 10:20 /var/qmail/queue/info/12
drwx------ 2 qmails qmail 4096 Nov 11 16:25 /var/qmail/queue/info/5
drwx------ 2 qmails qmail 4096 Nov 14 11:12 /var/qmail/queue/bounce
drwxr-x--- 2 qmailq qmail 4096 Nov 14 11:12 /var/qmail/queue/todo
drwx------ 2 qmailq qmail 4096 Nov 14 11:12 /var/qmail/queue/intd
 
Old 12-02-2011, 10:30 PM   #5
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
is their any mistake in permission...?????
 
Old 12-03-2011, 02:43 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
is their any mistake in permission...?????
The permissions look ok. I guess that the openprotect software you're trying to install does not have the rights to write in the queue directory
Check the logs to see if you find anything
 
Old 12-03-2011, 03:05 AM   #7
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
# tail -f /var/log/qmail/send/current
@400000004ed455793028d5a4 status: local 0/10 remote 0/60
@400000004ed5a5000b29e70c status: local 0/10 remote 0/60
@400000004ed61de634538bc4 status: exiting
@400000004ed6f916253bde34 status: local 0/10 remote 0/60
@400000004ed76fc33a32db6c status: exiting
@400000004ed84a3708629564 status: local 0/10 remote 0/60
@400000004ed876bc1237c7bc status: exiting
@400000004ed876bc128d3abc status: local 0/10 remote 0/60
@400000004ed87c71290797ec status: exiting
@400000004ed87c7129a2226c status: local 0/10 remote 0/60



#tail -f /var/log/qmail/smtp/current
@400000004ed9a67830a8e2e4 tcpserver: status: 1/100
@400000004ed9a67830aa4a44 tcpserver: pid 9136 from 127.0.0.1
@400000004ed9a67830aaea6c tcpserver: ok 9136 myserver.co.in:127.0.0.1:25 :127.0.0.1::49979
@400000004ed9a67833a0165c CHKUSER accepted rcpt: from <abc@myserver.co.in::> remote <linuxserver.co.in:unknown:127.0.0.1> rcpt <abc@myserver.co.in> : found existing recipient
@400000004ed9a67833a058c4 policy_check: local abc@myserver.co.in -> local abc@myserver.co.in (UNAUTHENTICATED SENDER)
@400000004ed9a67833a08b8c policy_check: policy allows transmission
@400000004ed9a67833a565bc spamdyke[9136]: ALLOWED from: abc@myserver.co.in to: abc@myserver.co.in origin_ip: 127.0.0.1 origin_rdns: localhost auth: (unknown) encryption: (none)
@400000004ed9a678369244ac qmail-smtpd: qq soft reject (qq trouble creating files in queue (#4.3.0)): MAILFROM:<abc@myserver.co.in> RCPTTO:abc@myserver.co.in
@400000004ed9a67836ab143c tcpserver: end 9136 status 0
@400000004ed9a67836ab1824 tcpserver: status: 0/100
 
Old 12-03-2011, 03:36 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Doh, check if your disk is not full. Also check if qmail-queue is suid root
Code:
ls -l /var/qmail/bin/qmail-queue
Also if qmail was working before installing openprotect, you may ask them for support, as you pay for it

Regards

Last edited by bathory; 12-03-2011 at 03:39 PM.
 
Old 12-05-2011, 10:41 PM   #9
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
# ls -l /var/qmail/bin/qmail-queue
-rwsr-xr-x 1 qmailq qmail 20824 Nov 14 16:51 /var/qmail/bin/qmail-queue

did u know how to install mailscanner and mailwatch without openprotect...i tried it many times but i did not get sucess in passing mail through mailwatch gui..
 
Old 12-06-2011, 04:00 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
did u know how to install mailscanner and mailwatch without openprotect...i tried it many times but i did not get sucess in passing mail through mailwatch gui..
I'm sorry I don't, but there are howtos out there you can try to follow.
The qmail-queue permissions are correct, as the suid bit is set. Are you sure it's not something else like SELinux?
Also from what I've read about mailscanner, you may need to increase the softlimit value, when you run antivirus and antispam software along with qmail, or else you might face the problem you mentioned. See here for details

Regards
 
Old 12-08-2011, 03:41 AM   #11
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
softlimit is set to 64000000.
what did u mean bt SElinux i didnot understand .can you tell me
 
Old 12-08-2011, 05:02 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The softlimit is high enough, but maybe it's worth trying to increase it a bit more and see what happens.
Re. SELinux. I guess you're running centos given your nick and the os image in your profile. Centos comes by default with SELinux for better security
Could be that SELinux prevents the user defined in openprotect to write into the qmail queue directory.
To see if it's enabled run:
Code:
getenforce
To disable it temporarily and do some tests to see if that's the reason of your problem, run:
Code:
setenforce 0
 
Old 12-12-2011, 12:38 AM   #13
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
SElinux is disable..
 
Old 12-12-2011, 02:15 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

So from your side everything looks ok. I guess you need to contact their tech support, since you're paying for it

Regards
 
Old 12-12-2011, 03:57 PM   #15
yeayu
Member
 
Registered: Jun 2011
Posts: 32

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by bathory View Post
The permissions look ok. I guess that the openprotect software you're trying to install does not have the rights to write in the queue directory
Check the logs to see if you find anything
I think same thing...

If you don't get the solution you must to contact with openprotect help-desk..(and pay for that).

Advise: if you choose finally that way, get ready a screen connection or something like that to control what kind of things they will fix and improve your own knowledge
 
  


Reply



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
problem with postfix, inbound mail stuck in queue csteel Linux - Newbie 1 07-03-2008 01:24 PM
qmail queue -- can't send mail to anywhere -- please help me b:z *BSD 2 07-12-2005 08:30 AM
delete mail from qmail queue hamish Linux - Software 1 06-05-2005 02:18 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
qmail mail queue bluestorm Linux - Software 0 10-06-2003 06:52 AM

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

All times are GMT -5. The time now is 06:43 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