Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41955 - qmail-1.03-r13 install process incorrect
Summary: qmail-1.03-r13 install process incorrect
Status: RESOLVED INVALID
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: 2004-02-17 14:47 UTC by Martin Mokrejš
Modified: 2004-02-29 06:57 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 Martin Mokrejš 2004-02-17 14:47:48 UTC
>>> Install qmail-1.03-r13 into /var/tmp/portage/qmail-1.03-r13/image/ category net-mail
 * Setting up directory hierarchy ...
 * Installing the qmail software ...
 * Installing manpages
 * Adding env.d entry for qmail
 * Creating sendmail replacement ...
 * Setting up the default aliases ...
 * Setting up maildirs by default in the account skeleton ...
 * Setting up all services (send, smtp, qmtp, qmqp, pop3) ...
cp: cannot create regular file `/var/tmp/portage/qmail-1.03-r13/temp//etc/tcp.smtp': No such file or directory
install: cannot stat `/var/tmp/portage/qmail-1.03-r13/temp//etc/tcp.smtp': No such file or directory
cp: cannot create regular file `/var/tmp/portage/qmail-1.03-r13/temp//etc/tcp.qmtp': No such file or directory
install: cannot stat `/var/tmp/portage/qmail-1.03-r13/temp//etc/tcp.qmtp': No such file or directory
cp: cannot create regular file `/var/tmp/portage/qmail-1.03-r13/temp//etc/tcp.qmqp': No such file or directory
install: cannot stat `/var/tmp/portage/qmail-1.03-r13/temp//etc/tcp.qmqp': No such file or directory
cp: cannot create regular file `/var/tmp/portage/qmail-1.03-r13/temp//etc/tcp.pop3': No such file or directory
install: cannot stat `/var/tmp/portage/qmail-1.03-r13/temp//etc/tcp.pop3': No such file or directory
 * Installing the qmail startup file ...
 * Installing the qmail control file ...
 * Insalling some stock configuration files
ssl
 * Configuration sanity checker
>>> dobin: making /usr/portage/net-mail/qmail/files/1.03-r13/config-sanity-check executable...
ssl
<cut>
>>> /usr/share/man/man8/qmail-command.8.gz
>>> /usr/share/man/man8/qmail-qmtpd.8.gz
>>> /usr/share/man/man8/qmail-lspawn.8.gz
>>> /usr/share/man/man8/qmail-getpw.8.gz
>>> /usr/share/man/man8/qmail-qmqpc.8.gz
>>> /usr/share/man/man8/qmail-qmqpd.8.gz
 * Setting up the message queue hierarchy ...
/usr/sbin/ebuild.sh: line 356: /var/qmail/bin/queue-fix: No such file or directory
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                                                                    [ ok ]
 * To setup qmail to run out-of-the-box on your system, run:
 * ebuild /var/db/pkg/net-mail/qmail-1.03-r13/qmail-1.03-r13.ebuild config


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-28 15:13:27 UTC
fixed this stuff.

as for this from your email:
/usr/sbin/ebuild.sh: line 356: /var/qmail/bin/queue-fix: No such file or
directory

it seems like you didn't install the deps properly (queue-fix is a dep from qmail, and is in DEPEND as such).
Comment 2 Martin Mokrejš 2004-02-29 03:39:55 UTC
Hmm, I have net-mail/queue-fix installed! OK, resynced portage tree, reinstalled net-mail/queue-fix, unmerge qmail, reemerged qmail ... the preferred package is still -r13. So I forced -r15 instead, but got:

>>> Merging net-mail/qmail-1.03-r15 to /
 * Error moving /etc/tcp.smtp to /etc/tcprules.d/tcp.qmail-smtp, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.smtp
 * Error moving /etc/tcp.smtp.cdb to /etc/tcprules.d/tcp.qmail-smtp.cdb, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.smtp.cdb
 * Error moving /etc/tcp.qmtp to /etc/tcprules.d/tcp.qmail-qmtp, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.qmtp
 * Error moving /etc/tcp.qmtp.cdb to /etc/tcprules.d/tcp.qmail-qmtp.cdb, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.qmtp.cdb
 * Error moving /etc/tcp.qmqp to /etc/tcprules.d/tcp.qmail-qmqp, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.qmqp
 * Error moving /etc/tcp.qmqp.cdb to /etc/tcprules.d/tcp.qmail-qmqp.cdb, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.qmqp.cdb
 * Error moving /etc/tcp.pop3 to /etc/tcprules.d/tcp.qmail-pop3, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.pop3
 * Error moving /etc/tcp.pop3.cdb to /etc/tcprules.d/tcp.qmail-pop3.cdb, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.pop3.cdb


