Archive

Posts Tagged ‘centos’

Installing PostGres, PostGIS, pgRouting in Linux

April 3rd, 2007 rupert 5 comments

A. Installing PostGres

A.1. Download and install the source: postgresql-8.2.3.tar.gz

[root@rupert-linux routing]tar -xvzf postgresql-8.1.2.tar.gz
[root@rupert-linux routing]LDFLAGS=-lstdc++
[root@rupert-linux routing]./configure --prefix=/usr/local/pgsql --with-perl --with-python --with-krb5 --with-openssl
[root@rupert-linux routing]make
[root@rupert-linux routing]make install
 
A.2. Post Compile Operations:
 
[root@rupert-linux routing]/usr/sbin/adduser postgres
 
[root@rupert-linux routing]mkdir /usr/local/pgsql/data
 
[root@rupert-linux routing]chown postgres /usr/local/pgsql/data/
 
[root@rupert-linux routing]su - postgres
 
[root@rupert-linux routing]/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data/

Note: If youre default locale is not EN, say chinese, then you would get:

The files belonging to this database system will be owned by user “postgres”.
This user must also own the server process.

The database cluster will be initialized with locale zh_CN.GB18030.
initdb: could not find suitable encoding for locale “zh_CN.GB18030″

A.3. Edit environment variables. Add the ff to your .bash_profile

[root@rupert-linux routing] vi /root/.bash_profile
PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$JAVA_HOME/bin:/usr/local/pgsql/bin
export PGLIB=/usr/local/pgsql/lib
export PGDATA=/usr/local/pgsql/data
export PGPORT=5432
export PGOPTS="-i"

A.4. Start PostGres Automatically on Startup. Postgres Startup Script

[root@rupert-linux routing]touch /etc/init.d/postgresql
[root@rupert-linux routing] vi /etc/init.d/postgresql

PostGres Startup Script

#!/bin/sh
# postgresql    This is the init script for starting up the PostgreSQL
#               server
 
# chkconfig: - 85 15
# description: Starts and stops the PostgreSQL backend daemon that handles all database requests.
# processname: postmaster
# pidfile: /usr/local/pgsql/data/postmaster.pid
#
 
# Source function library.
. /etc/rc.d/init.d/functions
 
# Get config.
. /etc/sysconfig/network
 
# Check that networking is up.
# Pretty much need it for postmaster.
[ ${NETWORKING} = "no" ] && exit 0
 
[ -f /usr/local/pgsql/bin/postmaster ] || exit 0
 
# See how we were called.
case "$1" in
start)
pid=`pidof postmaster`
if [ $pid ]
then
echo "Postmaster already running."
else
echo -n "Starting postgresql service: "
su -l postgres -c '/usr/local/pgsql/bin/pg_ctl -o -i -D /usr/local/pgsql/data/ -l /usr/local/pgsql/data/logfile start'
sleep 1
echo
exit
fi
;;
 
stop)
echo -n "Stopping postgresql service: "
killproc postmaster
sleep 2
rm -f /usr/local/pgsql/data/postmaster.pid
echo
;;
 
restart)
$0 stop
$0 start
;;
 
*)
echo "Usage: postgresql {start|stop|restart}"
exit 1
esac
 
exit 0

A.5. PostGres Testing

[root@rupert-linux routing]# su - postgres
[postgres@rupert-linux ~]$ /usr/local/pgsql/bin/createdb test
[postgres@rupert-linux ~]$ /usr/local/pgsql/bin/psql test

B. Installing PostGIS.

B.1. Download Geos

[root@rupert-linux /]# bzip2 -d geos-3.0.0rc4.tar.bz2
[root@rupert-linux /]# tar -xvf geos-3.0.0rc4.tar
[root@rupert-linux /]# ./configure
[root@rupert-linux /]# make
[root@rupert-linux /]# make install

B.2. Download PostGIS.

[root@rupert-linux /]# cp postgis-1.2.1.tar.gz /home/installers/postgresql-8.2.3/contrib/
[root@rupert-linux /]# tar -zxvf postgis-1.2.1.tar.gz
[root@rupert-linux /]# cd /home/installers/postgresql-8.2.3/contrib/postgis-1.2.1/
[root@rupert-linux /]# ./configure --with-pgsql=/usr/local/pgsql/bin/pg_config
[root@rupert-linux /]# make
[root@rupert-linux /]# make install

