postfix+courier-authlib+courier-imap+cyrus-sa…

2009-05-13 13:01:05来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


精灵萌萌
对于本系统的postfix服务器,是基于mysql的虚拟用户,以及防病毒防垃圾邮件处理。
mysql服务器的安装
myql是数据库服务,在postfix里面提供主要的任务就是用来保户邮件帐户与密码
mysql服务器是采用源码的方式进行安装。
./configure --prefix=/usr/local/mysql
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
chgrp -R mysql .
/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
ln -s /usr/local/mysql/share/mysql/mysql.server /usr/local/etc/rc.d/mysql.sh
安装apache服务器
/usr/ports/www/apache21 make install 如果产生错误就采用下面的方式进行安装
make -f Makefile CC=gcc install
安装php的支持
对于如何利用php支持apache不在本文档的范围之内,请自行查询相关手册
/usr/ports/lang/php4
make install
[X] APACHE2 Use apache 2.x instead of apache 1.3.x │ │
[ ] DEBUG Enable debug │ │
[X] MULTIBYTE Enable zend multibyte support │ │
[ ] IPV6 Enable ipv6 support │ │
[X] OPENSSL Build static OpenSSL extension
安装php对mysql的支持
/usr/ports/databases/php4-mysql make install
安装php的所必须的函数库
/usr/ports/www/php4-session make install
安装phpmyadmin
/usr/ports/databases/phpmyadmin [X] BZ2 bzip2 library support │ │ [X] GD GD library support │ │ [ ] MYSQLI Improved MySQL support (PHP5, MySQL 4.1 only) │ │ [X] OPENSSL OpenSSL support │ │ [X] PDF PDFlib suppor t (implies GD) │ │ [X] ZLIB ZLIB support │ │ [X] MCRYPT MCrypt library support │ │ [X] MBSTRING Multi-byte character-set string support make install 以上把这些支持都装好,也都是为以后postfix铺路,对于php还缺少什么函数可以以后跟具需要进行安装 请自行配置好phpmyadmin在本文里没有介绍
安装postfixadmin
postfixadmin是通过web方式管理postfix的一种解决方案,我们主要是把postfixadmin的数据库导入到mysql数据库里,之后通过web的方式来管理。
/usr/ports/mail/postfixadmin
make install
安装postfix
安装postfix主程序,安装到这一步骤的时候必须要把域名配置完毕。
/usr/ports/mail/postfix
make install
│ │ [ ] NOPCRE DISABLE Perl Compatible Regular Expressions │ │
│ │ [ ] SASL Cyrus SASLv1 (Simple Authentication and Security Layer) │ │
│ │ [X] SASL2 Cyrus SASLv2 (Simple Authentication and Security Layer) │ │
│ │ [ ] SASLKRB If your SASL requires Kerberos select this option │ │ │ │ [ ] SASLKRB5 If your SASL requires Kerberos5 select this option │ │
│ │ [ ] SPF SPF support │ │
│ │ [X] TLS SSL and TLS │ │
│ │ [ ] DB3 Berkeley DB3 (required if SASL also built with DB3)&nb sp; │ │
│ │ [ ] DB40 Berkeley DB4.0 (required if SASL also built with DB4.0) │ │
│ │ [ ] DB41 Berkeley DB4.1 (required if SASL also built with DB4.1) │ │
│ │ [ ] DB42 Berkeley DB4.2 (required if SASL also built with DB4.2) │ │
│ │ [ ] DB43 Berkeley DB4.3 (required if SASL also built with DB4.3) │ │

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Bugzilla ON FreeBSD 4.9 HOWTO

下一篇:Freebsd中拿无线网卡当AP 用