Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28256 - [qmail-1.03-r12] On creating a maildir and .qmail in ~root
Summary: [qmail-1.03-r12] On creating a maildir and .qmail in ~root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-09 05:23 UTC by Hallgrimur Gunnarsson (RETIRED)
Modified: 2003-09-12 15:00 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 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-09 05:23:40 UTC
[CUT from qmail-1.03-r12.ebuild]

#make sure root can get some mail
[ ! -d /root/.maildir ] && ${MAILDIRMAKE} /root/.maildir
[ ! -e /root/.qmail ] && cp ${FILESDIR}/${PV}-${PR}/dot_qmail /root/.qmail
[ -e /root/.qmail ] && chmod 644 /root/.qmail

[/CUT]

Earlier in the ebuild an alias is set up for root,
so this is unnecessary. Besides, even if there wouldn't
be an alias, the mail would bounce since mail is
never delivered to the root user in qmail.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-11 17:52:45 UTC
fixed in CVS.
sorry about that one, it was left as a remainder from before I picked up qmail and I didn't fix it yet.

i've put a note into the ebuild about the old behaviour, and telling them to delete the old directory and symlink up ~alias/.maildir.
For fresh installs of qmail (no /root/.maildir existing) it is created automatically.
Comment 2 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-12 15:00:15 UTC
Ok, although as a policy people shouldn't be reading mail as root.
Mail for postmaster/root/mailer-daemon should be forwarded
to a normal user, but since we don't know what user to forward
to and people might have a habbit of using root, it's perhaps
not such bad default behaviour. I think it'd nice though to put
a notice that recommends people to forward it.