FreeBSD全能服务器安装手册之qmail基础安装篇.doc_第1页
FreeBSD全能服务器安装手册之qmail基础安装篇.doc_第2页
FreeBSD全能服务器安装手册之qmail基础安装篇.doc_第3页
FreeBSD全能服务器安装手册之qmail基础安装篇.doc_第4页
FreeBSD全能服务器安装手册之qmail基础安装篇.doc_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

FreeBSD全能服务器安装手册之qmail基础安装篇#下载软件包#Part 1 - Download the Software(/downloads/qmailrocks.tar.gz) 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.scriptcd /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 vpopmailuserlocalhost IDENTIFIED BY password; quit mysql -u vpopmailuser -p quit upload iGENUS.mysql mysql -u root -p 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 servers Apache configuration file (usually called httpd.conf) ee /usr/local/etc/apache/httpd.conf 在末尾添加 deny from all Options ExecCGI AllowOverride AuthConfig Order deny,allow 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 05/cgi-bin/vqadmin/vqadmin.cgi /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 servers hostname. For example: . ee /var/qmail/supervise/qmail-smtpd/run Find and change it to your servers 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 0. Connected to 0. 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 0. Connected to 0. 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 (theres 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 0. Connected to 0. Escape character is . * OK CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS Courier-IMAP ready. Copyright 1998-2003 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. #Part 14 - Clam Antivirus & Spamassassin#Part 14 - Clam Antivirus & Spamassassin 安装Clamav cd /usr/ports/security/clamav make make install make clean 注:选中CURL

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论