PDA

View Full Version : Anyone run qmailrocks on Ubuntu?


UbuntuGuy
09-27-2005, 03:01 PM
Currently running Ubuntu 5.10 Breezy Badger (can back down to Hedgehog if that would help) and would like to load up qmail using qmailrocks. Have another server running Fedora with qmailrocks install and love it.

If no one has - I can work at getting it installed with the Debian instructions and email changes to qmailrocks for posting if others may want it. Would like the lazy way though if someone else has already done it. :-P

nadia
10-15-2005, 07:36 AM
I'm in the same boat you are. Haven't been too successful though! I keep getting stuck on:
./config-fast.sh mail.mydomain.com

I keep getting this error:

Putting mail.possiefamily.com into control/me...
./config-fast.sh: line 5: QMAIL/control/me: No such file or directory
chmod: cannot access `QMAIL/control/me': No such file or directory
Putting mydomain.com into control/defaultdomain...
./config-fast.sh: line 11: QMAIL/control/defaultdomain: No such file or directory
chmod: cannot access `QMAIL/control/defaultdomain': No such file or directory
Putting mydomain.com into control/plusdomain...
./config-fast.sh: line 18: QMAIL/control/plusdomain: No such file or directory
chmod: cannot access `QMAIL/control/plusdomain': No such file or directory
Putting mail.mydomain.com into control/locals...
./config-fast.sh: line 23: QMAIL/control/locals: No such file or directory
chmod: cannot access `QMAIL/control/locals': No such file or directory
Putting mail.mydomain.com into control/rcpthosts...
./config-fast.sh: line 27: QMAIL/control/rcpthosts: No such file or directory
chmod: cannot access `QMAIL/control/rcpthosts': No such file or directory
Now qmail will refuse to accept SMTP messages except to mail.mydomain.com.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!

I followed the instructions, but I don't know if the new version is contributing to the error I'm experiencing or just something that I did? I tried going back to see where the script installed files into the QMAIL/control directory, but I can't find it. Any suggestions would be welcomed. Thanks!

Pebcak
10-15-2005, 05:02 PM
How about just installing a distro theres a guide for instead of trying what your doing? Debian stable is an excellent distro for this.

paius
11-18-2005, 01:47 PM
ubuntu/breezy install

Follow the Qmailrocks instructions for Debian with the following exceptions:

Since Ubuntu does not encourage running as root, use "sudo -s -H" to run a series of commands as the Root User

PRE-INSTALLATION CHECK LIST

cut/paste and execute the following:
1st
sudo -s -H
2nd
apt-get install build-essential exim4-base\
libssl-dev patch patchutils openssl\
libgdbm-dev libgmp3-dev zlib1g-dev\
apache libapache-mod-php4 perl-suid unzip\
libdigest-sha1-perl libdigest-hmac-perl\
libnet-dns-perl libtime-hires-perl\
libhtml-parser-perl libparse-syslog-perl\
libstorable-perl
3rd
dpkg --purge --force-depends postfix
yes I know you will be asked to do this later, but I did it right from the start

4th
cpan Statistics::Distributions
if you haven't run cpan before, it will have to configure itself. You can accept all the defaults if you're unsure.

THE INSTALLATION

n.b. WHEREVER YOU SEE A NOTE ABOUT PATCHING RH9/RHEL/ETAL..
APPLY THE PATCH (i.e. Part 2 and Part 16)

Part 8 QmailAdmin

QmailAdmin creates a directory for images in the htmldir. The Apache package for Ubuntu defaults to /usr/share/images for the image directory also /usr/lib/cgi-bin for the cgi-bin, so:
./configure --enable-cgibindir=/usr/lib/cgi-bin --enable-htmldir=/usr/share

Part 12 Installing Courier...

Use the Redhat Instructions
The Debian package does not have "authvchkpw" as an authmodule

skip the --with-redhat on the configure lines for courier-authlib and courier-imap

To compile courier-imap use
exit
not su to become the non-root user

after your done compiling
sudo -s -H
To create a startup script for authdaemond
vi /etc/init.d/foo instead of /etc/rc.local
/etc/init.d is where Ubuntu custom boot scripts go

add the following line:
/usr/local/sbin/authdaemond start
to /etc/init.d/foo
chmod 755 /etc/init.d/foo
cp the imap and imaps startup scripts to /etc/init.d/ not /etc/rc.d/init.d/
cp /usr/local/libexec/imapd.rc /etc/init.d/imap
cp /usr/local/libexec/imapd-ssl.rc /etc/init.d/imaps

and to restart imap and imaps
/etc/rc.d/init.d/imap stop
/etc/init.d/imaps stop
/etc/init.d/imap start
/etc/init.d/imaps start
to ensure foo, imap, and imaps execute on boot:
update-rc.d foo defaults 75
update-rc.d imap defaults 75
update-rc.d imaps defaults 75

Ubuntu uses Inetd not Xinetd

Part 14 ClamAv...

save yourself a lot of headaches and error messages and go to http://clamav.net and Download the latest Stable release of clamav

ps. you have all the perl scripts checked by check_perlmods.script except Mail::SpamAssassin which you are about to install

All the rest of the installation should follow the Debian Instructions