B.3 Reload ldconfig

[root@rupert-linux /]# vi /etc/ld.so.conf
/usr/local/include
/usr/local/lib
[root@rupert-linux /]# ldconfig

B.4. Testing PostGIS

$ su - postgres
$ createlang plpgsql test
$ /usr/local/pgsql/bin/psql -d test -f /usr/local/pgsql/share/lwpostgis.sql
BEGIN
psql:/usr/local/pgsql/share/postgresql/contrib/lwpostgis.sql:39 NOTICE:  type "histogram2d" is not yet defined
DETAIL:  Creating a shell type definition.
.
.
.
COMMIT
$ /usr/local/pgsql/bin/psql -d test -f /usr/local/pgsql/share/spatial_ref_sys.sql
BEGIN
INSERT 0 1
INSERT 0 1
.
.
.
VACUUM

C. Installing pgRouting.

C.1 Install Boost Library if you don’t have it. Download boost

[root@rupert-linux /]# tar -jxvf boost_1_33_1.tar.bz2
[root@rupert-linux /]# ./configure
[root@rupert-linux /]# make
[root@rupert-linux /]# make install
[root@rupert-linux /]# cd /usr/local/include/boost1.3.3
[root@rupert-linux /]# cp -Rf boost /usr/local/include/

C.2 Download and install CGAL.

[root@rupert-linux installers]# tar zxvf CGAL-3.2.1.tar.gz
[root@rupert-linux installers]# cd CGAL-3.2.1
[root@rupert-linux CGAL-3.2.1]# ./install_cgal --prefix=/usr/local/cgal --with-boost=n --without-autofind -ni /usr/bin/g++
Copy libCGAL.so to the pgsql/lib directory...
[root@rupert-linux CGAL-3.2.1]#  cp -Rf /usr/local/cgal/lib/i686_Linux-2.6_g++-3.4.3/libCGAL.so /usr/local/pgsql/lib/

C.3 Download and install GAUL.

[root@rupert-linux installers]# tar zxvf gaul-devel-0.1849.tar.gz
[root@rupert-linux gaul-devel-0.1849-0]# ./configure -prefix=/usr/local/gaul
[root@rupert-linux gaul-devel-0.1849-0]# make
[root@rupert-linux gaul-devel-0.1849-0]# make install
[root@rupert-linux gaul-devel-0.1849-0]# cd /usr/local/gaul (Note: Copy gaul includes and libraries to standard directories...)
[root@rupert-linux gaul]# cp -Rf include/* /usr/include/
[root@rupert-linux gaul]# cp -Rf lib/* /usr/local/lib/

C.4 Download and install pgRouting.

[root@rupert-linux installers]# tar -jxvf pgRouting-0.9.9.tgz
[root@rupert-linux routing]# vi configure
##########################################
Edit line 3036...
CGAL_MKF='find /usr/local/cgal/include/CGAL.....'
##########################################
[root@rupert-linux routing]# ./configure --with-cgal=/usr/local/cgal --with-gaul=/usr/local/gaul --with boost=/usr/local --pg-sql=/usr/local/pgsql
[root@rupert-linux routing]# make
[root@rupert-linux routing]# make install

Unattended Linux Installation using KickStart

March 6th, 2007 rupert No comments

I have found this very handy in installing the same Linux OS on similar machines.

1. Download the isos from CentOS. I’m using CentOS4.4

2. Make available via http the CentOS installers. The directory should be as follows:


wwwroot/
/CentOS
/headers
/images
/isolinux
/NOTES
/repodata
.discinfo
centosdocs-man.css
GPS
RELEASE-NOTES-en
RELEASE-NOTES-en.html
RPM-GPG-KEY
RPM-GPG-KEY-centos4
yumgroups.xml

3. Create your kickstart files as follow:

#Generated by Kickstart Configurator
#platform=x86, AMD64, or Intel EM64T
 