aquarius root # ls -la /etc/tcp.*   
-rw-r--r--    1 root     root         2048 Feb 28 21:58 /etc/tcp.pop3.cdb
-rw-r--r--    1 root     root          135 Feb 28 21:58 /etc/tcp.qmqp
-rw-r--r--    1 root     root         2228 Feb 28 21:58 /etc/tcp.qmqp.cdb
-rw-r--r--    1 root     root          135 Feb 28 21:58 /etc/tcp.qmtp
-rw-r--r--    1 root     root         2228 Feb 28 21:58 /etc/tcp.qmtp.cdb
-rw-r--r--    1 root     root          135 Feb 28 21:58 /etc/tcp.smtp
-rw-r--r--    1 root     root         2228 Feb 28 21:58 /etc/tcp.smtp.cdb
aquarius root # ls -la /etc/tcprules.d/
total 43
drwxr-xr-x    2 root     root          336 Feb 29 12:34 .
drwxr-xr-x   85 root     root         5680 Feb 29 12:34 ..
-rwxr-xr-x    1 root     root          335 Feb 29 12:34 tcp.qmail-pop3
-rw-r--r--    1 root     root         2072 Feb 29 12:34 tcp.qmail-pop3.cdb
-rwxr-xr-x    1 root     root          399 Feb 29 12:34 tcp.qmail-qmqp
-rw-r--r--    1 root     root         2074 Feb 29 12:34 tcp.qmail-qmqp.cdb
-rwxr-xr-x    1 root     root          821 Feb 29 12:34 tcp.qmail-qmtp
-rw-r--r--    1 root     root         2130 Feb 29 12:34 tcp.qmail-qmtp.cdb
-rwxr-xr-x    1 root     root         4166 Feb 29 12:34 tcp.qmail-smtp
-rw-r--r--    1 root     root         2130 Feb 29 12:34 tcp.qmail-smtp.cdb
aquarius root # 


So what's wrong with my system?


"svscan start" logs still:

fatal: unable to open directory /var/log/qmail/qmail-pop3d: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-qmtpd: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-qmqpd: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-smtpd: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-send: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-pop3d: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-qmqpd: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-qmtpd: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-smtpd: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-send: access denied
multilog: fatal: unable to open directory /var/log/qmail/qmail-pop3d: access denied

aquarius root # ls -al /var/log/qmail           
total 5
drwxr-xr-x    9 qmaill   root          256 Feb 29 12:34 .
drwx------    6 root     root          608 Feb 29 12:11 ..
drwxr-xr-x    2 qmaill   root           72 Feb 29 12:34 qmail-pop3d
drwxr-xr-x    2 qmaill   root           72 Feb 29 12:34 qmail-qmqpd
drwxr-xr-x    2 qmaill   root           72 Feb 29 12:34 qmail-qmtpd
drwxr-xr-x    2 qmaill   root           72 Feb 29 12:34 qmail-send
drwxr-xr-x    2 qmaill   root           72 Feb 29 12:34 qmail-smtpd
drwxr-xr-x    2 qmaill   root           48 Feb 17 23:22 rblsmtpd
drwxr-xr-x    2 qmaill   root           48 Feb 17 23:32 smtpd
aquarius root # 
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-29 06:57:04 UTC
As for:
 * Error moving /etc/tcp.smtp to /etc/tcprules.d/tcp.qmail-smtp, be sure to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.smtp

that's just so people can clean up their /etc/ directory (I'm not going to delete anything inside an ebuild, too dangerous).

This says EXACTLY your problem:
aquarius root # ls -al /var/log/qmail           
total 5
drwxr-xr-x    9 qmaill   root          256 Feb 29 12:34 .
drwx------    6 root     root          608 Feb 29 12:11 ..

so /var/log is mode 700 ! since qmaill != root, and multilog runs as qmaill, it can't traverse into /var/log !
Fix it back to 755 and everything will work.
I'm surprised your system didn't blow up after you set /var/log to mode 700,

If you intended it as some misguided security, consider mode 711 instead.