(B) qmail vpopmail mysql qmailadmin ezmlm igenus installation of: peng Forum ID: peng www.chinaunix.net QQ: crab 16,360,544 2.1 functions implemented by installing, build a complete mail mail server. It uses QMAIL to implement POP3 services and virtual mail domains with VPopmail. Use mysql to access user information and authentication. Use qmailadmin to make easily managed by web form, with EZMLM to implement MYSQL-based large-capacity mailing list feature. Implement Webmail functionality via IGENUS. 2.2 Host System I use the RedHat8.0 system, on a Kangbo's PC Server. When installing, select the Custom mode. Other systems I have not done, it should be supportable, specific to the README file in the corresponding package, the supported host system is detailed. If there is time, I will install it on the Solaris for SPARE. 2.3 Software for the software package used, because I have used Iceblood packages, where the files about qmailadmin Chinese are taken from his qmail-setup.1.53.tar.gz. If you use other files in its package, you must carefully check the configuration file, and many default installation paths have been changed. I suggest you go to the relevant website to find it, I have done it in the previous chapter. MySQL I use the system's RPM package installation, or you can compile your own code. HTTPD-2.0.40.tar.gz php4-200303121030.tar.gz qmail-1.03.tar.gz qmail-103.tar.gz ezmlm-0.53.tar.gz ezmlm-idx.0.40. Tar.gz AutoRespond-2.0.0.tar.gz vpopmail-5.2.tar.gz qmailadmin-0.80.tar.gz iGenus_2_20030311.tgz qmail-setup.1.53.tar.gz EN-US --- QMAILADMIN Hanhua file All of the above file packs are uploaded to the / home / Software directory 2.4 Pre-installation system setting mysql management username: root password: mysql2003 qmail installation settings: chinaUnix.net vpopmail installation settings Default domain management password: 12345 ezmlm mysql Manage users: ezmlm password: ezmlm Database Name: EZMLM 2.5 Muffs Mysql Run on the second disk: # rpm -ivh mysql * Start MySQL Server: # /etc/rc.d/init.d/mysqld Start Set the mysql root password : # Mysqladmin -u root -p password mysql2003 Enter Passwod: (Note: When I install the system, I have selected all the packages installed in MySQL, so there is no connection relationship when I install MySQL.
When there is a joint relationship, you can install in X-Windows mode. The system can be solved, and I forgot the RPM parameter of the Command mode.) 2.6 Apache # CD / Home / Software / # tar -zxvf httpd-2.0.40.tar. GZ # cd httpd-2.0.40 # ./configure --prefix = / var / www --enable-modules = SO # make # make install 2.7 installation php # cd / home / software # tar -zxvf php4-200303121030.tar .gz # cd php4-200303121030 # ./configure --with-mysql --with-apxs2 = / var / www / bin / apxs # make # make install # cp php.ini-dist / usr / local / lib / php .ini 2.8 qmail-1.03 (with authentication) Add users and groups: # mkdir -p / var / qmail # GroupAdd Nofiles # useradd -g nofiles -d / var / qmail / alias # useradd -g noFiles -d / VAR / QMAIL qmails -d / var / qmail qmail # useradd -g nofiles -d / var / qmail qmailp # groupadd qmail # useradd -g qmail -d / var / qmail qmailq # useradd -g qmail -d / var / qmail qmailr # useradd -g qmail -d / var / qmail qmails # cd / home / software # tar xzvf qmail-1.03.tar.gz # patch # cd qmail-1.03 # make Setup Check # ./config-fast chinaunix.net # cd / var / qmail / alias # touch .qmail-postmaster .qmail -mailer-daemon .qmail-root # chmod 644 /var/qmail/Alias/.qmail* # cp / var / qmail / boot / home / var / qmail / rc # chmod 755 / var / qmail / rc # ln -s / var / qmail / bin / sendmail / usr / lib / sendmail # ln -s / varl / qmail / bin / sendmail / usr / sbin / sendmail) # vi / var / qmail / rc modified where ./mailbox is ./maildir / # mkdir / etc / qmail # twouch / etc / qmail / start # echo "csh -cf '/ var / qmail / rc &'"> / etc / qmail / start # echo "/etc/qmail/smtp.sh" >> / etc / qmail / start 2.8 Install UCSPI-TCP # CD / Home / Software # TAR ZXVF UCSPI-TCP-0.88.tar.gz # CD UCSPI-TCP-0.88 # make # make setup check # Touch / etc / qmail /smtp.sh # echo "
/ usr / local / bin / tcpserver -h -r -l chinaunix.net -t 1 -C 100 -V -P -X / ETC / qmail / tcp.smtp.cdb -u 502 -g 501 0 SMTP / VAR / QMail / bin / qmail-smtpd / home / vpopmail / bin / vchkpw / bin / true | / var / qmail / bin / splogger & "> /etc/qmail/smtp.sh (Note: 502 and 501) QmAild's value of Nofiles's UID AND GID.) # chmod 755 /etc/qmail/smtp.sh # touch /et /etc/qmail/tcp.smtp # echo "127.0.0.1 :Allow ,ylayclient="/"/"> / ETC / QMAIL / TCP.SMTP Echo ": allow" /etc/qmail/tcp.smtp # / usr / local / bin / tcprules /etc/qmail/tcp.smtp.cdb /etc/qmail/tcp.smtp. TMP > /etc/rc.d/rc.locad 2.9 Install vpopmail # GroupAdd vchkpw # UserAdd -g vchkpw -d / home / vpopmail vpopmail [Description: 4.9.10 can also pass SMTP authentication, 4.10.26 certification failed and has a series of issues, not recommended. If you do not integrate with MySQL database, do not modify the vmysql.h file, and remove ./configure Related options # tar vpopmail-5.2.tar.gz # cd vpopmail-5.2 # vi vmysql.h According to your MySQL settings, change the following configuration #define mysql_server "localhost" #define mysql_user "root" #define mysql_parsswd "mysql2003" #define mysql_server "localhost" #define mysql_user "root" #define M YSQL_Passwd "mysql2003" # ./configure --enable-default-domain = chinaunix.net --enable-passwd = n / --enable-tcprules-prop = / usr / local / bin / tcprules / --enable-ip Alias-domains = n / --enable-defaultquota = n / --enable-sqwebmail-pass = y / --enable-roaming-user = n / --enable-mysql = y / --enable-indIR = / usr / include / mysql / --enable-libdir = / usr / lib / mysql # make # make install-strip # chmod 6755 / home / vpopmail / bin / vchkpw (Note: I use -enable-defaultquota = n, You have to set the mailbox with vsetuserquota; you can use --Nable-defaultquota = 10500000 default is 10m.
) # Echo "TCPSERVER-C 100 -V -L chinaunix.net---h -r 0 pop3 / var / qmail / bin / qmail-popup chinaUnix.net / Home / vpopmail / bin / vchkpw / var / qmail / bin / qmail-pop3d maildir 2> & 1 | / var / qmail / bin / splogger & "/ /etc/qmail/pop.sh # chmod 755 /etc/qmail/pop.sh # echo" /etc/qmail/pop.sh ">> / etc / qmail / start add field: # / home / vpopmail / bin / vadddomain Chinaunix.net (Enter two free password) Add users: # / home / vpopmail / vadduser peng@chinaunix.net 2.10 ZMLM And ezmlm-idx with mysql support! Note: In order to enable Mailist's MySQL support, you must first: establish mysql management users: (ex: user: ezmlm, pass: ezmlm) # mysql -u root -pmysql2003> use mysql;> insert INTO User Values ('localhost', 'ezmlm', ',' y ',' y ',' y ',' y ',' y ',' y ',' Y ',' Y ',' Y ' , 'Y', 'Y', 'Y', 'Y', 'Y');> Update User Set Password = Password ('ezmlm') Where user = 'ezmlm';> flush privileges;> exit; : (EX: DATABASE: EZMLM) # mysqladmin -u root -pxxxxx create ezmlm ezmlm-idx contains a correction and supplement to EZMLM, they are a whole.
#CD / Home / Software # tar -zxvf ezmlm-0.53.tar.gz # tar -zxvf ezmlm-idx.0.40.tar.gz # mv eZMLM-IDX-0.40 / * ezmlm-0.53 / # cd eZMLM-0.53 # patch $ Cfg_mysql_pass = 'mysql2003'; $ cfg_mysql_pass ----- is the password of the MySQL server, fill in the $ cfg_language = GB according to your actual, $ cfg_language ----- is the system's default language, there can be optional in Chinese and English. $ Cfg_gmt = 8; // GMT Time Local $ cfg_gmt ---- is the time zone setting, China chooses 8. $ Cfg_temp = $ cfg_basepath. "/../ Temp"; $ cfg_temp ---- The position of the temporary file. 3, modify the settings of the default login domain, edit Login.php, find the following characters, set your default mail host address, you can set multiple. Of course, it is not changed, it is slightly this step. # vi /var/www/igenus/login.php @ ---- Remove @ The sentence, changed to the following: Change the settings of PHP: # vi /usr/local/lib/php.ini register_global = OFF Change to: register_global = ON Send attachment size setting: UPLOAD_MAX_FILESIZE = 10M --- Default is 2M vi iGenus / language / gb_inc.php file As: $ lang_sendform_attach_mesg = "Please note that the size of the file should not exceed 1MB, otherwise the system can not receive correctly; if the attachment exceeds 1MB, please send a letter through Foxmail or Outlook!"; // $ lang_sendform_attach_mesg = "Please note that the size of the file should not exceed 10MB Otherwise, the system can not receive it correctly! "; Change the mysql database: # mysql -uroot -pmysql2003 Create a Address table in MySQL, the specific table structure is as follows: # u v v 帖子 u c c c 的 c a INT (5) Unsigned 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)); Modify Original vpopmail the table, as follows: use vpopmail; alter table vpopmail drop primary key; alter table vpopmail add column pw_id int (5) NOT NULL primary key auto_increment; (Note: adding address table, because the personal address book to be used in igenus Add PW_ID because iGenus uses it to identify the uniqueness of the user, but vpopmail uses PW_UID) 2.13 Installing QMAILADMIN-0.80 first confirm before installation: You have already installed vpopmail, and use vchkpw. Ezmlm is installed. Do you have installed AutoRespond. Confirm that the above work has been completed, you can start installing qmailadmin. # CD / home / Software # tar zxvf qmail-setup.1.5.3.tar.gz # tar xvzf qmailadmin-1.0.6.tar.gz # cd qmailadmin-1.0.6 # cp iceblood / en-us qmailadmin-1.0. 6 / HTML / EN # cp iceblood / en-us qmailadmin-1.0.6 / html / en-us (Note: Two steps above, is for Chinese QMAILADMIN, using Iceblood's qmail-setup Chinese file.) # CD qmailadmin- 1.0.6 #. / Configure --Nable-cgibindir = / var / www / cig-bin --enable-htmldir = / var / www / imeenus # make # make install-strip 2. .14 Test now, restart your host system, you can set up your Outlook or Foxmail. Accept the email. You can also access your Mail system via Webmail.