#System  language
lang en_US.UTF-8
#Language modules to install
langsupport --default=en_US.UTF-8 en_US.UTF-8
#System keyboard
keyboard us
#System mouse
mouse
#Sytem timezone
timezone Asia/Manila
#Root password
rootpw --iscrypted $1$U0Buucop$JgH/lyirJj2Pb36OGvA521
#Reboot after installation
reboot
#Install OS instead of upgrade
install
#Use Web installation
url --url http://192.168.224.1/centos/
#System bootloader configuration
bootloader --location=mbr 
 
xconfig --card "VMWare" --videoram 16384 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16
#network --device eth0 --bootproto dhcp --hostname centos
#network --bootproto=static --ip=192.168.224.10 --netmask=255.255.255.0 --gateway=192.168.1.1 --hostname centos
network --bootproto=static --ip=192.168.224.10 --netmask=255.255.255.0 --hostname centos 
 
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext3 --size 100 --asprimary
part swap --recommended
part / --fstype ext3 --size 2048 --grow
#System authorization infomation
auth  --useshadow  --enablemd5
#Firewall configuration
firewall --enabled --port=22:tcp --port=80:tcp --port=3306:tcp
selinux --disabled
#Do not configure XWindows
skipx
#Package install information
%packages
grub
kernel-smp
e2fsprogs
 
%post
rpm -i http://192.168.224.1/centos/CentOS/RPMS/glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/glibc-headers-2.3.4-2.25.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/glibc-devel-2.3.4-2.25.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/cpp-3.4.6-3.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/vim-common-6.3.046-0.40E.7.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/vim-enhanced-6.3.046-0.40E.7.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/gcc-3.4.6-3.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/compat-libstdc++-33-3.2.3-47.3.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/autoconf-2.59-5.noarch.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/automake14-1.4p6-12.noarch.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/automake15-1.5-13.noarch.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/automake16-1.6.3-5.noarch.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/automake17-1.7.9-5.noarch.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/automake-1.9.2-3.noarch.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/bzip2-devel-1.0.2-13.EL4.3.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/libidn-0.5.6-1.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/curl-7.12.1-8.rhel4.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/pkgconfig-0.15.0-3.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/libidn-devel-0.5.6-1.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/e2fsprogs-devel-1.35-12.4.EL4.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/krb5-devel-1.3.4-33.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/zlib-devel-1.2.1.2-1.2.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/openssl-devel-0.9.7a-43.10.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/flex-2.5.4a-33.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/libstdc++-devel-3.4.6-3.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/libxml2-devel-2.6.16-6.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/libxslt-devel-1.1.11-1.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/nmap-3.70-1.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/umb-scheme-3.2-36.EL4.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/guile-1.6.4-14.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/swig-1.3.21-6.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/apr-0.9.4-24.5.c4.2.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/apr-util-0.9.4-21.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/neon-0.24.7-4.i386.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/perl-URI-1.30-4.noarch.rpm
rpm -i http://192.168.224.1/centos/CentOS/RPMS/subversion-1.1.4-2.ent.i386.rpm
 
/sbin/chkconfig cups-config-daemon off
/sbin/chkconfig cups off
/sbin/chkconfig gpm off
/sbin/chkconfig isdn off
/sbin/chkconfig kudzu off
/sbin/chkconfig mysql off
/sbin/chkconfig netfs off
/sbin/chkconfig nfslock off
/sbin/chkconfig pcmcia off
/sbin/chkconfig portmap off
/sbin/chkconfig rawdevices off
/sbin/chkconfig rpcgssd off
/sbin/chkconfig rpcidmapd off
/sbin/chkconfig rpcsvcgssd off
/sbin/chkconfig sendmail off
/sbin/chkconfig smartd off
/sbin/chkconfig xfs off
/sbin/chkconfig xinetd off

4. Insert the CentOS4.4 CD1 and boot the machine. On prompt type:

linux ks=http://path-to/centos/ks.cfg

Categories: linux Tags: , ,

Installing a qmail server

February 1st, 2007 rupert No comments

Its been almost two years now since I installed a mail server. Nevertheless, qmail still rocks as qmailtoaster becomes more convenient to install. I also tried the install on a fresh CentOS4.4 machines, and it works like a charm.

