Solved

Qmail - qmail-inject: fatal: qq trouble creating files in queue

Posted on 2007-11-21
6
2,222 Views
Last Modified: 2013-12-15
I've been able to get qmail to start, after seeing multiple errors like "/var/qmail/bin/qmail-smtpd: access denied"

Now I'm getting these errors:

"Nov 21 08:29:59 websmtp01 qmail: 1195662599.309783 alert: unable to opendir info            /0, sleeping..."

and when I try to send a test message

"qmail-inject: fatal: qq trouble creating files in queue"

Any ideas if something happened to the permissions?
0
Comment
Question by:JWeb Admin
  • 4
  • 2
6 Comments
 

Author Comment

by:JWeb Admin
ID: 20329686
Maybe this helps as well, I installed qmHandle, and when trying to force send the messages, it says:

"websmtp01# /usr/local/bin/qmHandle -a
Qmail isn't running, can't send messages!"

Is another process binding to the smtp port?  This is what I get when I do a ps aux  grep qmail:

root     573  0.0  0.0   352   220  p0  R+   10:04AM   0:00.00 grep qmail
qmaild   470  0.0  0.1  1220   612 con- I     9:57AM   0:00.00 /usr/local/bin/t
qmails   472  0.0  0.1  1276   712 con- I     9:57AM   0:00.01 qmail-send
qmaill   479  0.0  0.1  1216   692 con- I     9:57AM   0:00.00 splogger qmail
root     480  0.0  0.1  1232   624 con- I     9:57AM   0:00.00 qmail-lspawn ./M
qmailr   481  0.0  0.1  1228   620 con- I     9:57AM   0:00.00 qmail-rspawn
qmailq   482  0.0  0.1  1212   656 con- I     9:57AM   0:00.00 qmail-clean
0
 
LVL 2

Expert Comment

by:nagehmai
ID: 20329787
Your queue ownership should look like:
/var/qmail/queue        owned by qmailq:qmail

Inside the /var/qmail/queue the following directories should be owned by qmails:qmail:
bounce  info local remote

These ones should be owned by qmailq:qmail:
intd lock mess pid todo

All the numbered queue directories within these should have the same ownership as their parents.
If you figure your perms on all the individual queue files are fubar, I recommend downloading and running the Python script queue-repair which can be found here: http://pyropus.ca/software/queue-repair/ 
It will rip through your queue directory and fix any busted perms and ownership.
0
 

Author Comment

by:JWeb Admin
ID: 20329817
What about the error I'm getting that says qmail isnt' running?  Are all the services that need to be active, active?
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:JWeb Admin
ID: 20329826
All of those folders are owned properly.
0
 
LVL 2

Accepted Solution

by:
nagehmai earned 500 total points
ID: 20330862
Can you make sure your suid bit is set on /var/qmail/bin/qmail-queue  ( or /var/qmail/bin/qmail-scanner-queue.pl if you're using that).

Perms on these files should look like:
-rws--x--x  qmailq qmail    qmail-queue

or

-rwsr-xr-x qscand qscand   qmail-scanner-queue.pl
0
 

Author Comment

by:JWeb Admin
ID: 20330896
Yes they are all correct - I'm going to rebuild this machine and install a different OS with a newer install of Qmail - thanks for your help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Automapping, a wonderful feature with Exchange 2010 (SP2 onwards I believe), allows additional/Shared mailboxes that a user has access to be automatically mapped on Outlook client, simplifying the process by adding them while Outlook launches. Ho…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now