[Friends' article] QMAIL installation Daquan (Directive Version)

xiaoxiao2021-03-06  66

/ * Description: There are many articles on the Internet to install qmail. There are many incomplete, or if it is not in line with it. Today, this article spent two months of studying things. Testing many times, can be said to be very Classic things, I am particularly issued here, I hope to have a friend who installed and explored QMail! In addition, follow-up to two online best articles to everyone, I hope everyone can learn to install! By heiyeluren * / step1: qmail

CD / USR / PORTS / MAIL / QMAILMAKE Installmake Disable-sendmailmake enable-qmail

EE / VAR / QMAIL / RC // Edit the RC file, if there is no existence, it will be created, write the following two lines of content into the ENV ENV - Path = "/ var / qmail / bin: / usr / local / bin" / qmail- Start ./maildir/

CHMOD X / VAR / QMAIL / RC

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

Step2: mysql

CD / USR / PORTS / DATABASES / MYSQL41-ServerMake Install

Reboot

mysqladmin create vpopmailmysqluse 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 / vpopmailmake 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 | DatabaseHost | Port | User | Password | DATABASE

Cd /usr/local/vpopmail/bin./vadddomain 5aa.com./vadduser demo@5aaa.com

Step4: qmailadmin

CD / USR / ports / mail / qmailadminmake install

Step5: daemontools

CD / USR / ports / sysutils / daemontoolsmake install

Mkdir -P / var / log / qmail / qmail-smtpdmkdir -p / var / log / qmail / qmail-pop3dmkdir -p / var / log / qmail / qmail-send

CHMOD -R 755 / VAR / log / qmailchown -r qmaill: Wheel / Var / log / qmail

MKDIR / ServicechMod 755 / Service

CP Supervise / VAR / QMAIL / / / Note, supervise here is a lot of files in many directories, omitted here.

CHMOD -R 755 / VAR / QMAIL / SuperVisechMod T / VAR / QMAIL / SuperVise / * ln -s / var / qmail / supervise / * / service // Note, here * there is a space

RM qmail.sh // Delete the original qmail.sh, under the /usr/local/tc/rc.d directory, then create a vi qmail.sh

CHMOD X /USR /LOCAL/EtC/rc.d/qmail.sh

Step6: Apache PHP

CD / USR / PORTS / WWW / APACHE2MAKE INSTALL

TAR -ZXVF PHP-4.3.9.TAR.GZCD php-4.3.9./configure --prefix = / usr / local / php4 --with-apxs2 = / usr / local / sbin / apxs --with-mysql = / usr / localmake install

EE /USR / LOCAL/etc/apache2/httpd.conf // Modify the following contents in httpd.conf AddType Application / X-httpd-php .phpdirectoryIndex Index.php Index.htmluser vpopmailgroup vchkpw

Step7: iGenus

MKDIR / TMP / IGENUSCD / TMP chmod -r 0755 igenuschown -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 / icnus"; // Note, find this content carefully in the configuration file, don't build it yourself, otherwise you can't run

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

mysql -u root -puse vpopmaildrop 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` (`D OMAIN`)) 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' ',` partker` 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`s (` 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',` trueename` 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` Varcha R (255) Not null default 'http: //', `Memo` VARCHAR (255) Not null default ' 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; // The above SQL please request a section order execution to ";" // end SQLee /usr/local/php4/lib/php.ini php.ini configured in a following max_execution_time = 60memory_limit = 20Mpost_max_filesize = 10Mfile_uploads = onupload_max_filesize = 10Mregister_globals = Onsession.bug_compat_42 = 0session.bug_compat_warn = 0sendmail_path = / var / qmail / bin / qmail-incject

// The following is debugging information #CD ​​/ usr / ports / mail / sqwebmail # made with_vchkpw = yes with_ispell = yes install According to the prompt: #make configure # make Clean # EE / etc / crontab Add: 40 * * * Root /usr/local/share/sqwebmail/cleancache.pl

#CD / usr / local / share / sqwebmail / # cp authdaemonrc.dist authdaemonrc # / usr / local / libexec / sqwebmail / authlib / authdaemon start

转载请注明原文地址:https://www.9cbs.com/read-89514.html

New Post(0)