--------------------------------------------------------------------
EZ QmailToaster Fresh Install on CentOS 4.3
Nick Hemmesch <nick @ndhsoft.com> June 08, 2006
--------------------------------------------------------------------
 
CentOS 4.3: This test install was performed on an
P4 3Ghz with 2GB ram on an Intel m/b. 
 
--------------------------------------------------------------------
This tutorial is for CentOS 4.3 (cnt40) i386 
 
To install CentOS 4.3 x86_64, replace cnt40 with cnt4064
 
To install Fedora Core 4 &amp; 5, change download path from centos to
fedora &amp; cnt40 to fdr40, fdr4064, fdr50 or fdr5064 per your distro
--------------------------------------------------------------------
 
Notes:
 
You must have either a local dns server or a local caching name
server. If you need a caching namserver, we will add one in Step 8.
 
Be sure to replace "your-domain.com" with your real domain name,
and "your.fqdn.com" with your server's "Fully Qualified Domain Name".
 
--------------------------------------------------------------------
1. Download CentOS 4.3 CD iso's or the DVD iso.
--------------------------------------------------------------------
 
  Burn iso's to CD, or DVD if you downloded a DVD iso
 
  Boot with your CD 1 or the DVD
 
--------------------------------------------------------------------
2. CentOS Installation (This is the configuration of my test box):
--------------------------------------------------------------------
 
  Splash Page: <enter> to install in graphical mode  
 
  CD Found window: Choose "Skip" to bypass media test  
 
  Welcome to CentOS: Click "Next"
 
  Language Selection: Select your language &amp; Click "Next"
 
  Keyboard Configuration: Select language type &amp; Click "Next"
 
  Installation Type: Select "Server" &amp; Click "Next"
 
  Disk Partitioning Setup: Select "Automatically Partition &amp; Click "Next"
 
      Warning: Click "Yes"
 
  Automatic Partitioning: Select "Remove all partitions" &amp; Click "Next"
 
      Warning: Click "Yes"
 
  Disk Setup: Click "Next"
 
  Boot Loader Configuration: Click "Next"
 
  Network Configuration: Click "Edit"
 
      Edit Interface eth0: Deselect "Configure using DHCP"
 
      Select "Activate on boot"
 
      Enter your "IP Address" &amp; "Netmask"
 
      Click "OK
 
      Set the hostname:
 
          Deselect "automatically via DHCP"
 
          Select "manually" &amp; enter your "fully qualified domain name"
 
      Miscellaneous Settings:
 
          Gateway: enter IP address of your gateway
 
          Primary DNS: enter IP address of primary dns server
 
          Secondary DNS: enter IP address of secondary dns server
 
      Click "Next"
 
  Firewall Configuration:
 
      Select "No firewall"
 
      Select "Disabled" mode for SELinux
 
      Click "Next"
 
          Warning - No Firewall: Click "Proceed"
 
  Additional Language Support" Click "Next"
 
  Time Zone Selection: Select your time zone &amp; Click "Next"
 
  Set Root Password: Enter your root password twice &amp; Click "Next"
 
--------------------------------------------------------------------
3. Package Group Selection - Select ONLY the following groups:
--------------------------------------------------------------------
 
  Server Configuration Tools: Select
 
  Web Server: Select
 
      Click "Details" and add php-mysql plus the defaults
 
  DNS Name Server: Select
 
  FTP Server: Select
 
  MySQL Database: Select
 
      Click "Details" and add mysql-bench, mysql-server plus the defaults
 
  Development Tools: Select
 
      Click "Details" and add expect to the defaults
 
  Administration Tools: Select
 
  System Tools: Select
 
      Click "Details" and add mrtg to the defaults
 
  Click "Next"
 
  About to Install: Click "Next"
 
      Required Install Media: verify and click "Continue"
 
  Installing Packages: Click "Next" &amp; watch the install
 
  After installation: remove your media &amp; Click "Reboot"
 
--------------------------------------------------------------------
4. After reboot, login as root:
--------------------------------------------------------------------
 
  mkdir -p /usr/src/qtms-install
 
  cd /usr/src/qtms-install
 
  This example is CentOS 4.3 i386 so the qmailtoaster switch is cnt40 
 
