Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13014 - net-mail/qmail: PATH
Summary: net-mail/qmail: PATH
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-01 07:15 UTC by Sascha Silbe
Modified: 2003-04-12 08:43 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 Sascha Silbe 2003-01-01 07:15:30 UTC
Please add /var/qmail/bin to PATH and ROOTPATH. It contains user tools like maildirmake and condredirect.
Thanks!
Comment 1 Nick Hadaway 2003-01-15 00:17:15 UTC
I think the reason why such utilities are in this directory is because you want to make it available only to administative users.  Maybe add the directory to your path via the profile that you use as an administrator?
If not, can you give another reason why the average user would need simple access to these files?
Comment 2 Sascha Silbe 2003-01-15 03:43:59 UTC
Many of those programs are intended for users:
bouncesaying
condredirect
datemail
dot-forward
elq
except
forward
maildir2mbox
maildirmake
maildirwatch
mailsubj
pinq
predate
preline
qail
qbiff
qmail-inject
qreceipt
sendmail

They are in /var/qmail/bin instead of /usr/bin because the upstream author insists on this location.

Comment 3 Nick Hadaway 2003-01-29 18:31:30 UTC
qmail-1.03-r8 and -r9 are in portage.  Have you used -r9?  I still have it marked unstable as I haven't had many testers.  I will add the env.d file to the -r9 if you have had success with this ebuild.
Comment 4 Nick Hadaway 2003-02-01 03:04:11 UTC
you should see qmail-1.03-r10 which has gone through a bunch of debugging from
my previous horrid attempt at updating the ebuild.  I need to work out the
mysql and ldap packages or branch off off qmail and make a qmail-mysql and
 qmail-ldap install.  I don't want to do that.  Currently the build has SMTP
AUTH(should work this time!), TLS(+EHLO) patch and split out the comments
 into tls-patch.txt and added to the doc directory, big concurrency, and the
 latest ext_todo qmail queue patch are included as well as the stability fix
 for mail running on a non synchronus link() filesystem such as ext2 or
 reiserfs.  -r9 was missing the rc, -r10 brings it back. Added net-mail/cmd5checkpw for full SMTP AUTH patch support.  I have also included your PATH and ROOTPATH env.d as requested :)
The HOMEPAGES reflect where patches were taken from.
Comment 5 Sascha Silbe 2003-02-01 03:36:54 UTC
OK, that explains where my /var/qmail/rc had gone. :)
-r9 works fine for me, I'll try -r10 as soon as cmd5checkpasswd is in portage.

Comment 6 Nick Hadaway 2003-02-06 10:36:16 UTC
any luck with -r10 yet?
Comment 7 Sascha Silbe 2003-02-06 11:16:48 UTC
OK, cmd5checkpasswd is available now.
First quirk: The ebuild overwrites /var/qmail/alias/.qmail-{root,mailer-daemon,postmaster}. Please either list /var/qmail/alias in CONFIG_PROTECT (/etc/make.globals) or only touch these files if they do not already exist (in the postinst phase, if Gentoo has something like that).

Comment 8 Sascha Silbe 2003-02-06 11:23:40 UTC
Second quirk:

=== Begin log ===
2003-02-06 17:15:28.904977500 warning: qmail-todo: unable to stat mess/0/0
2003-02-06 17:15:28.904979500 warning: qmail-todo: unable to stat mess/1/1
2003-02-06 17:15:28.904982500 warning: qmail-todo: unable to stat mess/2/2
2003-02-06 17:15:28.904983500 warning: qmail-todo: unable to stat mess/3/3
2003-02-06 17:15:28.904984500 warning: qmail-todo: unable to stat mess/4/4
2003-02-06 17:15:28.904986500 warning: qmail-todo: unable to stat mess/5/5
2003-02-06 17:15:28.904987500 warning: qmail-todo: unable to stat mess/6/6
2003-02-06 17:15:28.904988500 warning: qmail-todo: unable to stat mess/7/7
2003-02-06 17:15:28.904990500 warning: qmail-todo: unable to stat mess/8/8
2003-02-06 17:15:28.904991500 warning: qmail-todo: unable to stat mess/9/9
2003-02-06 17:15:28.904994500 warning: qmail-todo: unable to stat mess/10/10
2003-02-06 17:15:28.904995500 warning: qmail-todo: unable to stat mess/11/11
2003-02-06 17:15:28.904996500 warning: qmail-todo: unable to stat mess/12/12
2003-02-06 17:15:28.904998500 warning: qmail-todo: unable to stat mess/13/13
2003-02-06 17:15:28.904999500 warning: qmail-todo: unable to stat mess/14/14
2003-02-06 17:15:28.905001500 warning: qmail-todo: unable to stat mess/15/15
2003-02-06 17:15:28.905002500 warning: qmail-todo: unable to stat mess/16/16
2003-02-06 17:15:28.905005500 warning: qmail-todo: unable to stat mess/17/17
2003-02-06 17:15:28.905010500 warning: qmail-todo: unable to stat mess/18/18
2003-02-06 17:15:28.905012500 warning: qmail-todo: unable to stat mess/19/19
2003-02-06 17:15:28.905013500 warning: qmail-todo: unable to stat mess/20/20
2003-02-06 17:15:28.905014500 warning: qmail-todo: unable to stat mess/21/21
2003-02-06 17:15:28.905016500 warning: qmail-todo: unable to stat mess/22/22
=== End log ===

=== Begin ===
root@cube:/var/qmail/alias# qmail-qstat
messages in queue: 0
messages in queue but not yet preprocessed: 23
root@cube:/var/qmail/alias# ls -l /var/qmail/queue/mess/0  
total 0                    
=== End ===

/var/qmail/queue/mess/1/1..22/22 do not exist, too. And I don't think they should exist, anyway. Would be too much overhead for a small workstation. :)

Comment 9 Nick Hadaway 2003-02-11 00:58:31 UTC
If there are no objections I will unmask qmail-r10 in it's current state.  It carries many improvements over previous releases and from what I understand should be the most stable build as of yet.
Comment 10 Nick Hadaway 2003-02-11 07:14:04 UTC
I have updated -r10 to address your "first quirk"... Re: the "second quirk"
do you have a functional qmail build?
Comment 11 Sascha Silbe 2003-02-11 07:29:05 UTC
Yes, qmail-1.03-r10 currently works fine, apart from this "second quirk".
Haven't checked the fix for the first quirk yet, though.

Comment 12 Nick Hadaway 2003-02-11 07:37:52 UTC
I don't really even think it is a quirk... I think it is just a standard warning message saying that there are no files queued for delivery?
Comment 13 Nick Hadaway 2003-02-12 01:00:50 UTC
Can anyone here verify that doing a "from scratch" emerge that qmail works properly?
AND/OR
an upgrade from -r8 works well?

again Re: "quirk 2"
The ext_todo patch makes this delivery style change to process larger loads of messages faster. see EXTTODO in the documentation directory for a little description.
Comment 14 Nick Hadaway 2003-02-17 04:03:07 UTC
I have now added a small patch to -r10 for an SMTP AUTH problem
a -r11 is coming soon as I have made many changes to this package.

ext_todo was removed in favor of big-todo and re-included the qmailqueue patch so programs such as qmail-scanner work right.
Comment 15 Nick Hadaway 2003-02-18 07:15:33 UTC
If there are no complaints about -r10 I will unmask it soon.
This should now be a safe upgrade from -r8 with some important patches added.
Comment 16 Sascha Silbe 2003-02-21 10:51:35 UTC
No more qmail-todo warnings, so this works fine again.
But /var/qmail/alias/.qmail-{mailer-daemon,postmaster,root} still get overwritten. :(

Comment 17 Nick Hadaway 2003-02-21 19:38:02 UTC
I have changed the appropriate section as such...

for i in mailer-daemon postmaster root
do
     if [ ! -f ${ROOT}/var/qmail/alias/.qmail-${i} ]; then
          touch ${D}/var/qmail/alias/.qmail-${i}
          fowners alias.qmail /var/qmail/alias/.qmail-${i}
     fi
done

Now files will not be overwritten on upgrades if ones exist already.
Comment 18 Sascha Silbe 2003-02-24 06:08:27 UTC
Works fine now. Thanks!

Comment 19 Sascha Silbe 2003-04-12 08:43:19 UTC
qmail-1.03-r10 works fine for quite a while now. You can tag it as stable.