Setting Mail Server with Qmail on Fedora 3 part2


6. Building the daemontools
# cd /package/admin/daemontools-0.76

You will need to patch daemontools with an additional errno patch:
# cd /package/admin/daemontools-0.76/src

# patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch

# cd /package/admin/daemontools-0.76

# package/install

7. Checking qmail itself installation
# ps ax
you should see the daemon "svscanboot" running. If you see "svscanboot" running, you're in good shape.

8. Installing ezmlm as mailing list add-on to Qmail

# cd /downloads/qmailrocks/

# tar zxvf ezmlm-0.53-idx-0.41.tar.gz

# cd ezmlm-0.53-idx-0.41

# make && make setup

9. Setting up autorespond for mailboxes.

# cd /downloads/qmailrocks

# tar zxvf autorespond-2.0.5.tar.gz

# cd autorespond-2.0.5

# make && make install

10. Installing vpopmail
Vpopmail allows us to do virtual domain mail hosting.
When used with mysql, all domain information (domain name, email users, passwords etc.) are all stored in a handy mysql database.
The actual mail messages are NOT stored in the database and are still kept in the same areas as a standard vpopmail build.
It also makes it easy to port your mail server to another machine if you ever have to upgrade or recover from a crash.

We already created a "vpopmail" system user and a "vchkpw" system group when all the needed users and groups were created.
So, now we will set up the vpopmail mysql connection config file under the vpopmail user's home directory.

# mkdir ~vpopmail/etc

# chown vpopmail:vchkpw ~vpopmail/etc

You can substitute your own vpopmail username and password.

# echo "localhost|0|vpopmail_username|vpopmail_password|vpopmail" > ~vpopmail/etc/vpopmail.mysql

Set the proper ownership/permissions on the new mysql connection config file

# chown vpopmail:vchkpw ~vpopmail/etc/vpopmail.mysql

# chmod 640 ~vpopmail/etc/vpopmail.mysql

Log into your mysql server as the "root" mysql user and create the vpopmail database as well as a vpopmail user with proper rights on that new database.

# mysql -u root -p

Create the new vpopmail database...

CREATE DATABASE vpopmail;

GRANT select,insert,update,delete,create,drop ON vpopmail.* TO vpopmail_username@localhost IDENTIFIED BY 'vpopmail_password';

quit

Test the new user we just created...

# mysql -u vpopmailuser -p

Enter the vpopmail user's password when prompted.

Let's configure vpopmail to actually user the mysql functionality and then install it.

# cd /downloads/qmailrocks

# tar zxvf vpopmail-5.4.13.tar.gz

# cd vpopmail-5.4.13

# ./configure --enable-logging=p --enable-auth-module=mysql --disable-passwd --enable-clear-passwd --disable-many-domains --enable-auth-logging --enable-sql-logging --enable-valias --disable-mysql-limits

# make && make install-strip

We'll create domains under vpopmail. At that time, if you wish, you can log back into mysql and confirm that the mysql entries have been created for the domain(s) you add.

Popular posts from this blog

Howto configure boot device order on ILOM

Installing Depot files on HP-UX 11.23 ia64

SAN Switch Config Command