Install Qmail Vpopmail in Fedora Core 5
I’m tried to install Qmail with Vpopmail, using QmailRocks in Linux Fedora Core 5. And Everything well done, except for Clamav (Antivirus) and SpamAssassin (note: finally i can manage to set Clamav and SpamAssasin). Here is my documentation:
# Dowmload Paket
mkdir /downloads
cd /downloads
wget http://www.qmailrocks.org/downloads/qmailrocks.tar.gz
tar zxvf qmailrocks.tar.gz# Setup Patch RedHat/Fedora
/downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script
/downloads/qmailrocks/scripts/util/qmail_big_patches.script
cd /usr/src/qmail/qmail-1.03
make man && make setup check
./config-fast mail.pemda.go.id
make cert
# Country Name (2 letter code) [GB]:ID
# State or Province Name (full name) [Berkshire]emda
# Locality Name (eg, city) [Newbury]:Jayapura
# Organization Name (eg, company) [My Company Ltd]:BPDE Provinsi pemda
# Organizational Unit Name (eg, section) []:Cyber
# Common Name (eg, your name or your server’s hostname) []:mail.pemda.go.id
# Email Address []:bpde@pemda.go.id
# chmod 640 /var/qmail/control/servercert.pem
# chown qmaild.qmail /var/qmail/control/servercert.pem
# ln -s /var/qmail/control/servercert.pem /var/qmail/control/clientcert.pem
chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem# UCSPI
cd /usr/src/qmail/ucspi-tcp-0.88/
patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patchmake && make setup check
# Daemon Tools
cd /package/admin/daemontools-0.76/src
patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
cd /package/admin/daemontools-0.76
package/install# EZmlm
cd /downloads/qmailrocks/
tar zxvf ezmlm-0.53-idx-0.41.tar.gz
cd ezmlm-0.53-idx-0.41
make && make setup# Auto Responder
cd /downloads/qmailrocks
tar zxvf autorespond-2.0.5.tar.gz
cd autorespond-2.0.5
make && make install# Vpopmail
cd /downloads/qmailrocks
tar zxvf vpopmail-5.4.13.tar.gz
cd vpopmail-5.4.13
./configure --enable-logging=y
make && make install-strip# Vqadmin
cd /downloads/qmailrocks
tar zxvf vqadmin-2.3.6.tar.gz
cd vqadmin-2.3.6
./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html
make && make install-strip
vim /etc/httpd/conf.d/vqadmin.conf
#
# deny from all
# Options ExecCGI
# AllowOverride AuthConfig
# Order deny,allow
#
cd /var/www/cgi-bin/vqadmin
vi .htaccess
# AuthType Basic
# AuthUserFile /etc/httpd/conf/vqadmin.passwd
# AuthName vQadmin
# require valid-user
# satisfy any
chown apache .htaccess
chmod 644 .htaccess
htpasswd -c /etc/httpd/conf/vqadmin.passwd admin
chmod 644 /etc/httpd/conf/vqadmin.passwd
apachectl graceful
# http://202.123.234.166/cgi-bin/vqadmin/vqadmin.cgi
# rpm -ivh libstdc++-devel-4.1.1-1.fc5.i386.rpm
# rpm -ivh gcc-c++-4.1.1-1.fc5.i386.rpm# Maildrop
cd /downloads/qmailrocks
tar zxvf maildrop-1.6.3.tar.gz
cd maildrop-1.6.3
./configure --prefix=/usr/local --exec-prefix=/usr/local --enable-maildrop-uid=root --enable-maildrop-gid=vchkpw --enable-maildirquota
make && make install-strip && make install-man# Qmailadmin
cd /downloads/qmailrocks
tar zxvf qmailadmin-1.2.9.tar.gz
cd qmailadmin-1.2.9
./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html
make && make install-strip
#http://202.123.234.166/cgi-bin/qmailadmin/# Finalisasi
/downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script
vi /var/qmail/supervise/qmail-pop3d/run
vi /var/qmail/supervise/qmail-smtpd/run
qmailctl stop
echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp
qmailctl cdb# Alias
echo bpde@pemda.go.id > /var/qmail/alias/.qmail-root
echo bpde@pemda.go.id > /var/qmail/alias/.qmail-postmaster
echo bpde@pemda.go.id > /var/qmail/alias/.qmail-mailer-daemon
ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous
chmod 644 /var/qmail/alias/.qmail*# Kick Sendmail
rpm -e –nodeps sendmail
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail# Testing setetes langsung bunting
/downloads/qmailrocks/scripts/util/qmr_inst_check
qmailctl stop
qmailctl start# Paket Tambahan
# IMAP
# rpm -ivh tcl-8.4.13-1.1.i386.rpm
# rpm -ivh expect-5.43.0-3.1.i386.rpm
# rpm -ivh gdbm-devel-1.8.0-26.2.i386.rpm
cd /downloads/qmailrocks/
tar jxvf courier-authlib-0.55.tar.bz2
cd courier-authlib-0.55
./configure –prefix=/usr/local –exec-prefix=/usr/local –with-authvchkpw –without-authldap –without-authmysql –disable-root-check –with-ssl –with-authchangepwdir=/usr/local/libexec/authlib –with-redhat
make && make check
make install-strip && make install-configurevi /etc/rc.local
cd /downloads/qmailrocks/
tar jxvf courier-imap-4.0.2.tar.bz2
chown -R bpdetj:wheel courier-imap-4.0.2
cd /downloads/qmailrocks/courier-imap-4.0.2
su bpdetj
./configure –prefix=/usr/local –exec-prefix=/usr/local –with-authvchkpw –without-authldap –without-authmysql –disable-root-check –with-ssl –with-authchangepwdir=/usr/local/libexec/authlib –with-redhat
make && make check
exit
make install-strip && make install-configure
/usr/local/sbin/mkimapdcert
vi /usr/local/etc/imapd.cnf
# change postmaser@example.com an administrative email address
vi /usr/local/etc/imapd
# Make sure that the following configuration exists: IMAPDSTART=YES
vi /usr/local/etc/imapd-ssl
# Make sure that the following configuration exists: IMAPDSSLSTART=YES
# Make sure that the following configuration exists: TLS_CERTFILE=/usr/local/share/imapd.pem
vi /usr/local/etc/authlib/authdaemonrc
# Around like 27, you should see the “authmodulelist” setting. Make sure that “authvchkpw” is the only module listed. Like so:
# authmodulelist=”authvchkpw”
cp /usr/local/libexec/imapd.rc /etc/rc.d/init.d/imap
cp /usr/local/libexec/imapd-ssl.rc /etc/rc.d/init.d/imaps
# Testing
/usr/local/sbin/authdaemond stop
/usr/local/sbin/authdaemond start
/etc/rc.d/init.d/imap stop
/etc/rc.d/init.d/imaps stop
/etc/rc.d/init.d/imap start
/etc/rc.d/init.d/imaps start
# Jangan lupa masukin ke /etc/rc.local
# Courries Passd Untuk Ganti Pasword Lewat Web
cd /downloads/qmailrocks
tar zxvf courierpassd-1.1.0-RC1.tar.gz
cd courierpassd-1.1.0-RC1
./configure
make && make install
# rpm -ivh xinetd-2.3.13-6.2.1.i386.rpm
vi /etc/xinetd.d/courierpassd
# service courierpassd
# {
# port = 106
# socket_type = stream
# protocol = tcp
# user = root
# server = /usr/local/sbin/courierpassd
# server_args = -s imap
# wait = no
# only_from = 127.0.0.1
# instances = 4
# disable = no
# }
vi /etc/services
# courierpassd 106/tcp #for /etc/xinetd.d/courierpassd# Antivirus dan SpamAssasin
# rpm -ivh perl-suidperl-5.8.8-5.i386.rpm
# rpm -ivh fedora-usermgmt-setup-0.8-2.fc5.noarch.rpm
# rpm -ivh fedora-usermgmt-shadow-utils-0.8-2.fc5.noarch.rpm fedora-usermgmt-0.8-2.fc5.noarch.rpm
# rpm -ivh clamav-data-0.88.3-1.fc5.i386.rpm
# rpm -ivh clamav-lib-0.88.3-1.fc5.i386.rpm
# rpm -ivh clamav-0.88.3-1.fc5.i386.rpm
# rpm -ivh clamav-update-0.88.3-1.fc5.i386.rpm
# rpm -ivh clamav-server-0.88.3-1.fc5.i386.rpm
cp /usr/share/clamav/template/clamd.conf /etc/
vi /etc/clamd.conf
# “Example” - should already be commented out. However, if it is not, make sure that it is commented out (#)
# “LogFile” - should be set to /var/log/clamav/clamd.log
# “LogTime” - should be uncommmented.
# “LogSyslog” - should be uncommented.
# “User” - should be set to qscand
# “ScanMail” - should be uncommented.
# PidFile /var/run/clamd/clamd.pid
# LocalSocket /var/run/clamd/clamd.sockmkdir /var/run/clamd
chown -R qscand /var/run/clamd/# Biar clamav auto update
crontab -e
# 25 1 * * * /usr/bin/freshclam –quietuseradd -s /home/spamd spamd
vi /etc/sysconfig/spamassassin
SPAMDOPTIONS=”-x -u spamd -H /home/spamd -d”# Konekkan Clamav dan SpamAssasin ke Qmail
cd /downloads/qmailrocks
tar zxvf qmail-scanner-1.25.tgz
tar zxvf qms-analog-0.4.2.tar.gz
cd qms-analog-0.4.2
make all
cp qmail-scanner-1.25-st-qms-20050219.patch /downloads/qmailrocks/qmail-scanner-1.25/
cd /downloads/qmailrocks/qmail-scanner-1.25
patch -p1 < qmail-scanner-1.25-st-qms-20050219.patch
cd /downloads/qmailrocks/qmail-scanner-1.25
vi qms-config
# Edit yang default jadi pemda.go.id
chmod 755 qms-config
./qms-config
./qms-config install
setuidgid qscand /var/qmail/bin/qmail-scanner-queue.pl -z
setuidgid qscand /var/qmail/bin/qmail-scanner-queue.pl -g
chown -R qscand:qscand /var/spool/qmailscan
vi /var/qmail/supervise/qmail-smtpd/run
# QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue" ; export QMAILQUEUE
# change softlimit to 40000000
qmailctl stop
qmailctl start
qmailctl stat
cd /downloads/qmailrocks/qmail-scanner-1.25/contrib
chmod 755 test_installation.sh
./test_installation.sh -doit
# Cek email postmaster# Mengeset "pemda.go.id" menjadi default domain sehingga tidak perlu login dengan user@domain tetapi cukup dengan memasukkan user saja
echo "pemda.go.id" > /home/vpopmail/etc/defaultdomain# Anal Log
cd /downloads/qmailrocks/
tar zxvf qmailanalog-0.70.tar.gz
cd qmailanalog-0.70
patch < /downloads/qmailrocks/patches/0.70-errno.patch
make && make setup check
cd /downloads/qmailrocks/
tar zxvf qlogtools-3.1.tar.gz
cd qlogtools-3.1
patch < /downloads/qmailrocks/patches/qlogtools_errno.patch
make
./installer
cp /downloads/qmailrocks/qms-analog-0.4.2/qmailstats /var/qmail/bin# Backup Qmail
# tar -cvzf backup.tar.gz /home/vpopmail/
# /var/qmail
# /etc/passwd
# /etc/group
# /etc/shaddow
Posted on August 12th, 2006 by Wahyu
Filed under: Daily Routines

