我在FreeBSD 6.2 上组建的邮件系统

时间:2007-12-14 21:18:56   来源:extmail.org  作者:bsdunix  点击:次  出处:技术无忧
关键字:freebsd mail postfix extmail

Alias /extman/cgi/ /usr/local/www/apache2/cgi-bin/extman/cgi/
Alias /extman /usr/local/www/apache2/cgi-bin/extman/html/

<Location "/extman/cgi">
SetHandler cgi-script
Options +ExecCGI
AllowOverride All
</Location>


# config for ExtMail
Alias /extmail/cgi/ /usr/local/www/apache2/cgi-bin/extmail/cgi/
Alias /extmail /usr/local/www/apache2/cgi-bin/extmail/html/

<Location "/extmail/cgi">
SetHandler cgi-script
Options +ExecCGI
AllowOverride All
</Location>重启apahce

#/usr/local/etc/rc.d/apache2.sh restart
Performing sanity check on apache2 configuration:
Syntax OK
Stopping apache2.
Waiting for PIDS: 461.
Performing sanity check on apache2 configuration:
Syntax OK
Starting apache2.

2、安装extmail
从extmail官方网站:[url]www.extmail.org[/url] 下载最新版式

tar zxvf extmail-23-20060219.tar.gz
#cp -r extmail-0.23-20060219/ /usr/local/www/apache2/cgi-bin/extmail
创建配置文件

#cd /usr/local/www/cgi-bin/extmail/
#cp webmail.cf.default webmail.cf
修改配置文件,我只把需要修改的地方贴出来

# sys_config, the config file and webmail programe root
SYS_CONFIG = /usr/local/www/apache2/cgi-bin/extmail/

# sys_langdir, the i18n dir
SYS_LANGDIR = /usr/local/www/apache2/cgi-bin/extmail/lang

# sys_templdir, the template dir
SYS_TEMPLDIR = /usr/local/www/apache2/cgi-bin/extmail/html
# sys_netdisk_on, default is off
SYS_NETDISK_ON = 1
# maildir_base, the base dir of user maildir, use absolute path
# if not set.
SYS_MAILDIR_BASE = /home/data/domains
# if mysql, all relate paramters should prefix as SYS_MYSQL
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = extmail
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /tmp/mysql.sock

打开你的浏览器,输入[url]http://ip/extmail[/url] 即可看到登陆窗口
用户名:test
密码:test
域名:extmail.org

3、安装extman
从extmail 官方网站下载软件包,解压复制到/usr/local/www/apache2/cgi-bin目录。

#cd /usr/local/www/cgi-bin/extman/编辑 webman.cf

# sys_config, the config file and webman programe root
SYS_CONFIG = /usr/local/www/cgi-bin/extman/

# sys_langdir, the i18n dir
SYS_LANGDIR = /usr/local/www/cgi-bin/extman/lang

# sys_templdir, the template dir
SYS_TEMPLDIR = /usr/local/www/cgi-bin/extman/html

# maildir_base, the base dir of user maildir, use absolute path
# if not set.
SYS_MAILDIR_BASE = /data/domains
# if mysql, all relate paramters should prefix as SYS_MYSQL
SYS_MYSQL_USER = webman
SYS_MYSQL_PASS = webman
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /tmp/mysql.sock

创建/tmp/extman
#mkdir /tmp/extman
#chmod 777 /tmp/extman/
创建软件包的链接

#cd extman/libs/Ext/
#./buildlink.sh build /usr/local/www/cgi-bin/extmail/libs/Ext/
打开浏览器输入[url]http://ip/extman[/url]

用户名:[email]root@extmail.org[/email] 密码:extmail

其他需要安装的软件
/usr/ports/databases/p5-DBI
/usr/ports/databases/p5-DBD-mysql
/usr/ports/devel/p5-File-Tail
/usr/ports/devel/p5-Time-HiRes
/usr/ports/net/rrdtool


make install clean

最后我所安装的软件

apache-2.0.59 Version 2 of Apache web server with prefork MPM.
autoconf-2.59_2 Automatically configure source code on many Un*x platforms
automake-1.9.6 GNU Standards-compliant Makefile generator (1.9)
courier-authlib-base-0.58_2 Courier authentication library base
courier-authlib-mysql-0.58_2 MySQL support for the Courier authentication library
courier-imap-4.1.1,1 IMAP (and POP3) server that provides access to Maildir mail
cyrus-sasl-2.1.22 RFC 2222 SASL (Simple Authentication and Security Layer)
expat-2.0.0_1 XML 1.0 parser written in C
freetype2-2.2.1_1 A free and portable TrueType font rendering engine
gettext-0.14.5_2 GNU gettext package
gmake-3.81_1 GNU version of &#39;make&#39; utility
help2man-1.36.4_1 Automatically generating simple manual pages from program o
libart_lgpl-2.3.17_1 Library for high-performance 2D graphics
libiconv-1.9.2_2 A character set conversion library
libltdl-1.5.22 System independent dlopen wrapper
libmcrypt-2.5.7_2 Multi-cipher cryptographic library (used in PHP)
libtool-1.5.22_2 Generic shared library support script
libxml2-2.6.26 XML parser library for GNOME
m4-1.4.4 GNU m4
maildrop-2.0.2 Mail delivery agent (MDA) with filtering abilities
mysql-client-4.1.21 Multithreaded SQL database (client)
mysql-server-4.1.21 Multithreaded SQL database (server)
p5-DBD-mysql-3.0007 MySQL driver for the Perl5 Database Interface (DBI)
p5-DBI-1.52 The perl5 Database Interface. Required for DBD::* modules
p5-File-Tail-0.99.3 Perl Module to read the end of a file as it\&#39;s appended to
p5-Storable-2.15 Persistency for perl data structures
p5-Time-HiRes-1.91,1 A perl5 module implementing High resolution time, sleep, an
p5-gettext-1.05_1 Message handling functions
pcre-6.7 Perl Compatible Regular Expressions library
perl-5.8.8 Practical Extraction and Report Language
php5-5.1.6_3 PHP Scripting Language (Apache Module and CLI)
php5-mbstring-5.1.6_3 The mbstring shared extension for php
php5-mcrypt-5.1.6_3 The mcrypt shared extension for php
php5-mysql-5.1.6_3 The mysql shared extension for php
php5-pcre-5.1.6_3 The pcre shared extension for php
php5-session-5.1.6_3 The session shared extension for php
phpMyAdmin-2.9.0.2 A set of PHP-scripts to manage MySQL over the web
pkg-config-0.21 A utility to retrieve information about installed libraries
png-1.2.12_1 Library for manipulating PNG images
postfix-2.3.3,1 A secure alternative to widely-used Sendmail
rrdtool-1.2.15 Round Robin Database Tools
sysconftool-0.15 Helps to install application configuration files

访问技术无忧网,软硬件通吃保你技术无忧!网址http://www.pc51.net


 3/3   |‹ ‹‹ 1 2 3

文章评论

共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面