分享
 
 
 

qmail的安装for FreeBSD(指令版)

王朝system·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

step1:Qmail

cd /usr/ports/mail/qmail

make install

make disable-sendmail

make enable-qmail

ee /var/qmail/rc

env env - PATH="/var/qmail/bin:/usr/local/bin" qmail-start ./Maildir/

chmod +x /var/qmail/rc

/var/qmail/configure/config-fast 5aaa.com

step2:MySQL

cd /usr/ports/databases/mysql41-server

make install

reboot

mysqladmin create vpopmail

mysql

use mysql;

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,FILE,INDEX,ALTER,SHOW DATABASES,CREATE TEMPORARY TABLES,LOCK TABLES ON *.* TO vpopmail@"localhost" IDENTIFIED BY "vpopmail" WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0;

FLUSH PRIVILEGES;

step3:vpopmail

cd /usr/ports/mail/vpopmail

make WITH_MYSQL=yes WITH_MYSQL_SERVER=localhost WITH_MYSQL_USER=vpopmail WITH_MYSQL_PASSWD=vpopmail WITH_MYSQL_DB=vpopmail WITH_MYSQL_LIMITS=yes install

ee /usr/local/vpopmail/etc/vpopmail.mysql

host|port|user|password|database

host|port|user|password|database

cd /usr/local/vpopmail/bin

./vadddomain 5aaa.com

./vadduser demo@5aaa.com

step4:QmailAdmin

cd /usr/ports/mail/qmailadmin

make install

step5:daemontools

cd /usr/ports/sysutils/daemontools

make install

mkdir -p /var/log/qmail/qmail-smtpd

mkdir -p /var/log/qmail/qmail-pop3d

mkdir -p /var/log/qmail/qmail-send

chmod -R 755 /var/log/qmail

chown -R qmaill:wheel /var/log/qmail

mkdir /service

chmod 755 /service

cp supervise /var/qmail/

chmod -R 755 /var/qmail/supervise