mas..makasih tutorialnya..
ada yang lainnya gak? (set server dhcp, pop3 dan smtp)
kalau gak set server yang lainnya.
Pingin coba tapi belum ada SERVERnya
mas tutorialnya bagus tuh.. bisa buat referensi buat pemula
tutorialnya bagus banget.
tapi lebih bagus di kasih keterangan step by step ke gunaan perintah di atas soalnya saya udah jalanin persis di atas
KAGAK jalan gimana bantuin dong
bisa kasi tau ga kalo install qmail dengan rpm?
bentrok dengan sendmail nih ngatasinya gimana?
# 4
Cah gaul, kemungkinan ada library yang belum terinstall di server.
# 5
Mas Jayadi uninstall dulu sendmailnya
from where to find the following rpm files
fedora-usermgmt-setup-0.8-2.fc5.noarch.rpm (yes this is available)
fedora-usermgmt-shadow-utils-0.8-2.fc5.noarch.rpm fedora-usermgmt-0.8-2.fc5.noarch.rpm
clamav-data-0.88.3-1.fc5.i386.rpm
clamav-lib-0.88.3-1.fc5.i386.rpm
clamav-0.88.3-1.fc5.i386.rpm
clamav-update-0.88.3-1.fc5.i386.rpm
clamav-server-0.88.3-1.fc5.i386.rpm
Pl help me to find those files. I am also installed qmail with vpopmail, qmailadmin, etc foowing qmailrocks documentation, but stock at antivirus and spam control.
Thank you.
Kishor
# 7. Kishor Das,
You can search at http://rpm.pbone.net/. Pbone.Net is very usefull to me to find these RPMs.
kren.. tapi ada satu bagian yang terlupakan… hal ini sepele tapi bisa membuat newbie kebingungan.. kalo qmail itu harus mengaktifkan dns terlebih dahulu… HARUS pakek DNS. setau saya betitu… mohon ma’af kaloo kelliru…
Saya lg coba instalasi qmail di FC5, pada blok ini :
#UCSPI
cd /usr/src/qmail/ucspi-tcp-0.88/
patch
Saya sudah install postfix+postfix webadmin +mysql di FC 5 tapi saya binggung unutk install courierimap nya bisa kasih caranya
terima kasih sebelumnya
kayaknya kalau install lalu konfigurasi courier imap di postfix disetting di xinetd-nya ya, soalnya saya pake postfix udah 4 tahun lalu (2002).
Mas tutornya bermanfaat sekali, mungkin mas juga bisa buatkan tutor utk instalasi php?
bgmna caranya pakai wine di fedora 6
get ringtones for my merto pcs cell phone…
t213t…
viagra substitutes…
t783t…
6133 free nokia ringtones…
t195t…
free ringtones tracfone v60…
t895t…
virizon wireless ring tones…
t603t…
free mobile games…
t407t…
the palaces bingo and casino online…
types Timmy Feeney helmsman …
super usa casino…
shoves temperatures stopcocks Berkshires:…
gratis internet texas hold em…
interframe anaplasmosis?forgiven …