Presentation is loading. Please wait.

Presentation is loading. Please wait.

Qmail Installation. Build Qmail tar zxvf qmailrocks.tar.gz tar zxvf qmailrocks.tar.gz Edit and Run : Edit and Run : /test/qmailrocks/scripts/install/qmr_install_linux-s1.script.

Similar presentations


Presentation on theme: "Qmail Installation. Build Qmail tar zxvf qmailrocks.tar.gz tar zxvf qmailrocks.tar.gz Edit and Run : Edit and Run : /test/qmailrocks/scripts/install/qmr_install_linux-s1.script."— Presentation transcript:

1 Qmail Installation

2 Build Qmail tar zxvf qmailrocks.tar.gz tar zxvf qmailrocks.tar.gz Edit and Run : Edit and Run : /test/qmailrocks/scripts/install/qmr_install_linux-s1.script /test/qmailrocks/scripts/install/qmr_install_linux-s1.script Edit and Run : Edit and Run : /test/qmailrocks/scripts/util/qmail_big_patches.script /test/qmailrocks/scripts/util/qmail_big_patches.script cd /usr/src/qmail/qmail-1.03 cd /usr/src/qmail/qmail-1.03 make man && make setup check make man && make setup check./config-fast your_fqdn_hostname (ex:./config-fast mail.mydomain.com)./config-fast your_fqdn_hostname (ex:./config-fast mail.mydomain.com) make cert make cert

3 Build Qmail 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 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

4 Build ucspi-tcp chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem cd /usr/src/qmail/ucspi-tcp-0.88/ cd /usr/src/qmail/ucspi-tcp-0.88/ patch < /downloads/qmailrocks/patches/ucspi-tcp- 0.88.errno.patch patch < /downloads/qmailrocks/patches/ucspi-tcp- 0.88.errno.patch make && make setup check make && make setup check

5 Build Mdaemontools cd /package/admin/daemontools-0.76 cd /package/admin/daemontools-0.76 cd /package/admin/daemontools-0.76/src cd /package/admin/daemontools-0.76/src patch < /downloads/qmailrocks/patches/daemontools- 0.76.errno.patch patch < /downloads/qmailrocks/patches/daemontools- 0.76.errno.patch cd /package/admin/daemontools-0.76 cd /package/admin/daemontools-0.76 package/install package/install Check Svscanboot

6 Build Ezmlm cd /downloads/qmailrocks/ cd /downloads/qmailrocks/ tar zxvf ezmlm-0.53-idx-0.41.tar.gz tar zxvf ezmlm-0.53-idx-0.41.tar.gz cd ezmlm-0.53-idx-0.41 cd ezmlm-0.53-idx-0.41 make && make setup make && make setup

7 Build Autoresponder cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf autorespond-2.0.5.tar.gz tar zxvf autorespond-2.0.5.tar.gz cd autorespond-2.0.5 cd autorespond-2.0.5 make && make install make && make install

8 Build Vpopmail cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf vpopmail-5.4.13.tar.gz tar zxvf vpopmail-5.4.13.tar.gz cd vpopmail-5.4.13 cd vpopmail-5.4.13./configure --enable-logging=p./configure --enable-logging=p make && make install-strip make && make install-strip

9 Build Vqadmin cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf vqadmin-2.3.6.tar.gz tar zxvf vqadmin-2.3.6.tar.gz cd vqadmin-2.3.6 cd vqadmin-2.3.6./configure --enable-cgibindir=/path/to/your/cgi-bin -- enable-htmldir=/path/to/your/html/directory./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 ) (Example:./configure --enable-cgibindir=/var/www/cgi- bin --enable-htmldir=/var/www/html ) make && make install-strip make && make install-strip

10 Build Vqadmin 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 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 In addition, within the Apache master config file you will want to set the "AllowOveride" option to "All". Example: AllowOverride All

11 Build Vqadmin cd /path/to/your/cgi-bin/vqadmin cd /path/to/your/cgi-bin/vqadmin vi.htaccess vi.htaccess AuthType Basic AuthUserFile /path/to/where/you/want/to/store/the/password/file/.ht passwd AuthName vQadmin require valid-user satisfy any AuthType Basic AuthUserFile /path/to/where/you/want/to/store/the/password/file/.ht passwd AuthName vQadmin require valid-user satisfy any

