Solved

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

Posted on 2007-11-21
6
2,197 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
The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

 

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

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)

Join & Write a Comment

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 process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 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

15 Experts available now in Live!

Get 1:1 Help Now