Solved

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

Posted on 2007-11-21
6
2,309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Suggested Courses

617 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