12 Build Vqadmin 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) 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 chmod 644.htaccess htpasswd -bc /path/to/where/you/want/to/store/the/password/file/.ht passwd admin admin_password htpasswd -bc /path/to/where/you/want/to/store/the/password/file/.ht passwd admin admin_password chmod 644 /path/to/where/you/want/to/store/the/password/file/.ht passwd chmod 644 /path/to/where/you/want/to/store/the/password/file/.ht passwd

13 Build Vqadmin apachectl stop apachectl stop apachectl start 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 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

14 Build Maildrop cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf maildrop-1.6.3.tar.gz tar zxvf maildrop-1.6.3.tar.gz cd maildrop-1.6.3 cd maildrop-1.6.3./configure --prefix=/usr/local --exec- prefix=/usr/local --enable-maildrop- uid=root --enable-maildrop-gid=vchkpw -- enable-maildirquota./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 make && make install-strip && make install-man

15 Build Qmailadmin cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf qmailadmin-1.2.9.tar.gz tar zxvf qmailadmin-1.2.9.tar.gz cd qmailadmin-1.2.9 cd qmailadmin-1.2.9./configure --enable-cgibindir=/path/to/your/cgi-bin -- enable-htmldir=/path/to/your/html/directory./configure --enable-cgibindir=/path/to/your/cgi-bin -- enable-htmldir=/path/to/your/html/directory make && make install-strip make && make install-strip

16 Finalizing Qmail Edit and Run : Edit and Run : /test/qmailrocks/scripts/finalize/linux/finalize_linux.script /test/qmailrocks/scripts/finalize/linux/finalize_linux.script vi /var/qmail/supervise/qmail-pop3d/run vi /var/qmail/supervise/qmail-pop3d/run Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com vi /var/qmail/supervise/qmail-smtpd/run vi /var/qmail/supervise/qmail-smtpd/run Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com

17 Finalizing Qmail qmailctl stop qmailctl stop echo '127.:allow,RELAYCLIENT="“' >> /etc/tcp.smtp echo '127.:allow,RELAYCLIENT="“' >> /etc/tcp.smtp qmailctl cdb qmailctl cdb

18 Finalizing Qmail echo some_address > /var/qmail/alias/.qmail-root echo some_address > /var/qmail/alias/.qmail-root echo some_address > /var/qmail/alias/.qmail- postmaster echo some_address > /var/qmail/alias/.qmail- postmaster echo some_address > /var/qmail/alias/.qmail-mailer- daemon echo some_address > /var/qmail/alias/.qmail-mailer- daemon ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous chmod 644 /var/qmail/alias/.qmail* chmod 644 /var/qmail/alias/.qmail*

19 Removing Sendmail rpm -qa | grep sendmail rpm -qa | grep sendmail /etc/rc.d/init.d/sendmail stop (to stop Sendmail) /etc/rc.d/init.d/sendmail stop (to stop Sendmail) rpm -e --nodeps sendmail-x.x.x.x rpm -e --nodeps sendmail-x.x.x.x

20 Removing PostFix rpm -qa | grep postfix rpm -qa | grep postfix /etc/rc.d/init.d/postfix stop /etc/rc.d/init.d/postfix stop rpm -e --nodeps postfix-x.x-x rpm -e --nodeps postfix-x.x-x ln -s /var/qmail/bin/sendmail /usr/lib/sendmail ln -s /var/qmail/bin/sendmail /usr/lib/sendmail ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

21 Starting Qmail Run : Run : /test/qmailrocks/scripts/util/qmr_inst_check /test/qmailrocks/scripts/util/qmr_inst_check qmailctl stop qmailctl stop qmailctl start qmailctl start qmailctl stat qmailctl stat

22 Starting Qmail 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 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

23 Testing Qmail Telnet to localhost 110 Telnet to localhost 110 Trying 192.168.1.10... Connected to 192.168.1.10. Escape character is '^]'. +OK 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. Trying 192.168.1.10... Connected to 192.168.1.10. Escape character is '^]'. +OK 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.

24 Testing Qmail Telnet to localhost 25 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]# 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]#

25 Testing Qmail Testing on Microsoft Outlook Testing on Microsoft Outlook

26 FINISH > Continue to webmail configuration Continue to webmail configuration <


Download ppt "Qmail Installation. Build Qmail tar zxvf qmailrocks.tar.gz tar zxvf qmailrocks.tar.gz Edit and Run : Edit and Run : /test/qmailrocks/scripts/install/qmr_install_linux-s1.script."

Similar presentations


Ads by Google