User login

Current jobs

No job postings to display

Site Counter

  • Site Counter: 52820
  • Unique Visitor: 7528
  • Registered Users: 17
  • Unregistered Users: 0
  • Your IP: 38.107.191.109
  • Since: 2008-09-18

 

Qmail+VPopMail+MySQL+Courier-IMAP on FreeBSD

I'm writing this article from my experience recently in messing up unintentionally our customer's mail server and trying to recover it back to work.

the following is what we're going to use:

 1.Unpack the distribution

At this time you probably want to become root, if you're not already.

su
umask 022
mkdir -p /usr/local/src
mv netqmail-1.06.tar.gz ucspi-tcp-0.88.tar.gz /usr/local/src
mkdir -p /package
mv daemontools-0.76.tar.gz /package
chmod 1755 /package

Now you can unpack the packages.

cd /usr/local/src
gunzip netqmail-1.06.tar.gz
tar xpf netqmail-1.06.tar
gunzip ucspi-tcp-0.88.tar.gz
tar xpf ucspi-tcp-0.88.tar
rm *.tar
cd /package
gunzip daemontools-0.76.tar.gz
tar xpf daemontools-0.76.tar
rm *.tar

2. Create Directories

By default: qmail is located at /var/qmail

mkdir /var/qmail

to be continue.....

 3. Create Users and Groups

pw groupadd nofiles
pw useradd qmaild -g nofiles -d /var/qmail -s /nonexistent
pw useradd alias -g nofiles -d /var/qmail/alias -s /nonexistent
pw useradd qmaill -g nofiles -d /var/qmail -s /nonexistent
pw useradd qmailp -g nofiles -d /var/qmail -s /nonexistent
pw groupadd qmail
pw useradd qmailq -g qmail -d /var/qmail -s /nonexistent
pw useradd qmailr -g qmail -d /var/qmail -s /nonexistent
pw useradd qmails -g qmail -d /var/qmail -s /nonexistent

4. Build QMail

cd /usr/local/src/netqmail-1.06
make setup check

After the build is complete, you'll need to do your post installation configuration. A couple of scripts are provided to make this job a lot easier. If your DNS is configured properly, this script should be all you need at this point:

./config

If, for some reason, config can't find your hostname in DNS, you'll have to run the config-fast script:

./config-fast the.full.hostname

5.instInstall ucspi-tcp

cd /usr/local/src/ucspi-tcp-0.88
cd src
patch < /usr/local/src/netqmail-1.06/other-patches/daemontools-0.76.errno.patch
cd ..
package/install

dddddd

Your rating: None Average: 5 (1 vote)