chmod +t /var/qmail/supervise/*

ln -s /var/qmail/supervise/* /service/

rm qmail.sh

vi qmail.sh

chmod +x /usr/local/etc/rc.d/qmail.sh

step6:apache+php

cd /usr/ports/www/apache2

make install

tar -zxvf php-4.3.9.tar.gz

cd php-4.3.9

./configure --prefix=/usr/local/php4 --with-apxs2=/usr/local/sbin/apxs --with-mysql=/usr/local

make install

ee /usr/local/etc/apache2/httpd.conf

AddType application/x-httpd-php .php

DirectoryIndex index.php index.html

User vpopmail

Group vchkpw

step7:igenus

mkdir /tmp/igenus

cd /tmp

chmod -R 0755 igenus

chown -R vpopmail:vchkpw igenus

ee /path/to/apache/igenus/config/config_inc.php

$CFG_BASEPATH = "/path/to/igenus";

$CFG_MYSQL_HOST = 'localhost';

$CFG_MYSQL_USER = 'vpopmail';

$CFG_MYSQL_PASS = 'vpopmail';

$CFG_MYSQL_DB = 'vpopmail';

$CFG_TEMP = "/tmp/igenus";

/usr/local/vpopmail/bin/vdeldomain olddomain.com

mysql -u root -p use vpopmail

drop table vpopmail;

drop table lastauth;

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 ;

CREATE TABLE `admin` ( `id` int(10) unsigned NOT NULL auto_increment, `site_id` int(10) unsigned NOT NULL default '0', `domain` varchar(128) NOT NULL default '', `quota` smallint(5) unsigned NOT NULL default '0', `total` smallint(5) unsigned NOT NULL default '0', `createtime` timestamp(14) NOT NULL, `login` char(1) NOT NULL default '', `cur_total` smallint(5) NOT NULL default '0', `cur_quota` smallint(5) NOT NULL default '0', `gid` varchar(11) NOT NULL default '', `expiration_time` timestamp(14) NOT NULL, `flag` int(10) unsigned NOT NULL default '0', `maxmsg` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `domain` (`domain`)) TYPE=MyISAM PACK_KEYS=1 ;

CREATE TABLE `card` ( `id` int(5) unsigned NOT NULL auto_increment, `pw_id` int(5) unsigned NOT NULL default '0', `LinkMan` varchar(64) NOT NULL default '', `CompanyName` varchar(100) NOT NULL default '', `Address` varchar(255) NOT NULL default '', `Position` varchar(32) NOT NULL default '', `PhoneNumber` varchar(16) NOT NULL default '', `Mobile` varchar(12) NOT NULL default '', `Email` varchar(128) NOT NULL default '', `Partaker` varchar(32) NOT NULL default '', `Memo` varchar(255) NOT NULL default '', PRIMARY KEY (`id`)) TYPE=MyISAM ;

CREATE TABLE `lastauth` ( `user` char(32) NOT NULL default '', `domain` char(64) NOT NULL default '', `remote_ip` char(18) NOT NULL default '', `timestamp` bigint(20) NOT NULL default '0', PRIMARY KEY (`user`,`domain`)) TYPE=MyISAM;

CREATE TABLE `logs` ( `pw_id` int(5) default '0', `ip` varchar(15) NOT NULL default '', `action` varchar(15) NOT NULL default '', `time` datetime default NULL, `content` varchar(64) NOT NULL default '', `email` varchar(128) NOT NULL default '') TYPE=MyISAM;

CREATE TABLE `message` ( `id` int(5) unsigned NOT NULL auto_increment, `title` varchar(255) NOT NULL default '', `body` text NOT NULL, `createtime` datetime NOT NULL default '0000-00-00 00:00:00', `updatetime` datetime NOT NULL default '0000-00-00 00:00:00', `pw_domain` varchar(64) NOT NULL default '', UNIQUE KEY `id` (`id`)) TYPE=MyISAM ;

CREATE TABLE `personal` ( `id` int(11) unsigned NOT NULL auto_increment, `pw_id` int(5) NOT NULL default '0', `truename` varchar(10) NOT NULL default '', `fax` varchar(20) NOT NULL default '', `telephone` varchar(15) NOT NULL default '', `sex` int(1) NOT NULL default '0', `year` int(4) NOT NULL default '0', `MONTH` int(2) NOT NULL default '0', `DAY` int(2) NOT NULL default '0', `education` varchar(4) NOT NULL default '', `marital` int(1) NOT NULL default '0', `occupation` varchar(15) NOT NULL default '', `companyname` varchar(30) NOT NULL default '', `province` varchar(6) NOT NULL default '', PRIMARY KEY (`id`)) TYPE=MyISAM PACK_KEYS=1 ;

CREATE TABLE `scheduler` ( `id` int(11) unsigned NOT NULL auto_increment, `begin_time` int(11) unsigned default NULL, `end_time` int(11) unsigned default NULL, `title` varchar(255) NOT NULL default '', `body` varchar(255) NOT NULL default '', `pw_id` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`id`)) TYPE=MyISAM ;

CREATE TABLE `stow` ( `id` int(5) unsigned NOT NULL auto_increment, `pw_id` int(5) unsigned NOT NULL default '0', `Name` varchar(128) NOT NULL default '', `http` varchar(255) NOT NULL default 'http://', `memo` varchar(255) NOT NULL default '', PRIMARY KEY (`id`)) TYPE=MyISAM ;

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 ;

ee /usr/local/php4/lib/php.ini

max_execution_time=60

memory_limit=20M

post_max_filesize=10M

file_uploads=on

upload_max_filesize=10M

register_globals=On

session.bug_compat_42=0

session.bug_compat_warn=0

Sendmail = /var/qmail/bin/qmail-inject

#cd /usr/ports/mail/sqwebmail

#make WITH_VCHKPW=YES WITH_ISPELL=YES install

根据提示:

#make configure

#make clean

#ee /etc/crontab

增加以下:

40 * * * * root /usr/local/share/sqwebmail/cleancache.pl

#cd /usr/local/share/sqwebmail/

#cp authdaemonrc.dist authdaemonrc

#/usr/local/libexec/sqwebmail/authlib/authdaemon start

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有