Talk:QmailRocksOnGentoo
From Gentoo Linux Wiki
Contents |
[edit] Example Install
The following is from a fresh stage1 install using livecd 2005.1 minimal
--rhodyne 00:24, 16 September 2005 (CST)
[edit] Stage1 Gentoo install
This is info from my /etc/make.conf
| File: /etc/make.conf |
USE="apache2 bzip2 glibc-omitfp hardened hardenedphp logmail php sensord
spamassassin sse subject-rewrite virus-scan -X -alsa -arts -avi
-berkdb -cups -eds -emboss -encode -foomaticdb -fortran -gnome
-gstreamer -gtk -imlib -kde -mad -mikmod -mp3 -mpeg -ogg -oggvorbis
-opengl -oss -qt -quicktime -truetype -vorbis -xmms -xv"
CFLAGS="-O3 -march=athlon-xp -pipe -mmmx -msse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo"
#PORTDIR_OVERLAY="/usr/local/portage"
|
Check descriptions of USE flags in /usr/portage/profiles/use.desc to understand all my changes
Basically I removed all multimedia (this is a server), enabled global flags that would benefit the intended purpose, and set local flags for some of the QMR packages.
You can also use gentoolkit's euse command:
euse -i <theflag>
It will tell you what the flag does.
--s0undt3ch 06:00, 16 September 2005 (GMT)
Failure during emerge -e system (known gcc issue) resolved by:
emerge gcc; gcc-config -l # make sure using right gcc version emerge python; emerge linux-headers; emerge glibc emerge gettext; emerge binutils; emerge gcc # yes it's redundant emerge -e system
Emerged gentoo-sources (2.6.12-r10) and finished the standard install with normal (gentoo install doc recommended) system tools.
Added vim since I can't stand nano:
- vim and its depenancies
dev-util/ctags-5.5.4-r1 app-editors/vim-core-6.3.084 app-editors/vim-6.3.084 app-vim/gentoo-syntax-20050618
At this point we still have a relatively vanilla install.
[edit] Missing dependacies (QMR Pre-requisites)
Packages (and their dependancies) used in this doc that I know are NOT part of a default Gentoo install and are not dependancies of the QMR tools:
- sharutils and webapp-config
app-arch/sharutils-4.2.1-r11 app-portage/gentoolkit-0.2.0 net-www/webapp-config-1.11
emerge -vp sharutils webapp-config will show if they are installed or not.
These should be listed in a pre-requisites section.
[edit] QMR Ebuild dependancies
Install of QMR ebuilds generated the following dependancies:
QMR tools not listed didn't have any dependancies outside of themselves
- mail-mta/qmail
sys-apps/ucspi-tcp-0.88-r10 net-mail/dot-forward-0.71-r1 sys-process/daemontools-0.76-r4 net-mail/queue-fix-1.4-r2 net-mail/cmd5checkpw-0.30 net-mail/checkpassword-0.90-r1 mail-mta/qmail-1.03-r16
- net-mail/courier-imap
net-libs/courier-authlib-0.55 net-mail/courier-imap-4.0.1
- net-mail/courierpassd
sys-apps/xinetd-2.3.13 net-mail/courierpassd-1.1.0
- net-mail/qmailadmin
dev-util/yacc-1.9.1-r2 net-www/apache-2.0.54-r15 net-mail/autorespond-2.0.4 net-mail/qmailadmin-1.2.1
- mail-filter/spamassassin
dev-perl/PodParser-1.28 perl-core/MIME-Base64-3.05 dev-perl/HTML-Tagset-3.03-r2 dev-perl/HTML-Parser-3.45 perl-core/Storable-2.13 dev-perl/Net-SSLeay-1.25 dev-perl/IO-Socket-SSL-0.96 perl-core/digest-base-1.10 perl-core/Digest-MD5-2.33 dev-perl/Digest-SHA1-2.10 dev-perl/Digest-HMAC-1.01-r1 dev-perl/Net-DNS-0.49 mail-filter/spamassassin-3.0.4
- dev-perl/Mail-SPF-Query
dev-perl/Sys-Hostname-Long-1.2 dev-perl/URI-1.35 dev-perl/Net-CIDR-Lite-0.15 dev-perl/Mail-SPF-Query-1.997
- mail-filter/razor
perl-core/net-ping-2.31 perl-core/Time-HiRes-1.66 dev-perl/Digest-Nilsimsa-0.06-r1 mail-filter/razor-2.77
- mail-filter/dcc
mail-filter/procmail-3.22-r6 media-libs/jpeg-6b-r5 media-libs/libpng-1.2.8 media-libs/gd-2.0.32 dev-libs/cgilib-0.5 media-libs/libart_lgpl-2.3.17 media-libs/freetype-2.1.9-r1 net-analyzer/rrdtool-1.2.6-r1 mail-filter/dcc-1.3.16
- app-antivirus/clamav
net-dns/libidn-0.5.15 dev-libs/gmp-4.1.4 net-misc/curl-7.13.2 app-antivirus/clamav-0.86.2
- mail-filter/qmail-scanner
net-mail/qlogtools-3.1 net-mail/qmailanalog-0.70-r1 net-mail/qms-analog-0.4.4 net-mail/ripmime-1.4.0.5 app-arch/unzip-5.52 net-mail/tnef-1.3.3 mail-filter/qmail-scanner-1.25-r2
[edit] Problems found - Changes made
[edit] Qmailadmin
Needed to enable and start apache2 before qmailadmin will work
rc-update add apache2 default /etc/init.d/apache2 start
[edit] vQadmin
/etc/apache2/vhosts.d/00_default_vhost.conf doesn't exist in the default apache ebuild. Found /etc/apache2/conf/vhosts/vhosts.conf instead. Made recommended additions there then told /etc/apache2/conf/apache2.conf to include conf/vhosts/vhosts.conf
Also ran into a problem during auth testing - missed settings in .htaccess file. Double-check .htaccess since it is different than default.
[edit] Razor
/etc/mail/spamassassin/.razor/razor-agent.conf exists and /etc/razor/razor-agent.conf does not yet. Please reverse cp command
[edit] SpamAssassin
Problem creating db using sa-learn --sync - debug indicated DB_File wasn't installed. this may actually have been one one of my USE flags; maybe -berkdb or -foomaticdb. Resolved by installing DB_File and dependancy:
sys-libs/db-4.2.52_p2 perl-core/DB_File-1.811-r1
I also found (and added the info on the main page) the need to disable "score DCC_CHECK 0" and "score PYZOR_CHECK 0" in /etc/mail/spamassassin/local.cf before testing for debug output
[edit] ClamAV
qscand user and group are referenced before they are created. Can be fixed by running:
useradd -s /sbin/nologin -d /bin/false qscand groupadd qscand
This is fixed in the how-to, the chown part that needed it, is after installtion of qmail-scanner. At this time the user and group exist.
--s0undt3ch 06:02, 16 September 2005 (GMT)
chown -R qscand:qscand /var/lib/clamav chown -R qscand:qscand /var/run/clamav chown -R qscand:qscand /var/log/clamav
This is just before Qmail-Scanner is installed.
--rhodyne 01:40, 16 September 2005 (CST)
Also missed needed change of DatabaseOwner clamav to DatabaseOwner qscand in /etc/freshclam.conf. This is referenced on the page "Fixing clamav to work with qmail-scanner"
The DatabaseOwner was badly referenced on the how-to as user. Fixed. --s0undt3ch 01:37, 18 September 2005 (GMT)
[edit] Installation halt on missing qmail-scanner file
The qmail-scanner file was repackaged by the author just a few hours ago. I re-downloaded and extracted it -- that's when I noticed how I blew it up.
| Code: Error |
x - extracting qmail-scanner/files/qmail-scanner-1.25-st-qms-20050618.patch (binary) qmail-scanner-1.25-r2.shar: line 587: uudecode: command not found restore of qmail-scanner/files/qmail-scanner-1.25-st-qms-20050618.patch failed qmail-scanner/files/qmail-scanner-1.25-st-qms-20050618.patch: MD5 check failed |
And the winner is...app-arch/sharutils-4.2.1-r11 isn't installed. So I emerged it (there are no dependancies) and there are now no extraction issues. emerge qmail-scanner -vf now has no failures.
It's odd that this is the first problem with this, all the previous .shar files worked fine.
I have to stop here for now.
--rhodyne 02:20, 16 September 2005 (CST)
With Pedro's invaluable help I'm sure we will get this "Fresh Install" doc finished soon.
[edit] Moving the page
This is HOWTO. Shouldn't the name of the article begin with HOWTO?
Like:
HOWTO Qmail Rocks On Gentoo
Or even better:
HOWTO Qmail On Gentoo
The latter is better because the name makes more sense.
Please comment upon this idea!
AnMaster 22:07, 2 December 2005 (GMT)
I opose to the page being moved to the latter sugestion, why, because QmailRocks is a "type" of qmail instalation, not a plain qmail install on gentoo. If you see QmailRocks Site, you'll notice that the HowTo there is available for several distros, but lacks a Gentoo one, that's why I created this one, with of course help from existing "HOWTO Qmail On Gentoo" HowTo's, and the guidelines provided by the QmailRocks HowTo.
So, I favour the first choice, but leave the subject open for further discussion.
--s0undt3ch 01:23, 3 December 2005 (GMT)
- Then maybe HOWTO QmailRocks On Gentoo is even better? AnMaster 13:03, 3 December 2005 (GMT)
[edit] About "Move font size="4" to CSS. "size: 4" doesn't work." comment
It works in Firefox. --s0undt3ch 01:28, 3 December 2005 (GMT)
- I uses Firefox too (1.5). It doesn't work. It gets smaller than the normal text. AnMaster 13:01, 3 December 2005 (GMT)
Not Firefox 1.5, probably 1.0.5, update it to latest stable, 1.0.7.
- Yes: Firefox 1.5RC3. It's a prerelease. AnMaster 14:23, 3 December 2005 (GMT)
[edit] examples
Some examples would be nice. Especially I would like to see an example of /var/qmail/control/locals as I really don't understand what you mean by <TheMachine... and domain.com (I'm pretty sure that I'm supposed to write my machine's name instead of "TheMachine" but should I keep "<" and ">" and should I use "domain.com" or "mydomain.dk", and if so, why is there no "<>" around it... well, and example would be nice :-)
Thanks for an otherwise great tutorial.
Peter poulsen 17:27, 8 June 2006 (UTC)
<TheMachine'sHostName> should be translated to the value of running `hostname`. And drop the <>. --s0undt3ch 18:26, 8 June 2006 (UTC)
[edit] Split
The page is too long. It is hard to navigate. I suggest a split and an index page --AnMaster 06:49, 22 October 2007 (UTC)
[edit] gensync depreicated
Trying to update my qmail install,
Several items in this how-to use gensync for install.
Gensync has been deprecated in favor of layman.
Depriated gensync Portage Overlay Listing
How can I update these sections of the how-to to use layman instead of gensycn?
- forumsID: johnny99
