Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2007-11-21
6
Medium Priority
?
2,363 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

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

Accepted Solution

by:
nagehmai earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques.
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

971 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