--------------------------------------------------------------------
5. Prepare to Install QmailToaster:
--------------------------------------------------------------------
 
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-deps.sh
 
      sh cnt40-deps.sh
 
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-perl.sh
 
      sh cnt40-perl.sh
 
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-svcs.sh
 
  wget http://www.qmailtoaster.com/centos/cnt40/firewall.sh
 
      nano -w cnt40-svcs.sh
 
      edit MYSQLPW=your-mysql-password
 
      ctl-o and enter to save
 
      ctl-x to exit
 
      nano -w firewall.sh
 
      edit MYIP="your-IP-address"
 
      ctl-o and enter to save
 
      ctl-x to exit
 
      sh cnt40-svcs.sh
 
  === NOTE ===
 
  This script turns on or off all necessary services. Then the script sets
  up your mysql root account, creates and grants privileges for your vpopmail
  mysql account, makes a symlink so your krb5 is read properly, edits your
  php.ini, sets inittab to start at runlevel 3, and sets up your firewall.
 
  Note: You might see some service errors while the script runs,
  don't worry about them.
 
  ============
 
  Update all your packages:
 
      yum -y update
 
  REBOOT
 
--------------------------------------------------------------------
6. Get QmailToaster Packages:
--------------------------------------------------------------------
 
  cd /usr/src/qtms-install
 
  wget http://www.qmailtoaster.com/info/current-download-script.sh
 
      sh current-download-script.sh
 
  This script downloads all necessary packages into you current
  directory (should be /usr/src/qtms-install/).
 
--------------------------------------------------------------------
7. Install QmailToaster Packages:
--------------------------------------------------------------------
 
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-install-script.sh
 
      sh cnt40-install-script.sh
 
  Check your services:
 
      setup: Select Services
 
          See that the following services are selected: acpid anacron
 
          atd autofs cpuspeed crond djbdns freshclam haldaemon httpd
 
          iptables kudzu messagebus mysqld network ntpd qmail rawdevices
 
          smartd sshd syslog xinet
 
          Also: irqbalance (w/dual processors) xfs (w/xwindows)
 
