当前位置:Linux教程 - Linux综合 - FREEBSD5.4的系统安装与服务器配置手册(四)

FREEBSD5.4的系统安装与服务器配置手册(四)

这里使用编译的方式安装Perl,可以从http://www.perl.com获得perl的最新版本,名字为stable.tar.gz5.8.7/按默认的方式安装Perl#sh Configure –de这里会出现很多提示,直接按回车就可以了!#make这里花费的时间较长,可要有点耐心(不过别向我一样机子死了还在那里傻傻的等待,后来发现是电源风扇坏了导致死机!怎一个郁闷了得啊!希望您不会遇到我这样的问题)#make test#make install#reboot登陆系统后运行perl –v查看Perl版本信息#perl –v 点击查看大图 

5.2安装mysql4.0.x

为了与系统的软件系统区分开,这里将所有我们手动编译软件安装在/usr/server中。

#tar -zxvf mysql-4.0.26.tar.gz#cd mysql-4.0.26#./configure--prefix=/usr/server/mysql--localstatedir=/usr/server/mysql/db--with-unix-socket-path=/tmp/mysql.sock--with-mysqld-user=mysql--with-charset=gb2312--with-extra-charsets=all# make# make install接下来安装mysql数据库# scripts/mysql_install_db# pw groupadd mysql# pw useradd mysql -g mysql# chown -R mysql:mysql /usr/server/mysql/db最后需要设置mysql的root口令# /usr/server/mysql/bin/mysqld_safe &# /usr/server/mysql/bin/mysqladmin -uroot passWord '密码'检查密码修改是否正确#/usr/server/mysql/bin/mysql -u root –p输入密码提示符为如果有mysql>则表示登陆成功在此输入,回车继续mysql>show databases;在下兔可以看到MYSQL中的两个数据库

输入mysql>quit;回车退出此时您的MSYQL安装完毕口令设置完成后,暂时关闭mysql服务:# kill %1

5.3安装Cyrus-sasl2

因为要查询MySQL数据库,所以我们需要在编译cyrus-sasl2时加上对MySQL的支持,同时我们打开了对plain和login两种验证方式的支持:


[1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 

$ tar -zxvf cyrus-sasl-2.1.21.tar.gz$ cd cyrus-sasl-2.1.21$ ./configure --disable-anon -enable-plain --enable-login --enable-sql --with-mysql=/usr/server/mysql --with-mysql-includes=/usr/server/mysql/include/mysql --with-mysql-libs=/usr/server/mysql/lib/mysql$ make# make install按照sasl的安装说明,需要建立一个symblink:# ln -s /usr/local/lib/sasl2 /usr/lib/sasl2

5.4安装Postfix2.1.x

首先,按照postfix的安装说明,建立postfix、postdrop组和postfix用户:

# pw groupadd postfix# pw groupadd postdrop# pw useradd postfix -g postfix -G postdrop

用户和组建立好后,我们就可以开始编译Postfix了:

$ tar -zxvf postfix-2.2.5.tar.gz$ cd postfix-2.2.5$ make tidy$ make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/server/mysql/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl' 'AUXLIBS=-L/usr/server/mysql/lib/mysql -lmysqlclient -lm -lz -L/usr/local/lib -lsasl2'$ make

因为我们的mysql不是安装在默认目录中的,所以需要告诉postfix应该到哪里去找libmysqlclient.so.12,使用ldconfig就可以达到这个目的:

# ldconfig -m /usr/server/mysql/lib/mysql# make install

执行make install这里会出现很多问题,但postfix已经为我们设置好了默认的答案,直接使用这些答案就可以使postfix正常工作了,所以我们只要直接按回车就可以了。

到这里,支持mysql和sasl认证的postfix就已经安装成功了。

5.5安装Courier-imap

这里要进入普通用户身份才可以安装

$ tar -jxvf courier-imap-3.0.7.tar.bz2$ cd courier-imap-3.0.7

因为courier-imap会使用mysql_config来取得一些编译参数(include、libs、cflags、socket等),但我们是将mysql安装在非/usr/server中,所以默认的PATH就不起作用,需要我们来使courier-imap能够搜索到mysql_config

$ eXPort PATH="$PATH:/usr/server/mysql/bin"$ ./configure --prefix=/usr/server/courier-imap --with-authmysql --enable-unicode$ make

此时进入ROOT身份执行make install


上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 

# make install

5.6建立用户数据表结构

这里,我们直接使用postfixadmin-2.2.5的表结构,现在我们来解开postfixadmin:

$ tar -zxvf ?postfixadmin-2[1].1.0.tgz$ cd postfixadmin-2.1.0/

将表结构导入到mysql前需要启动MYSQL:

$/usr/server/mysql/bin/mysqld_safe &$ /usr/server/mysql/bin/mysql -u root -p < DATABASE_MYSQL.TXT

5.7配置postfix

首先需要更改/etc/postfix/main.cf中的一些基本参数,请按照自己的实际情况修改,本例以域名mgpc.com.cn为例:

#ee /etc/postfix/main.cfmyhostname = mail.mgpc.com.cnmydomain = mgpc.com.cnmyorigin = $mydomainmydestination = $myhostname, localhost.$mydomain, localhost  (这里没有使用$mydomain是因为我们将使用virtualhost)inet_interfaces = all

在设置好以上基本参数后就需要设置支持virtualhost了,在本例中我们将所有的邮件全部存放在/var/mailbox中,同时因为iGENUS要在用户邮箱目录(Maildir)中建立文件和存放信息,所以就要求web服务器的用户要对用户邮箱目录有写的权限,所以我们在这里就将用户邮箱的uid和gid设置成web服务器的uid和gid以确保iGENUS正常工作,本例中web服务器的uid和gid都为80。在/etc/postfix/main.cf中加入:

virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_mailbox_domains.cfvirtual_mailbox_base = /var/mailbox/virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_mailbox_maps.cfvirtual_minimum_uid = 80virtual_uid_maps = static:80virtual_gid_maps = static:80virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_alias_maps.cf

虚拟域名支持的配置比较简单,根据字意就可以看明白,不过有一点需要注意,/var/mailbox/最后的"/"字符不能省略。

在设置好虚拟域名的基本参数后,就需要设置每个MySQL查询配置文件了,我们将所有的MySQL查询配置文件统一存放在/etc/postfix/mysql中,每个查询配置文件的内容分别如下:

在/etc/postfix/建立mysql目录#mkdir /etc/postfix/mysql#ee /etc/postfix/mysql/mysql_mailbox_domains.cf加入user = postfixpassword = postfixdbname = postfix

table = domainselect_field = domainwhere_field = domainadditional_conditions = and active='1'

加入#ee /etc/postfix/mysql/mysql_mailbox_maps.cfuser = postfixpassword = postfixdbname = postfix


上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 

table = mailboxselect_field = maildirwhere_field = usernameadditional_conditions = and active='1'

加入#ee /etc/postfix/mysql/mysql_alias_maps.cfuser = postfixpassword = postfixdbname = postfix

table = aliasselect_field = gotowhere_field = addressadditional_conditions = and active='1'

接下来开启sasl认证(为了与旧的MUA兼容所以加入broken_sasl_auth_clients的支持),在/etc/postfix/main.cf中加入:#ee /etc/postfix/main.cfsmtpd_sasl_auth_enable = yessmtpd_sasl_application_name = smtpdbroken_sasl_auth_clients = yessmtpd_sasl_local_domain = mgpc.com.cnsmtpd_recipient_restrictions= permit_sasl_authenticated permit_auth_destination reject

接下来设置alias_maps,在/etc/postfix/main.cf中加入:alias_maps = hash:/etc/postfix/aliases现在用postalias生成aliases.db# cd /etc/postfix# postalias aliases

最后就是建立/var/mailbox目录:# mkdir /var/mailbox# chown -R www:www /var/mailbox

5.8配置sasl认证

在配置postfix的时候,我们设置了postfix使用的sasl配置文件为smtpd,所以现在我们需要配置sasl让它知道怎么从MySQL中读取认证信息:

# ee /usr/local/lib/sasl2/smtpd.conf在其中加入pwcheck_method: auxpropmech_list: plain loginauxprop_plugin: sqlsql_engine: mysqlsql_hostnames: localhostsql_user: postfixsql_passwd: postfixsql_database: postfixsql_select: SELECT password FROM mailbox WHERE username='%u@%r' and domain='%r' and active='1'

上面的选项中根本字意就可以了解它的意思,其中sql_select中的%u表示是用户名,%r表示是realm,通常为用户的域名(如果用户名中没有包含域名,则默认为服务器的域名),因为postfixadmin生成的用户名是[email protected]的形式,而非标准的user形式,所以我们需要设置WHERE语句为username='%u$%r'即'用户名@域名'。

5.9配置courier-imap

要让courier-imap能够正确的读取MySQL中的认证信息,就需要配置authmysql的配置文件/usr/server/courier-imap/etc/authmysqlrc,本例中其内容如下:

# cd /usr/server/courier-imap/etc/# cp /usr/server/courier-imap/etc/authmysqlrc.dist /usr/server/courier-imap/etc/authmysqlrc# ee authmysqlrcMYSQL_SERVER localhostMYSQL_SOCKET /tmp/mysql.sockMYSQL_USERNAME postfixMYSQL_PASSWORD postfixMYSQL_DATABASE postfixMYSQL_USER_TABLE mailboxMYSQL_LOGIN_FIELD usernameMYSQL_CLEAR_PWFIELD passwordMYSQL_UID_FIELD '80'MYSQL_GID_FIELD '80'MYSQL_HOME_FIELD '/var/mailbox/'MYSQL_MAILDIR_FIELD maildirMYSQL_NAME_FIELD nameMYSQL_QUOTA_FIELD quotaMYSQL_WHERE_CLAUSE active='1'同postfix中的配置一样,/var/mailbox/最后的"/"字符不能省略。

注释掉MYSQL_CRYPT_PWFIELD

接下来配置authdaemonrc:# cp /usr/server/courier-imap/etc/authdaemonrc.dist /usr/server/courier-imap/etc/authdaemonrc

因为我们这里只使用了authmysql模块,所以我们可以把其它验证模块去掉,编辑authdaemonrc文件,将其中的:

authmodulelist="authcustom authcram authuserdb authmysql authpam"

改成:

authmodulelist="authmysql"

最后就是配置pop3d和imapd了,这里我们直接使用其默认设置:

# cp /usr/server/courier-imap/etc/pop3d.dist /usr/server/courier-imap/etc/pop3d# cp /usr/server/courier-imap/etc/pop3d-ssl.dist /usr/server/courier-imap/etc/pop3d-ssl# cp /usr/server/courier-imap/etc/imapd.dist /usr/server/courier-imap/etc/imapd# cp /usr/server/courier-imap/etc/imapd-ssl.dist /usr/server/courier-imap/etc/imapd-ssl

5.10测试系统

按以下步骤启动服务

启动MySQL

# /usr/server/mysql/share/mysql/mysql.server start

为了确保postfix以及以后的进程能够正确的搜索到libmysqlclient,在这里将mysql的lib设置到ldconfig的搜索路径中:# ldconfig -m /usr/server/mysql/lib/mysql

启动Postfix# /usr/sbin/postfix start

启动Courier-imap# /usr/server/courier-imap/libexec/authlib/authdaemond start# /usr/server/courier-imap/libexec/pop3d.rc start# /usr/server/courier-imap/libexec/imapd.rc start

首先建立一个测试用户:$ /usr/server/mysql/bin/mysql -upostfix -pmysql> use postfix;mysql> insert into domain(domain,active) values('mgpc.com.cn','1');mysql> insert into mailbox(username,password,name,maildir,domain,active) values('[email protected]','123456','TESTER','mgpc.com.cn/daifubing/Maildir/','mgpc.com.cn','1');mysql> quit;

测试postfix:$ echo "hello world" mail [email protected]


上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 

$ ls -al /var/mailboxdrwx------ 3 www www 512 Oct 16 23:15 mgpc.com.cn$ ls -al /var/mailbox/mgpc.com.cndrwx------ 3 www www 512 Oct 16 23:15 .drwxr-xr-x 7 www www 512 Oct 16 23:24 ..drwx------ 3 www www 512 Oct 16 23:15 test$ ls -al /var/mailbox/mgpc.com.cn/daifubingdrwx------ 3 www www 512 Oct 16 23:15 .drwx------ 3 www www 512 Oct 16 23:15 ..drwx------ 5 www www 512 Oct 16 23:15 Maildir$ ls -al /var/mailbox/mgpc.com.cn/daifubing/Maildirdrwx------ 5 www www 512 Oct 16 23:15 .drwx------ 3 www www 512 Oct 16 23:15 ..drwx------ 2 www www 512 Oct 16 23:15 curdrwx------ 2 www www 512 Oct 16 23:18 newdrwx------ 2 www www 512 Oct 16 23:18 tmp

上面ls反回的结果可以看到,一个名为mgpc.com.cn的目录已经被postfix建立,同时可以看到目录结构为/var/mailbox/DOMAIN.LTD/USERNAME/Maildir/,这与我们设置的完全相同。

测试SMTP认证:$ telnet localhost 25Trying 127.0.0.1...Connected to localhost.Escape character is '^]'.220 mail.mgpc.com.cn ESMTP PostfixEHLO mgpc.com.cn250-mail.mgpc.com.cn250-PIPELINING250-SIZE 10240000250-VRFY250-ETRN250-AUTH LOGIN PLAIN250-AUTH=LOGIN PLAIN250 8BITMIMEAUTH LOGIN334 VXNlcm5hbWU6输入用户名的Base64位编码334 UGFzc3dvcmQ6输入密码的Base64位编码235 Authentication sUCcessful测试中使用的用户名是[email protected]密码是123456,我们的测试成功了。

测试pop3$ telnet localhost 110Trying 127.0.0.1...Connected to localhost.Escape character is '^]'.+OK Hello there.USER [email protected]+OK Password required.PASS 123456+OK logged in.上面的提示表示我们的pop3登录也成功了。

5.11安装Apache

下载源代码包www#cd /usr/home/peng/srcwww#tar –zvxf httpd-2.0.47.tar.gzwww#cd httpd-2.0.47www#./configure --prefix=/usr/local/apache --enable-sowww#makewww#make install

5.12安装PHP

下载源代码包www#tar –zxvf php-4.4.0.tar.gzwww#cd php-4.4.0www#./configure --with-mysql=/usr/server/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --enable-pic --enable-inline-optimiation --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --with-config-file-path=/usr/local/apache/conf?www#makewww#make installwww#cp php.ini-dist /usr/local/apache/conf/php.ini


上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 

#ee /usr/local/apache/conf/httpd.conf更改httpd.conf中的user和group为www

找到DocumentRoot将路径改为/usr/local/www/加入

AddType application/x-httpd-php .phpAddType application/x-httpd-php .php3AddType application/x-httpd-php .pHtmlAddType application/x-httpd-php-source .phps

更改igenus的权限为#chown -R www:www igenus更改mailbox权限为www?#chown -R www:www / var/mailbox

5.13安装postfixadmin-2.0.5

postfixadmin可以在http://high5.net/postfixadmin处得到,下载后是一个名为postfixadmin-2.0.5.tgz的文件$ tar -zxvf postfixadmin-2.0.5.tgz$ mv postfixadmin-2.0.5 postfixadmin$ cd postfixadmin为了让postfixadmin正常工作,需要进行一些小的设置,将postfixadmin目录中的config.inc.php.sample复制为config.inc.php,然后编辑其中的参数:$ cp config.inc.php.sample config.inc.php$ vi config.inc.php本例中的配置如下:// Language config// Language files are located in './languages'.$CONF['default_language'] = 'cn';

// Database Config// 'database_type' is for future reference.$CONF['database_type'] = 'mysql';$CONF['database_host'] = 'localhost';$CONF['database_user'] = 'postfixadmin';$CONF['database_password'] = 'postfixadmin';$CONF['database_name'] = 'postfix';

$CONF['encrypt'] = 'cleartext';

// Mailboxes// If you want to store the mailboxes per domain set this to 'YES'.// Example: /usr/local/virtual/domain.tld/[email protected]$CONF['domain_path'] = 'YES';// If you don't want to have the domain in your mailbox set this to 'NO'.// Example: /usr/local/virtual/domain.tld/username$CONF['domain_in_mailbox'] = 'NO';

// Quota// When you want to enforce quota for your mailbox users set this to 'YES'.$CONF['quota'] = 'YES';$CONF['quota_multiplier'] = '1048576';

为了兼容性,所以我们在这里使用明文口令方式($CONF['encrypt']='cleartext';),邮箱的存储格式使用domain.ltd/username的形式,所以设置:$CONF['domain_path'] = 'YES';$CONF['domain_in_mailbox'] = 'NO';

按照上面的设置,在postfixadmin建立新的虚拟用户的时候,其maildir的格式为domain.ltd/username,但iGENUS是在domain.ltd/username/Maildir中进行操作,所以我们需要对postfixadmin做一点小的修改以使其与iGENUS兼容。

首先修改postfixadmin目录中的create-mailbox.php,找到该文件中的:


上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 

if ($CONF['domain_path'] == "YES"){if ($CONF['domain_in_mailbox'] == "YES"){$maildir = $fDomain . "/" . $fUsername . "/";}else{$maildir = $fDomain . "/" . $_POST['fUsername'] . "/";}}else{$maildir = $fUsername . "/";}

在其后面增加:// Compat for iGENUS$maildir .= "Maildir/";同时修改postfixadmin/admin目录中的create-mailbox.php,找到该文件中的:if ($CONF['domain_path'] == "YES"){if ($CONF['domain_in_mailbox'] == "YES"){$maildir = $fDomain . "/" . $fUsername . "/";}else{$maildir = $fDomain . "/" . $_POST['fUsername'] . "/";}}else{$maildir = $fUsername . "/";}

在其后面增加:// Compat for iGENUS$maildir .= "Maildir/";

到这里我们的postfixadmin就修改基本完成,另外,在这里我们使用了postfixadmin的中文语言包($CONF['default_language'] = 'cn';),由于这个语言包是在postfixadmin2.0.4的基础上制作的,所以在2.0.5中使用需要做一个小的修改,以使其能够正确的显示中文编码:$ vi languages/cn.lang找到该文件最前面的如下行:$PALANG['YES'] = '是';在该行前面加入:$PALANG['charset'] = 'gb2312';

保存退出,到此,postfixadmin的修改就已经全部完成,现在可以将postfixadmin这个目录复制或上传到你的web目录中了,然后打开浏览器,进入postfixadmin的管理界面http://www.yourdomain.com/postfixadmin/admin/index.php,这里就可以新建域名和管理员了(注意,通过应该先建域名,再建立管理员)。然后用新建立的管理员登录到http://www.yourdomain.com/postfixadmin/index.php中就可以建立该域的邮箱了。

5.14安装iGENUS_2.0.2

从www.igenus.org处得到igenus_2.0.2_20040901_release.tgz,将其解开:$ tar -zxvf igenus_2.0.2_20040901_release.tgz$ cd igenus

由于igenus使用了自己的表结构,所以要在postfix的基础上使用igenus的所有功能,还需要进行比较大的修改,这里我们就不再讨论,本文中我们就向大家介绍如何使用户能够登录到igenus中,并且正常的发邮件和收邮件,其它功能就不再介绍。

首先需要修改igenus的配置文件,让其它知道如何与MySQL连接:

$ cd config$ vi config_inc.php根据你的实际情况修改以下内容(配置中的中文为笔者说明):$CFG_BASEPATH = "/htdocs/mail/igenus";   //iGENUS的绝对路径

// Mysql$CFG_MYSQL_HOST = 'localhost';$CFG_MYSQL_USER = 'postfixadmin';      //因为用户需要在igenus中更改密码等,所以需要使用对数据库具有写权限的postfixadmin用户,而非拥有只读权限的postfix用户$CFG_MYSQL_PASS = 'postfix';$CFG_MYSQL_DB = 'postfix';

// Temp Directory for maildir listing,mail body decodeing etc.$CFG_TEMP = $CFG_BASEPATH."/temp";     //这里我们将igenus的临时目录设置为igenus安装目录下的temp目录

现在需要建立temp文件夹,并使其可被web服务器的用户读写: $ mkdir igenus/temp$ chmod 777 igenus/temp

同时要使igenus使用Postfixadmin的表结构,我们需要修改igenus目录中的login.php文件,以使用户能够正常登录。$ vi login.php修改其中的:$query = "SELECT * FROM vpopmail WHERE pw_name='$Post_name' and pw_domain='$Post_domain'";为:$query = "SELECT * FROM mailbox WHERE username='$Post_name@$Post_domain' and active='1'";将:$home = $data['pw_dir'];$Post_passwd2 = $data['pw_passwd'];$pw_id = $data['pw_id'];$pw_shell = $data['pw_shell'];$pw_gecos = $data['pw_gecos'];$pw_gid = $data['pw_gid'];$pw_domain = strtolower($data['pw_domain']);$pw_name = strtolower($data['pw_name']);修改为:$home = "/var/mail/" . $data['maildir'] . "../";$Post_passwd2 = $data['password'];$pw_shell = $data['quota'];$pw_gecos = $data['name'];$pw_domain = strtolower($data['domain']);$pw_name = strtolower($data['username']);其中$home = "/var/mail/" . $data['maildir'] . "../";是告诉iGENUS邮件存储的路径,"/var/mail/"为我们的邮件存放目录,同时因为iGENUS进行读写邮件时会在$home变量后面加上字符串"Maildir/",但我们的MySQL数据表mailbox中的maildir字段中已经包含"Maildir/",所以为了让iGENUS得到正确的路径,我们在最后加上了字符串"../"

修改:if ($pw_gid & 0x04){PutLogs($pw_id, 'login', "no priv to login","$Post_name@$Post_domain", $sql);ErrorExit(-2); // 用户无权登录}

if ($home !="" && ($Post_passwd2 == crypt($Post_passwd,$Post_passwd2))){为:if ($pw_gid & 0x04){PutLogs($pw_id, 'login', "no priv to login","$Post_name@$Post_domain", $sql);ErrorExit(-2); // 用户无权登录}

if ($home !="" && ($Post_passwd2 == $Post_passwd)){

注释或者删除:$_SESSION['G_ID'] = $pw_id;

在提示的地方将mysql_fetch_object()改成@mysql_fetch_object()即可


上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 

1、也就是在mailbox.php的253和274行2、在add2addr.php的94和109行(通讯录)3、在pubaddr.php的第65和85行(通讯录中的公共)4、在address.php的第59和73行(通讯录中的个人)5、在personal.php的第82行(系统设置的个人资料)6、在card.php的第162\179行(名片夹)7、在stow.php的第119\138行(收藏夹)8、在message.php的第106\126行(内部通知)

在以下的PHP文件中将$OUT['EMAIL']= "$SG_USERNAME@$SG_DOMAIN";更改成:$OUT['EMAIL']=$SG_USERNAME";mailbox.php、logo.php、file.php、forword.php、list.php、message.php、reply.php、scheduler.php、send.php、sendagain.php、sendmail.php里面的setfrom行、sendok.php、writeagain.php、personal.php 、设置网络硬盘路径可以修改igenus/config下的config_inc.php中的$CFG_NETDISK_PATH = "/home/netdisk";#mkdir /home/netdisk#chmod –R www:www? /home/netdisk请改成你这节的路径比如:$CFG_NETDISK_PATH = " /var/netdisk";前提是你必须有这个目录

5.15安装phpmyadmin

#tar –zxvf phpmyadmin2.0.6.tar.gz#mv phpmyadmin2.0.6.tar.gz /usr/local/www/

5.16导入IGENUS的数据表

编辑igenus下的docs目录里的iGENUS.sql文件,删除# --------------------------------------------------------## Table structure for table `address`#CREATE TABLE `address` (`id` int(11) unsigned NOT NULL auto_increment,`pw_id` int(5) NOT NULL default '0',`name` varchar(64) NOT NULL default '',`email` varchar(128) NOT NULL default '',UNIQUE KEY `id` (`id`),KEY `pw_id` (`pw_id`)) TYPE=MyISAM PACK_KEYS=1 ;

# --------------------------------------------------------## Table structure for table `vpopmail`#CREATE TABLE `vpopmail` (`pw_id` int(5) unsigned NOT NULL auto_increment,`pw_name` varchar(32) NOT NULL default '',`pw_domain` varchar(64) NOT NULL default '',`pw_passwd` varchar(40) NOT NULL default '',`pw_uid` int(11) default NULL,`pw_gid` int(11) default NULL,`pw_gecos` varchar(48) default NULL,`pw_dir` varchar(255) default NULL,`pw_shell` varchar(20) default NULL,`createtime` timestamp(14) NOT NULL,PRIMARY KEY? (`pw_id`),KEY `pw_name` (`pw_name`,`pw_domain`)) TYPE=MyISAM PACK_KEYS=1 ;

打开浏览器输入http://你的IP地址/phpmyadmin/登陆后,选择postfix>sql>浏览(找到iGENUS.sql)>执行

5.17设置自动启动


上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 

#ee /etc/rc.local加入/usr/server/mysql/share/mysql/mysql.server startldconfig -m /usr/server/mysql/lib/mysql/usr/sbin/postfix start/usr/server/courier-imap/libexec/authlib/authdaemond start/usr/server/courier-imap/libexec/pop3d.rc start/usr/server/courier-imap/libexec/imapd.rc start/usr/local/apache/bin/apachectl start重新启动计算机#reboot

5.18管理邮箱和登陆WEB邮箱

在浏览器中输入http://你的IP地址或域名/postfixadmin/admin/

在这里您可以进行开设邮箱等操作在浏览器中输入http://你的IP地址或域名/igenus/出现下图

登陆后如下图所示:

(出处:http://www.sheup.com)


上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9]