全能服务器安装手册之基础安装篇模板.doc
《全能服务器安装手册之基础安装篇模板.doc》由会员分享,可在线阅读,更多相关《全能服务器安装手册之基础安装篇模板.doc(13页珍藏版)》请在咨信网上搜索。
FreeBSD全能服务器安装手册之qmail基础安装篇 ###################################下载软件包################################## Part 1 - Download the Software() mkdir /downloads cd /downloads tar zxvf qmailrocks.tar.gz ##################################安装qmail主程序############################## Part 2 - Installing Qmail Itself /downloads/qmailrocks/scripts/install/qmr_install_freebsd-s1.script 脚本内容请参考------qmail安装脚本篇qmr_install_freebsd-s1.script ############################################################################### /downloads/qmailrocks/scripts/util/qmail_patches.script 脚本内容请参考------qmail安装脚本篇qmail_patches.script cd /usr/src/qmail/qmail-1.03 make man make setup check ./config-fast /usr/ports/mail/qmail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% cd /usr/src/qmail/ucspi-tcp-0.88/ make make setup check /usr/ports/sysutils/ucspi-tcp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% cd /package/admin/daemontools-0.76 package/install reboot /usr/ports/sysutils/daemontools ################################Part 3 - EZmlm################################## Part 3 - EZmlm cd /downloads/qmailrocks/ tar zxvf ezmlm-0.53-idx-0.41.tar.gz cd ezmlm-0.53-idx-0.41 make make setup /usr/ports/mail/ezmlm ############################Part 4 - Qmail-Autoresponder ########################## Part 4 - Qmail-Autoresponder #pkg_add -r qmail-autoresponder cd /downloads/qmailrocks pkg_add qmail-autoresponder-0.96.1.tbz /usr/ports/mail/qmail-autoresponder ################################part 5 - Vpopmail################################ Part 5 - Vpopmail(I would like to install vpopmail with MySQL integration) mkdir -p ~vpopmail/etc mysql -u root -p CREATE DATABASE vpopmail; GRANT select,insert,update,delete,create,drop ON vpopmail.* TO vpopmailuser@localhost IDENTIFIED BY 'password'; quit mysql -u vpopmailuser -p quit upload iGENUS.mysql mysql -u root -p < /home/chb/iGENUS.mysql 脚本内容请参考------qmail安装脚本篇iGENUS.mysql ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// cd /downloads/qmailrocks tar zxvf vpopmail-5.4.9.tar.gz cd vpopmail-5.4.9 ./configure \ --disable-roaming-users \ --enable-logging=p \ --disable-ip-alias-domains \ --disable-passwd \ --enable-clear-passwd \ --disable-domain-quotas \ --enable-auth-module=mysql \ --enable-many-domains \ --enable-auth-logging \ --enable-sql-logging \ --enable-valias \ --disable-mysql-limits make make install-strip chown vpopmail:vchkpw ~vpopmail/etc echo "localhost|0|vpopmailuser|password|vpopmail" > ~vpopmail/etc/vpopmail.mysql chown vpopmail:vchkpw ~vpopmail/etc/vpopmail.mysql chmod 640 ~vpopmail/etc/vpopmail.mysql /home/vpopmail/bin/vadddomain 你域名 以后回提醒输入域管理员密码 /home/vpopmail/bin/vadduser 邮件用户@你域名 以后回提醒输入邮件用户密码 /usr/ports/mail/vpopmail #############################Part 6 - Vqadmin################################### Part 6 - Vqadmin cd /downloads/qmailrocks tar zxvf vqadmin-2.3.6.tar.gz cd vqadmin-2.3.6 ./configure \ --enable-cgibindir=/usr/local/www/cgi-bin \ --enable-htmldir=/usr/local/www/html make make install-strip Now you will need to add the following to your server's Apache configuration file (usually called httpd.conf) ee /usr/local/etc/apache/httpd.conf 在末尾添加 <Directory "/usr/local/www/cgi-bin/vqadmin"> deny from all Options ExecCGI AllowOverride AuthConfig Order deny,allow </Directory> cd /usr/local/www/cgi-bin/vqadmin ee .htaccess AuthType Basic AuthUserFile /usr/local/etc/apache/conf/vqadmin.passwd AuthName vQadmin require valid-user satisfy any mkdir /usr/local/etc/apache/conf chown www .htaccess chmod 644 .htaccess htpasswd -bc /usr/local/etc/apache/conf/vqadmin.passwd admin password chmod 644 /usr/local/etc/apache/conf/vqadmin.passwd apachectl stop apachectl start /usr/ports/mail/vqadmin ##############################Part 7 - Maildrop################################### Part 7 - 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 /usr/ports/mail/maildrop ##############################Part 8 - Qmailadmin############################# Part 8 - Qmailadmin cd /downloads/qmailrocks tar zxvf qmailadmin-1.2.3.tar.gz cd qmailadmin-1.2.3 ./configure \ --enable-cgibindir=/usr/local/www/cgi-bin \ --enable-htmldir=/usr/local/www/html/directory \ --enable-autoresponder-path=/usr/local/bin/qmail-autoresponder make make install-strip /usr/ports/mail/qmailadmin ####################################Part 9 - Finalizing Qmail####################### Part 9 - Finalizing Qmail /downloads/qmailrocks/scripts/finalize/freebsd/finalize_freebsd.script 脚本内容请参考------qmail安装脚本篇finalize_freebsd.script ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ee /var/qmail/supervise/qmail-pop3d/run Find "" and change it to your server's hostname. For example: . ee /var/qmail/supervise/qmail-smtpd/run Find "" and change it to your server's hostname. For example: qmailctl stop echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp qmailctl cdb echo > /var/qmail/alias/.qmail-root where "some_address" is the system user or email address you want these addresses aliased to. echo > /var/qmail/alias/.qmail-postmaster where "some_address" is the system user or email address you want these addresses aliased to. echo > /var/qmail/alias/.qmail-mailer-daemon where "some_address" is the system user or email address you want these addresses aliased to. ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous chmod 644 /var/qmail/alias/.qmail* ##########################Part 10 - Uninstalling Sendmail########################### Part 10 - Uninstalling Sendmail killall sendmail mv /usr/sbin/sendmail /usr/sbin/sendmail.old mv /usr/lib/sendmail /usr/lib/sendmail.old(this may not apply if there is no sendmail link or binary in this location) chmod 0 /usr/lib/sendmail.old /usr/sbin/sendmail.old Now we will need to instruct FreeBSD not to attempt to start Sendmail upon startup. This is done by make the following modification to the /etc/rc.conf file: Change sendmail_enable="YES" to sendmail_enable="NONE" ln -s /var/qmail/bin/sendmail /usr/lib/sendmail #ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail ########################Part 11 - Starting up qmail################################# Part 11 - Starting up qmail /downloads/qmailrocks/scripts/util/qmr_inst_check 脚本内容请参考------qmail安装脚本篇qmr_inst_check ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// qmailctl stop qmailctl start telnet localhost 110 you should see something like this: Trying 192.168.1.10... Connected to 192.168.1.10. Escape character is '^]'. +OK <> user (enter your username here. remember to use the full e-mail address) +OK pass your_password +OK quit +OK Connection closed by foreign host. This is the sign of a successfull POP connection to the server! Now try sending mail to that same user from another location. Telnet to 110 again and run the "list" command and you should see the message that your send... telnet localhost 110 Trying 192.168.1.10... Connected to 192.168.1.10. Escape character is '^]'. +OK <> user (again, remember to log in with the full email address of the user) +OK pass your_password +OK list +OK 1 323 (there's your message!) . quit +OK Connection closed by foreign host. ########################Part 12 - Installing Courier IMAP & IMAP SSL################ Part 12 - Installing Courier IMAP & IMAP SSL cd /downloads/qmailrocks/ /usr/bin/bunzip2 courier-imap-3.0.8.tar.bz2 (Note: some systems may use bunzip2 instead of bunzip) #bunzip courier-imap-3.0.8.tar.bz2 tar xvf courier-imap-3.0.8.tar cd courier-imap-3.0.8 ./configure \ --prefix=/usr/local \ --exec-prefix=/usr/local \ --without-authdaemon \ --with-authvchkpw \ --without-authldap \ --disable-root-check \ --with-ssl make make install-strip cd /usr/local/etc cp imapd.dist imapd cp imapd-ssl.dist imapd-ssl /usr/local/sbin/mkimapdcert ee imapd-ssl #make sure IMAPDSSLSTART=YES cp /usr/local/libexec/imapd.rc /usr/local/etc/rc.d/imap.sh cp /usr/local/libexec/imapd-ssl.rc /usr/local/etc/rc.d/imaps.sh /usr/local/etc/rc.d/imap.sh start /usr/local/etc/rc.d/imaps.sh start telnet localhost 143 Trying 192.168.1.10... Connected to 192.168.1.10. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998- Double Precision, Inc. See COPYING for distribution information. a login my_password a OK LOGIN Ok. (successful login!) a logout (logs you out) * BYE Courier-IMAP server shutting down a OK LOGOUT completed Connection closed by foreign host. <!--cd /downloads/qmailrocks tar zxvf courierpassd-1.1.0-RC1.tar.gz cd courierpassd-1.1.0-RC1 ./configure --with-couriersrc=/downloads/qmailrocks/courier-imap-3.0.8 make make install--> #########################Part 14 - Clam Antivirus & Spamassassin#################### Part 14 - Clam Antivirus & Spamassassin 安装Clamav cd /usr/ports/security/clamav make make install make clean 注:选中CURL reboot 测试 /usr/local/bin/clamscan -r -i /usr/local/www/data ----------- SCAN SUMMARY ----------- Known viruses: 32358 Scanned directories: 47 Scanned files: 866 Infected files: 0 Data scanned: 10.32 MB I/O buffer size: 131072 bytes Time: 41.750 sec (0 m 41 s) 升级病毒库 /usr/local/bin/freshclam -l /var/log/clamav/clam-update.log ClamAV update process started at Fri May 6 00:12:24 WARNING: Your ClamAV installation is OUTDATED - please update immediately! WARNING: Local version: 0.83 Recommended version: 0.84 Downloading main.cvd [*] main.cvd updated (version: 31, sigs: 33079, f-level: 4, builder: tkojm) Downloading daily.cvd [*] daily.cvd updated (version: 871, sigs: 1178, f-level: 4, builder: ccordes) Database updated (34257 signatures) from (IP: 61.8.0.16) Clamd successfully notified about the update.- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 全能 服务器 安装 手册 基础 模板
咨信网温馨提示:
1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前自行私信或留言给上传者【a199****6536】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时私信或留言给本站上传会员【a199****6536】,需本站解决可联系【 微信客服】、【 QQ客服】,若有其他问题请点击或扫码反馈【 服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【 版权申诉】”(推荐),意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4008-655-100;投诉/维权电话:4009-655-100。
1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前自行私信或留言给上传者【a199****6536】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时私信或留言给本站上传会员【a199****6536】,需本站解决可联系【 微信客服】、【 QQ客服】,若有其他问题请点击或扫码反馈【 服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【 版权申诉】”(推荐),意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4008-655-100;投诉/维权电话:4009-655-100。
关于本文