--------------------------------------------------------------------
8. Add djbdns (if you don't want bind)
--------------------------------------------------------------------
 
  rpm -e --nodeps bind bind-chroot caching-nameserver
 
  rpmbuild --rebuild --with cnt40 djbdns*.src.rpm
 
  rpm -Uvh ../redhat/RPMS/i386/djbdns-localcache*.rpm
 
  echo "search your-domain.com" &gt; /etc/resolv.conf
  echo "nameserver 127.0.0.1" &gt;&gt; /etc/resolv.conf
 
  REBOOT
 
--------------------------------------------------------------------
9. Setup QmailToaster:
--------------------------------------------------------------------
 
  qmailctl stat
 
  (Should look somewhat like this)
 
      [root@gateway ~]# qmailctl stat
      authlib: up (pid 2425) 65 seconds
      clamd: up (pid 2425) 65 seconds
      imap4: up (pid 2421) 65 seconds
      imap4-ssl: up (pid 2423) 65 seconds
      pop3: up (pid 2414) 65 seconds
      pop3-ssl: up (pid 2409) 65 seconds
      send: up (pid 2416) 65 seconds
      smtp: up (pid 2418) 65 seconds
      spamd: up (pid 2407) 65 seconds
      authlib/log: up (pid 2417) 65 seconds
      clamd/log: up (pid 2417) 65 seconds
      imap4/log: up (pid 2422) 65 seconds
      imap4-ssl/log: up (pid 2424) 65 seconds
      pop3/log: up (pid 2415) 65 seconds
      pop3-ssl/log: up (pid 2413) 65 seconds
      send/log: up (pid 2420) 65 seconds
      smtp/log: up (pid 2419) 65 seconds
      spamd/log: up (pid 2408) 65 seconds
      [root@gateway ~]#
 
  Add a domain:
 
      /home/vpopmail/bin/vadddomain your-domain.com
<postmaster -password>
 
  Add a user:
 
      /home/vpopmail/bin/vadduser you@your-domain.com <your -password>
 
  Edit /etc/php.ini and set register_globals = On
 
      service httpd restart  
 
  Bring up your browser and go to:
 
      http://www.your-domain.com/admin-toaster/
 
        Username: admin
        Password: toaster
 
      Change your password . . . 
 
  Edit /etc/php.ini and set register_globals = Off
 
      service httpd restart  
 
  Check your mail server:
 
      http://www.your-domain.com/webmail
 
      login with your full email address and your password
 
      Send yourself an email - should show right away
 
      Send an email to yourself if you have another address
 
      Go to your other email account and reply to the message you sent
 
  If Isoqlog doesn't show right away, do this:
 
      sh /usr/share/toaster/isoqlog/bin/cron.sh
 
--------------------------------------------------------------------
10. Add domainkeys:
--------------------------------------------------------------------
 
  Make dir for yourdomain.com: 
 
      mkdir /var/qmail/control/domainkeys/your-domain.com 
 
  Make domainkey (Remove the "\"): 
 
      dknewkey /var/qmail/control/domainkeys/your-domain.com/private &gt; \
                                                         your-domain-dk.txt 
 
      chown root:qmail /var/qmail/control/domainkeys/your-domain.com/private
      chmod 444 /var/qmail/control/domainkeys/your-domain.com/private
 
  Make dns entry: 
 
      BIND - in the your-domain.com zone file (see yourdomain-dk.txt):
 
         private._domainkey IN TXT "k=rsa; p=MEwwDQY . . . to end of key"
            (NOTE QUOTATION MARKS MUST BE THERE) 
 
      DJBDNS - in /var/djbdns/tinydns/root/data (make from your-domain-dk.txt): 
 
        '_domainkey.your-domain.com:o=-; r=postmaster@your-domain.com
        'private._domainkey.your-domain.com:k=rsa; p=MEwwDQY . . . to end of key 
 
  Test your mailserver:
 
      http://domainkeys.sourceforge.net/policycheck.html
      http://domainkeys.sourceforge.net/selectorcheck.html
 
      In squirrelmail, send a test email, select View Full Header and you
      should find something like the following:
 
      ----------- snip ------------
      DomainKey-Status: good
      Received: by simscan 1.2.0 ppid: 22641, pid: 22644, t: 0.8416s
           scanners: clamav: 0.88.2/m:38/d:1476 spam: 3.1.1
      X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on ndh1.whatgives.org
      X-Spam-Level: *
      X-Spam-Status: No, score=1.6 required=5.0 tests=FROM_DOMAIN_NOVOWEL
           autolearn=no version=3.1.1
      Received: from unknown (HELO ns1.ndhsdns.com) (216.221.100.227)
           by ndh1.whatgives.org with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 May 2006 20:03:36 -0000
      Received-SPF: pass (ndh1.whatgives.org: SPF record at ndhsdns.com designates 216.221.100.227 as permitted sender)
      Received: (qmail 28034 invoked by uid 89); 22 May 2006 20:03:36 -0000
      Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
      DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
           s=private; d=ndhsdns.com;
           b=XVKQZe446BXMnSoQKvgchf0DRx4v8YQYZn5KVLj5O8XYf7V1dX7ETaJ1VGWGp5Bf ;
      Received: from unknown (HELO www.ndhsdns.com) (127.0.0.1)
           by ns1.ndhsdns.com with SMTP; 22 May 2006 20:03:36 -0000
      ----------- snip ------------
 
--------------------------------------------------------------------
11. Logs for all packages except freshclam are at:
--------------------------------------------------------------------
 
  /var/log/qmail/*
 
  Freshclam is at /var/log/clamav
</your></postmaster></enter></nick>

Notes:
The only problem I stumbbled upon is when using vadddomain, as the mysql password was still set to “SsEeCcRrEeTt”. Edit these files before adding a domain. I dont use the web interface when adding a domain, i prefer it by command line.

[root@mail vpopmail]# find . | grep mysql
./etc/vpopmail.mysql.dist
./etc/vpopmail.mysql

After all the installs is completed, reboot and check if qmail is running.

Administrator links:
http://your-mail-server-ip/admin-toaster/ -> this is the main administration interface
http://your-mail-server-ip/qmailadmin/ -> administrative interface to manage accounts
http://your-mail-server-ip/webmail/ -> an email account interface

Categories: linux Tags: , ,