Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37052 - Qmail-smtpd cannot write messages in queue
Summary: Qmail-smtpd cannot write messages in queue
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Robin Johnson
URL: http://blue.rdsnet.ro:8081/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 14:03 UTC by Bogdan Velcea
Modified: 2004-01-03 20:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Velcea 2004-01-02 14:03:00 UTC
I have installed the last stable version of qmail from portage ( qmail-1.03-r13 ), and it seems that qmail-smtpd cannot write messeges in queue, because it doesn't have rights to do it:

qmail-smtpd runs with user: qmaild, group: nofiles
and needs to chdir to /var/qmail/queue, where it doesn't have rights, because it's  the owner of qmailq user and qmail group, and only group and owner have rights there !

I tested with another version of qmail (1.03) on a slackware without any patches and seems that it works without need to do a chdir in /var/qmail/queue !

Reproducible: Always
Steps to Reproduce:
1. telnet localhost 25
2. simulate sending a bare message on smtp
3. in maillog ( from qmail-send, and qmail-smtpd I cannot see anything ) :(

Actual Results:  
it returns error: "451 qq trouble creating files in queue (#4.3.0)", and the
message is never pushed in queue !


Expected Results:  
sending the message in queue, then return a "250 ok" message on smtp !
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-03 20:52:20 UTC
qmail-smtp doesn't put the files into the queue location itself, it calls qmail-send (via qmail-queue) to do it.

qmail-send runs as root and this should work perfectly.

you cannot run qmail-send directly. merge qmail again and make sure both qmail-send and qmail-smtp are running.