Langkah – langkah konfigurasi QMAIL adalah sebagai berikut:
1. Build Qmail
tar zxvf qmailrocks.tar.gz
Edit and Run :
/test/qmailrocks/scripts/install/qmr_install_linux-s1.script
Edit and Run :
/test/qmailrocks/scripts/util/qmail_big_patches.script
cd /usr/src/qmail/qmail-1.03
make man && make setup check
./config-fast your_fqdn_hostname (ex: ./config-fast mail.mydomain.com)
make cert
Country Name (2 letter code) [GB]:US
State or Province Name (full name) [Berkshire]:Georgia
Locality Name (eg, city) [Newbury]:Atlanta
Organization Name (eg, company) [My Company Ltd]:qmailrocks.org
Organizational Unit Name (eg, section) []:mail
Common Name (eg, your name or your server’s hostname) []:mail.qmailrocks.org
Email Address []:postmaster@thisdomain.org
2. Build ucspi-tcp
chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem
cd /usr/src/qmail/ucspi-tcp-0.88/
patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
make && make setup check
3. Build Mdaemontools
cd /package/admin/daemontools-0.76
cd /package/admin/daemontools-0.76/src
patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
cd /package/admin/daemontools-0.76
package/install
Check Svscanboot
4. Build Ezmlm
cd /downloads/qmailrocks/
tar zxvf ezmlm-0.53-idx-0.41.tar.gz
cd ezmlm-0.53-idx-0.41
make && make setup
5. Build Autoresponder
cd /downloads/qmailrocks
tar zxvf autorespond-2.0.5.tar.gz
cd autorespond-2.0.5
make && make install
6. Build Vpopmail
cd /downloads/qmailrocks
tar zxvf vpopmail-5.4.13.tar.gz
cd vpopmail-5.4.13
./configure --enable-logging=p
make && make install-strip
7. Build Vqadmin
cd /downloads/qmailrocks
tar zxvf vqadmin-2.3.6.tar.gz
cd vqadmin-2.3.6
./configure --enable-cgibindir=/path/to/your/cgi-bin --enable-htmldir=/path/to/your/html/directory
(Example: ./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html )
make && make install-strip
Now you will need to add the following to your server's Apache configuration file (usually httpd.conf)
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
In addition, within the Apache master config file you will want to set the “AllowOveride” option to “All”. Example: AllowOverride All
cd /path/to/your/cgi-bin/vqadmin
vi .htaccess
AuthType Basic
AuthUserFile /path/to/where/you/want/to/store/the/password/file/.htpasswd
AuthName vQadmin
require valid-user
satisfy any
chown apache .htaccess (you may need to change the chown to either “nobody”, “apache” or “www” etc., depending on what user your installation of Apache is running as)
chmod 644 .htaccess
htpasswd -bc /path/to/where/you/want/to/store/the/password/file/.htpasswd admin admin_password
chmod 644 /path/to/where/you/want/to/store/the/password/file/.htpasswd
apachectl stop
apachectl start
If all has gone well, you should now be able to browse (in your web browser) to:
http://www.yourdomain.com/cgi-bin/vqadmin/vqadmin.cgi
8. Build 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
9. Build Qmailadmin
cd /downloads/qmailrocks
tar zxvf qmailadmin-1.2.9.tar.gz
cd qmailadmin-1.2.9
./configure –enable-cgibindir=/path/to/your/cgi-bin –enable-htmldir=/path/to/your/html/directory
make && make install-strip
10. Finalizing Qmail
Edit and Run :
/test/qmailrocks/scripts/finalize/linux/finalize_linux.script
vi /var/qmail/supervise/qmail-pop3d/run
Find “mail.example.com” and change it to your server’s hostname. For example: mail.mydomain.com
vi /var/qmail/supervise/qmail-smtpd/run
Find “mail.example.com” and change it to your server’s hostname. For example: mail.mydomain.com
qmailctl stop
echo ‘127.:allow,RELAYCLIENT=”"‘ >> /etc/tcp.smtp
qmailctl cdb
echo some_address > /var/qmail/alias/.qmail-root
echo some_address > /var/qmail/alias/.qmail-postmaster
echo some_address > /var/qmail/alias/.qmail-mailer-daemon
ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous
chmod 644 /var/qmail/alias/.qmail*
11. Removing Sendmail
rpm -qa | grep sendmail
/etc/rc.d/init.d/sendmail stop (to stop Sendmail)
rpm -e –nodeps sendmail-x.x.x.x
12. Removing PostFix
rpm -qa | grep postfix
/etc/rc.d/init.d/postfix stop
rpm -e –nodeps postfix-x.x-x
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
13. Starting Qmail
Run :
/test/qmailrocks/scripts/util/qmr_inst_check
qmailctl stop
qmailctl start
qmailctl stat
service/qmail-send: up (pid 29956) 2 seconds
/service/qmail-send/log: up (pid 29960) 2 seconds
/service/qmail-smtpd: up (pid 29963) 2 seconds
/service/qmail-smtpd/log: up (pid 29968) 2 seconds
/service/qmail-pop3d: up (pid 29971) 2 seconds
/service/qmail-pop3d/log: up (pid 29972) 2 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
14. Testing Qmail
Telnet to localhost 110
Trying 192.168.1.10…
Connected to 192.168.1.10.
Escape character is ‘^]’.
+OK <16658.1054485137@yourserver.com>
user postmaster@mydomain.com (enter your username here. remember to use the full e-mail address)
+OK
pass your_password
+OK
quit
+OK
Connection closed by foreign host.
Telnet to localhost 25
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 somewhere.anywhere.com ESMTP
ehlo localhost
250-somewhere.anywhere.com
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-STARTTLS
250-PIPELINING
250 8BITMIME
starttls
220 ready for tls
quit
quit
Connection closed by foreign host.
[root@somewhere control]#
Testing on Microsoft Outlook
1. Build Qmail
tar zxvf qmailrocks.tar.gz
Edit and Run :
/test/qmailrocks/scripts/install/qmr_install_linux-s1.script
Edit and Run :
/test/qmailrocks/scripts/util/qmail_big_patches.script
cd /usr/src/qmail/qmail-1.03
make man && make setup check
./config-fast your_fqdn_hostname (ex: ./config-fast mail.mydomain.com)
make cert
Country Name (2 letter code) [GB]:US
State or Province Name (full name) [Berkshire]:Georgia
Locality Name (eg, city) [Newbury]:Atlanta
Organization Name (eg, company) [My Company Ltd]:qmailrocks.org
Organizational Unit Name (eg, section) []:mail
Common Name (eg, your name or your server’s hostname) []:mail.qmailrocks.org
Email Address []:postmaster@thisdomain.org
2. Build ucspi-tcp
chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem
cd /usr/src/qmail/ucspi-tcp-0.88/
patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
make && make setup check
3. Build Mdaemontools
cd /package/admin/daemontools-0.76
cd /package/admin/daemontools-0.76/src
patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
cd /package/admin/daemontools-0.76
package/install
Check Svscanboot
4. Build Ezmlm
cd /downloads/qmailrocks/
tar zxvf ezmlm-0.53-idx-0.41.tar.gz
cd ezmlm-0.53-idx-0.41
make && make setup
5. Build Autoresponder
cd /downloads/qmailrocks
tar zxvf autorespond-2.0.5.tar.gz
cd autorespond-2.0.5
make && make install
6. Build Vpopmail
cd /downloads/qmailrocks
tar zxvf vpopmail-5.4.13.tar.gz
cd vpopmail-5.4.13
./configure --enable-logging=p
make && make install-strip
7. Build Vqadmin
cd /downloads/qmailrocks
tar zxvf vqadmin-2.3.6.tar.gz
cd vqadmin-2.3.6
./configure --enable-cgibindir=/path/to/your/cgi-bin --enable-htmldir=/path/to/your/html/directory
(Example: ./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html )
make && make install-strip
Now you will need to add the following to your server's Apache configuration file (usually httpd.conf)
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
In addition, within the Apache master config file you will want to set the “AllowOveride” option to “All”. Example: AllowOverride All
cd /path/to/your/cgi-bin/vqadmin
vi .htaccess
AuthType Basic
AuthUserFile /path/to/where/you/want/to/store/the/password/file/.htpasswd
AuthName vQadmin
require valid-user
satisfy any
chown apache .htaccess (you may need to change the chown to either “nobody”, “apache” or “www” etc., depending on what user your installation of Apache is running as)
chmod 644 .htaccess
htpasswd -bc /path/to/where/you/want/to/store/the/password/file/.htpasswd admin admin_password
chmod 644 /path/to/where/you/want/to/store/the/password/file/.htpasswd
apachectl stop
apachectl start
If all has gone well, you should now be able to browse (in your web browser) to:
http://www.yourdomain.com/cgi-bin/vqadmin/vqadmin.cgi
8. Build 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
9. Build Qmailadmin
cd /downloads/qmailrocks
tar zxvf qmailadmin-1.2.9.tar.gz
cd qmailadmin-1.2.9
./configure –enable-cgibindir=/path/to/your/cgi-bin –enable-htmldir=/path/to/your/html/directory
make && make install-strip
10. Finalizing Qmail
Edit and Run :
/test/qmailrocks/scripts/finalize/linux/finalize_linux.script
vi /var/qmail/supervise/qmail-pop3d/run
Find “mail.example.com” and change it to your server’s hostname. For example: mail.mydomain.com
vi /var/qmail/supervise/qmail-smtpd/run
Find “mail.example.com” and change it to your server’s hostname. For example: mail.mydomain.com
qmailctl stop
echo ‘127.:allow,RELAYCLIENT=”"‘ >> /etc/tcp.smtp
qmailctl cdb
echo some_address > /var/qmail/alias/.qmail-root
echo some_address > /var/qmail/alias/.qmail-postmaster
echo some_address > /var/qmail/alias/.qmail-mailer-daemon
ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous
chmod 644 /var/qmail/alias/.qmail*
11. Removing Sendmail
rpm -qa | grep sendmail
/etc/rc.d/init.d/sendmail stop (to stop Sendmail)
rpm -e –nodeps sendmail-x.x.x.x
12. Removing PostFix
rpm -qa | grep postfix
/etc/rc.d/init.d/postfix stop
rpm -e –nodeps postfix-x.x-x
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
13. Starting Qmail
Run :
/test/qmailrocks/scripts/util/qmr_inst_check
qmailctl stop
qmailctl start
qmailctl stat
service/qmail-send: up (pid 29956) 2 seconds
/service/qmail-send/log: up (pid 29960) 2 seconds
/service/qmail-smtpd: up (pid 29963) 2 seconds
/service/qmail-smtpd/log: up (pid 29968) 2 seconds
/service/qmail-pop3d: up (pid 29971) 2 seconds
/service/qmail-pop3d/log: up (pid 29972) 2 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
14. Testing Qmail
Telnet to localhost 110
Trying 192.168.1.10…
Connected to 192.168.1.10.
Escape character is ‘^]’.
+OK <16658.1054485137@yourserver.com>
user postmaster@mydomain.com (enter your username here. remember to use the full e-mail address)
+OK
pass your_password
+OK
quit
+OK
Connection closed by foreign host.
Telnet to localhost 25
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 somewhere.anywhere.com ESMTP
ehlo localhost
250-somewhere.anywhere.com
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-STARTTLS
250-PIPELINING
250 8BITMIME
starttls
220 ready for tls
quit
quit
Connection closed by foreign host.
[root@somewhere control]#
Testing on Microsoft Outlook
nice post gan.,.
ikut nyimak artikelnya. mas makasih
nice info thanks.,.
kunjungan perdana gan salam kenal