The first paste establishes a complete mail system revision on Rhas3.0
Rhas3.0 Qmail MySQL SMTP VPOPMAIL IGENUS QMAILADMIN 1, installation instructions.
In order to facilitate installing I selected apache, php, mysql when installing redhat3.0, Note MySQL-Devel development package must be installed, second, install UCSPI-TCP-0.88 1. This is due to redhat 3.0 (including redhat 9.0) The Glibc version has a problem, you must have the following software and patches to compile http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz http://qmail.te8.com/rpms/ Glibc-2.3 .... a_record.patch http://qmail.te8.com/rpms/glibc-2.3....88.Rrno.patch http://qmail.te8.com/rpms/glibc-2.3. ..88.NOBASE.PATCH 2. Install UCSPI-TCP-0.88 (TCPSEVER Service Server) #TAR ZXVF UCSPI-TCP-0.88.tar.gz #CD UCSPI-TCP-0.88 #Patch -p1 <../ucspi-tcp -0.88.a_record.patch #patch -p1 <../ucspi-tcp-0.88.rrno.patches #patch -p1 <../ucspi-tcp-0.88.nobase.patch #make #make setup check 3, install qmail (qmail basic system) 1. The software and patch http://cr.yp.to/software/qmail-1.03.tar.gz http://www.ckdhr.com/ckd/qmail-103.patch http: //www.qmail.org/qmailqueue-patch http://www.shupp.org/patches/qmail-maildir .patch http://qmail.te8.com/rpms/glibc-2.3....03.ERRNO .patch http://qmail.te8.com/rpms/glibc-2.3...ail_local.patch http://members.elysium.pl/brush/qma...uth-0.31.tar.gz 2. Establish a directory # mkdir / var / qmail # MKDIR / VAR / QM AIL / Alias 3. Construction group and users # groupadd nofiles # groupadd qmail # Useradd alias -g nofiles -d / var / qmail / alias -s / nonexistent # useradd qmails -g nofiles -d / var / qmail -s / nonexistent # UserAdd qmaill -g nofiles -d / var / qmail -s / nonexistent # useradd qmailp -g nofiles -d / var / qmail -s / nonexistent # useradd qmailq -g qmail -d / var / qmail -s / nonexistent # useradd qmailr -g qmail -d / var / qmail -s / nonexistent # useradd qmails -g qmail -d / var / qmail -s / nonexistent 4. Patch and finished installation qmail #tar zxvf qmail-1.03.tar.gz #tar ZXVF qmail-smtpd-auth-0.31.tar.gz #cp qmail-smtpd-auth-0.31 / base64. * qmail-1.03 #patch -d qmail-1.03 ../qmailqueue-patch #patch -p1 <../qmail-mails -p1 <../qmail-1.03.rrno.Patch #patch -p1 <../qmail-1.03.qmail_local.patch # Vi qmail-smtpd.c Change the 451 in the function streynewline to 553 #make setup check #. / config-fast domain.com 5. Add alias users # Touch /var/qmail/alias/.qmail-root # touch / var /Qmail/alias/.qmail-postmaster # touch /var/qmail/alias/.qmail-mailer-daemon 6. If postfix and sendmail are present, they deactivate them. # / etc / rc.d / init.d / sendmail stop #cp / var / qmail / bin / sendmail /usr/sbin/qmail.sendmail #RM -F / ETC / Alternatives / MTA #LN-S / USR / SBIN / qmail.sendmail / etc / alternatives / MTA #RM -F / USR / lib / sendmail #RM -F / USR / SBIN / SENDMAIL #LN -S / VAR / QMAIL / BIN / Sendmail / USR / lib / sendmail #LN -S / var / qmail / bin / sendmail / usr / sbin / usr / sbin / sendmail 4, install vpopmail (virtual domain user POP3 support) 1. Download vpopmail http://www.inter7.com/ Vpopmail / vpopmail-5.2.1.tar.gz 2. Creating a directory #mkdir / home / vpopmail #mkdir / home / vpopmail / etc 3. Add User and Group # GroupAdd vchkpw #useradd -g vchkpw vpopmail 4. Add mysql vpopmail User, used to operate the vpopmail database #mysqladmin -u root password **** Set the mysql root password. #mysql -u root -p mysql> create database vpopmail; mysql> grant all on vpopmail. * to vpopmail @ localhost iDentified by "password"; 5. Compilation installation vpopmail-5.2.1.tar.gz #CD vpopmail-5.2.1 #vi vmysql.h =========================== VMysql.h ========== ==================== #Define mysql_update_server "localhost" #define mysql_update_user "vpopmail" #define mysql_update_passwd "****" (changed to your password) # Define mysql_read_server "localhost" #define mysql_read_user "vpopmail" #define mySQL_Read_passwd "****" (changed to your password) ===================== =========================================== 6. Create TCP.SMTP (establish SMTP Access Control File) # Vi /Home/vpopmail/tc/tcp.smtp ==================== ts. ========================================== ============ 127.0.0.1: ALLOW ============================ =============================== == #CD / home / vpopmail / etc #tcprules tcp.smtp.cdb tcp.smtp.tmp ==================== #vi / var / qmail / SMTP ==================== SMTP == ====================== #! / bin / sh qmails = qmails / usr / local / bin / tcpserver -h -r -l 0 - T 1 -V -P -X /HOME/vpopmail/tc/tcp.smtp.cdb -u $ qmailduid -g $ nofilesgid 0 SMTP / VAR / QMAIL / BIN / qmail-smtpd domain.com / Home / vpopmail / bin / vchkpw / bin / true / bin / cmd5checkpw / bin / true 2> & 1 | / var / qmail / bin / splogger smtpd 3 & ==================== SMTP == ========================== #vi / var / qmail / pop3 // Edit POP3 service startup script ======== ============== POP3 ========================== #! / bin / sm / usr / local / bin / tcpserver -h -r 0 pop3 / var / qmail / bin / qmail-popup domain.com / home / vpopmail / bin / vchkpw / var / qmail / bin / qmail-pop3d maildir & ======= ================ Pop3 ============================== #CHMOD 755 / VAR / QMAIL / RC #CHMOD 755 / VAR / QMAIL / SMTP #CHMOD 755 / VAR / QMAIL / POP3 Seven, run qmail and test # / var / qmail / rc # / var / qmail / smtp # / var / qmail / pop3 #ps AUX | GREP "qmail" View Whether Pop3 and SMTP work # telnet 192.168.0.1 110 # Telnet 192.168.0.1 25 Note When setting up a mail account in Outlook, you should add a domain name, such as LLZQQ @ Domain.com. If Qmail has a problem, you can view the vpopmail database in MySQL, the MySQLD and Mailog logging under / var / log. 8. Install and run IGENUS (IGENUS is just a webmail interface, you need to use qmail vpopmail mysql) 1. Download the latest installation package: IGENUS_2_20030516_Snap.tgz #tar zxvf IGENUS_2_20030516_Snap.tgz -c / var / www / html 2. Construction Temp folder #CD / VAR / WWW / HTML / IGENUS #MKDIR TEMP #CHMOD -R 0755 Temp #Chown -r vpopmail: vchkpw Temp Set permissions in httpd.conf Does not allow access to the TEMP directory. Deny from all 3. Modify httpd.conf #vi /etc/httpd/conf/httpd.conf User apache group apache modified to: User Vpopmail Group vchkpw Add this: adddefaultcharset GB2312 # / etc / rc.d / init .d / httpd restart 4. Solve individual mailbox reject mail issues (such as Sina) modified mail signature information #vi /var/www/html/igenus/config/config_inc.php $ cfg_basepath = "/ var / www / html / igenus "; $ CFG_MYSQL_HOST = 'localhost'; $ CFG_MYSQL_USER = 'vpopmail'; $ CFG_MYSQL_PASS = '******'; change your password $ CFG_MYSQL_DB = 'vpopmail'; $ CFG_TEMP = $ CFG_BASEPATh." / Temp "; Delete" IGENUS IS A Free Webmail Interface, No Fee, Free Download "modified to http://www.igenus.org http://domain.com #vi / var / qmail / control / helohost =============== ====================== Domain.com ============= ==== HeloHost ==================== #CHMOD 755 / VAR / QMAIL / Control / HeloHost If you use the mail server is Postfix, POSTCONF -E "SMTP_HELO_NAME = My mail server domain name (A Record)" If you use the mail server is sendmail, it is dealt with. Letter problem # rm -f / usr / sbin / sendmail # ln -s / var / qmail / bin / sendmail If you use QMAILADMIN to manage mailboxes to enter QMAILADMIN -> Main menu "mail account "-> set no default catch all account is OK. At this time, the CATCHALL above the web page should be displayed as bounced. 6. Modify config_inc.php file # cd / var / www / html / iGenus / config # vi config_inc.php =============== CONFIG_INC.PHP ======== ============ $ cfg_basepath = "/ var / www / html / icnus"; $ cfg_mysql_host = 'localhost'; $ cfg_mysql_user = 'vpopmail'; $ cfg_mysql_pass = '****'; This is changed here to your password $ cfg_mysql_db = 'vpopmail'; $ cfg_temp = $ cfg_basepath. "/ Temp"; ========================= ==================== 7. Reproduction MySQL Database Table # Mysql -u root -p mysql> Use vpopmail; mysql> alter table; mysql> alter table vpopmail add column pw_id int (5) NOT NULL primary key auto_increment; mysql> create table address (id int (11) unsigned NOT NULL auto_increment, pw_id 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)) TYPE = MyISAM; 8. Add new domain and new users with Vadddomain and Vadduser if needed .Qmail limit attachment size The size of the attachment is set in / var / qmail / control / datates file, which can be implemented for qmail attachment size, which is not available, you can create it yourself. SMTP mode is to create Databasetes with qmail's DataBytes and set up mail up to 4m # echo 4000000> / var / qmail / control / data 10. Limit single field mailbox number #VI /Home/vpopmail/domains/domain.com /.qmailadmin-limits =========================================== =========================================================================================================================================================================================================================================== =============. qmailadmin-limited ==================== #Chmod 700 /Home/vpopmail/domains/domain.com /.qmailadmin-limits #chwod vpopmail: vchkpw /home/vpopmail/domains/domain.com/.qmailadmin-limits This limit is limited to 200, each email is 50m 11. Block Mail from # with QMail VI / VAR / QMAIL / Control / BadmailFrom This control file implements a rejection of the mail function, and each address should be a row. Moreover, it can take effect without restarting qmail. For example: peng@96633.net ----- Limit a specific user @ sina.com ----- Limit the message in the entire domain 12. Set the IGENUS definition allowed uploading and downloading of message size # vi /etc/php.ini max_execution_time = 60 memory_limit = 16M post_max_size = 4M upload_max_filesize = 4M file_uploads = On session.auto_start = 1 register_globals = On session.bug_compat_42 = 1 session.bug_compat_warn = 0 # vi / ETC / httpd / conf.d / php.conf setputfilter PHP setInputfilter PHP limitRequestBody 4242880 9, edit QMail self-start script #vi /etc/rc.d/init.d/qmail ============ ========= qmail ====================== #! / bin / sh # chkconfig: 2545 90 90 # Description: qmail (includelude SMTP and POP3) Auto Start / Stop Scripts.. /etc/rc.d/init.d/functions case "$ 1" in start) echo -n "Start qmail:" / var / qmail / rc & echo "." Echo ". -N "STAR / QMAIL / SMTP ECHO". "echo -n" start pop3 service: "/ var / qmail / pop3 echo". ";; stop) echo" stop qmail: "KillProc qmail- Send KillProc QMail-Clean KillProc Qmail-Rspawproc Qmail-Lspawpawproc SPLogger KillProc TCPServer ;; *) EXIT 1; ESAC Exit 0 = ============================================= #CHMOD 755 / ETC /rc.d/init.d/qmail #CHKCONFIG --ADD QMAIL 10, install autorespond (auto reply) #TAR Xzvf AutoRespond-2.0.2.tar.gz #cd AutoRespond-2.0.2 #vi makefile will be included in the install_dir = modified to / var / qmail / bin #make #make install #cp Autorespond / usr / local / bin FreeBSD: Port: #CD / USR / PORTS / MAIL / AutoRespond #make #make install Manual: # TAR XVZF AutoRespond-2.0.5.tar.gz # CD AutoRespond-2.0.5 # patch -p1 <../autorespond-2.0.5-conf-strcaseStr.patch # Make # make install 11. EZMLM and EZMLM-IDX with MySQL Support (a tool for QMAIL-based management mailing list) EZMLM-IDX contains a correction and supplement to ezmlm, they are a whole # 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 Domain.com This email address 011 Add List Moderator 012 Add MODERATOR To Mailing List 013 Email Address: 014 Add New User to Mail Category 015 Creating a New Mail List 016 Mail List 017 Mail List Owner's Email Address: 018 Archived 019 not archived 020 Block archive. only moderators are allowed to access the archive. 021 Archive access is open to anyone or subscribers only, depending on the Guard setting. 022 No digest. Do not set up the digest list. 023 Prefix. Set up the list so that the outgoing subject will be prefixed with the list name. 024 No prefix. 025 Guard archive. Archive access requests from unrecognised SENDERs will be rejected. 026 Do not guard archive. Archive access request from any SENDERs will be serviced. 027 Subscriptions do not require confirmation. 028 Subscription requires confirmation by reply to a message sent to the subscription address. 029 Indexed for WWW archive access. 030 The list is created without WWW archive index 031 Unsubscribe does not require confirmation. 032 Unsubscribe requires confirmation by a reply to a message t to the subscription address. 033 List subscribers. Remote administrators can request a subscriber list, and search the subscriber log. 034 The subscriber list can not be obtained. 035 Message moderation. 036 Message posting is not moderated. 037 Posts from addresses other than moderators are rejected. This is applicable to message moderated lists only. 038 Others not rejected. For moderated lists, all posts are forwarded to the moderators. The switch has effects only on message moderated lists. 039 Respond to adminstrative requests and allow archive retrieval. 040 Allow only digest creation, remote adminstration, and archive retrieval by remote administrators, (if the list is configured with this options). 041 Allow remote administrators to edit files in text directory 042 Text file editing is not allowed 043 ReQuest address is serviced 044 DO NOT PROCESS MESSAGES SENT to the Request Address 045 Enables Remote Administration 046 No Remote Administration. 047 Subscriptions Are Not Moderated. 049 Trailer 050 NO Trailer 051 User Posts Only 052 Do Not Restrict Posts Based On Sender Address 053 Allow Database Support 054 Host Name 055 Port 056 User Name 057 Password 058 Database 059 Table 060 Add 061 Mail Account 062 Catchall: 063 Description 064 Modify User 065 Delete account 066 Catchall account 067 Create a new mail account 068 account alias 069 alias 070 mail account 071 Modify 072 Delete 073 Creating a new alias 074 Forward Accounts 075 Forward 076 Creating a new forwarding 077 Mail robot 078 Mail robot 079 new mail robot 080 Mail list 081 List 082 Open .Qmail-default error 083 Add Subscriber 084 Remove Subscriber 085 list Subscriber 086 Add Moderator 087 Remove Moderator 088 listing MODERATORS 089 new mailing list 090 Create a Mail account 091 Password (Again): 092 Real Name 093 List Name 094 Submit User 095 Submit New User to the following Mail List 096 Delete Alias 097 Confirm Delete 098 Delete Mail Robot 099 Database Setting 100 Delete Forward 101 Delete Mail List 102 Delete User 103 Forward Mail 104, forward it To: 105 Modify Mail Robot 106 Name 107 Description 108 Creating New Email Address 109 Modify User 110 New Password 111 Modify User 112 Administrator Account 113 Domain Name 114 Login 115 Redirects for User 116 Current Redirects 117 Add / Replace Redirect Email 118 Delete RedIect 119 Add success 120 Unable to add 121 alias 122 Forward 123 show redirect 124 Show 125 Creating a new mail account 126 Creating a new alias 127 Creating a new forward 128 Creating a new Mail robot 129 Creating a new message list 130 Catchall: Bounced 131 Users can browse, Please return to the previous page 132 Default 133 Index: 134 Set No Default Catch All Account 135 Previous 136 Refresh 137 Next 138 Type in Password 139 Mail user password change success. 140 Password modification failed. 141 Successfully used to delete. 142 No certification 143 directory error 144 file permission error 145 invalid user internal error 146 Cannot Do Redirect 147 Redirect Now 148 invalid email address 149 Cannot delete Last Entry 150 file error 151 line deleted success 152 forwarding add success 153 username does not exist 154 alias Add success 155 INVALID ACTION 156 Dacted Maximum Number Limit 157 Did the maximum number of forwarded numbers 158 reach the maximum mail robot number limited 159 Invalid Dotqmail type: adddotqmail () 160 Alias invalid 161 DID NOT ALIAS. POP Account Must Be an existing POP Accent. 162 Mail User Name Invalid 163 Local User Name Invalid 164 Invalid ALIAS TYPE: AddDotqmailnow () Add Mail User Oil Nakada Failure 166 Add Mail User Alias Success 167 Deleting Users' Alias / Forward Error. 168 Add user alias / forwarding success. 169 Error deleting redirect / forward for POP Account 170 Redirect / forward for POP Account deleted successfully 171 Error: could not change to directory 172 Only one person can log in as system postmaster at one time Someone else has logged in Please only have one.. Login at a time. 173 Login Expiration, please log in 174 Invalid Mail Robot 175 User Name Existing 176 please Fill In Mail Robot Name 177 Invalid Owner Email Address 178 Please enter the title 179 please type in Something to send 180 Mail robot Add success 181 Unable to delete mail Robot 182 mail robot delete success 183 mail robot to success 184 achieve the maximum mailing list 185 Unable to delete the message list 186 Mail list Remove success 187 Mail list Add success 188 Invalid mail list name 189 mailing list 90 End of List 191 Mail List In the Merger User Mail Address List 192 Returns to Main Menu 193 Add to Main Menu 194 Email Address Added AS A MODERATOR To Mailing List 195 Remove the Subscriber 196 from the mailing list Delete Moderator 197 Removed As a Moderator For Mailing List 198 Login Invalid 199 Did you have a maximum number of email users Match, please re-enter 201 memory consumption 202 WHERE THE Parameters Are: 203 Remove 204 Go User 205 from the mailing list (Vacation) 206 Set Remote Catch All Account 207 SET Remote Catchall 208 Remote Catchall Address: 209 Allows Forwarding 210 Allows Save Copy and Forward 211 Forward Mail to: 212 Allow Holiday (VACAction) 213 Vacation Title: 215 Vacation Information: 215 Must provide forwarding address 216 must be available Title 217 Refresh Main Menu 218 Exit 219 MODERATORS List 220 Moderator Address 222 Subscriber List 222 Submit Address 223 User does not exist 224 (Click Modification) 225 Mail list 226 Mail list Modification Success 227 Diagnostics 228 Total number: 229 Unlimited 230 Subscribe total : 231 No list is available for display 232 No alias and forwarding available for display 233 No Mail Robots available to Show Generate Micro Chinese Menu Files / USR / LOCAL / Share / qmailadmin / HTML / EN-US #CP / USR / Local / Share / qmailadmin / HTML / EN / USR / local / Share / qmailadmin / html / en-us generate admin table mysql> use vpopmail; mysql> create table `admin` (` ID` Tinyint (3) unsigned not null auto_increment, `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', Primary key (`ID`), UNIQUE Key` Domain` (`Domain`)) type = myisam pack_keys = 1 auto_increment = 1; sqwebmail With the SQWwebmail installation script with 1.0 is not available, please pay attention! The environment variable set in the script does not work, if you set the environment variable with manual mode, then execute ./configure ... just ok! I don't know what is why, if you solve this problem Please let me know! 1: Make sure the latest preauthvchkpw.c (if use vpopmail4.10.x) has been downloaded #tar -zxvf sqwebmail-2.1.1.tar.gz #cp -f preauthvchkpw.c sqwebmail-2.1.1 / authlib 2: Compilation #CD SQWwebmail-2.1.1 # Set the environment # Incs = -i / usr / include / mysql #export INCS #Libs = "- l / usr / lib / mysql -lmysqlclient -lz" #export libs # Cppflags = -i / usr / incrude / mysql # Ldflags = -l / usr / lib / mysql #EXPORT CPPFLAGS #export ldflags #. / configure --with-cachedir --without-gzip --enable-webpass = yes / --enable-softtimeout = 300 --enable-autopurge = 180 --enable-maxpurge = 180 / --with-htmllibdir = / var / www / sqwebmail --Nable-cgibindir = / var / www / cgi-bin / --enable-imagedir = / var / www / images / sqwebmail / --enableImageurl = / images / sqwebmail / / / --enable-mimecharset = gb2312 --with-maxArgsize = 5000000 / --with-maxformargsize = 5000000 --with-maxmsgsize = 5000000 --without-ispell / --with-authshadow --without-authmysql --with-authldap --with-authuserdb / --with-authpwd --without-authpam --with-authvchkpw --without-authdaemon Make configure-check; make ometall-strip; make install-configure # System users use shadow authentication, virtual domains use vchkpw authentication, prohibiting other authentication methods #echo "Authvchkpw Authshadow"> / VAR / WWW / SQWwebmail / AuthmoduList 3: Description of GB2312: According to the instructions for "SQWwebmail Language Translation", it seems that other languages are a very complicated thing. Due to the "SQWwebmail Language Translations" no version update, it is unclear that there is no change for SQWWEBMAIL-2.1.1, but I don't have According to what it said, but this: #CD / VAR / WWW / SQWWebmail / HTML #mkdir zh_cn #CP en_us / * zh_cn / #RM -F EN #LN-SH_CN EN #set up #CD EN #echo zh_cn> Language #echo zh_cn zh_cn> Language_pref #echo zh_cn> Locale #echo gb2312> Charset Then edit all .html files, change to Chinese characters. There were no problems in use. 4: Test Open your browser, http://xxx.xxx.xxx.xxx/cgi-bin/sqwebmail Enter your username, password, ok! (System user directly enter your username, virtual domain user input Email address: user@domain.com) Twice, establish a QMAIL firewall for ADSL. #echo 1> / proc / sys / net / ipv4 / ip_forward # / sbin / iptables -f input # / sbin / iptables -f forward ### enable client to vist the web-server on internet # / sbin / iptables -a Output -o ppp0 -p tcp --sport 1024: 65535 -d Any / 0 - Dport 80 -J Accept # / sbin / iptables -a input -i ppp0 -p tcp! --Syn -s any / 0 - Sport 80 - Dport 1024: 65535 -J ACCEPT ### set ip-masquerade # / sbin / iptables -t nat -a postrouting -o ppp0 -j masquerade ### ip packets limited # / sbin / iptables -a forward - F -M limit --LIMIT 10 / s --LIMIT-BURST 10 -J Accept # / sbin / iptables -a forward -p icmp -m limited --LIMIT 1 / S --LIMIT-BURST 3 -J ACCEPT # / SBIN / IPTABLES -A INPUT -I PPP0 -P ICMP -J DROP ### Enable Some Internet-Service On Intranet for the Clients on Internet # / SBIN / IPTABLES -A INPUT -P TCP - Dport 80 -j Accept ## # Open Some port for ftp-users to use passive mode # / sbin / iptables -a input -i ppp0 -p tcp --dport 25 -j accept # / sbin / iptables -a input -i ppp0 -p tcp --dport 110 -J ACCEPT ### disable any port you don't want to be visited # / sb IN / iptables -a input -m state --state established, Related -j accept # / sbin / iptables -a input -i ppp0 -j drop 14, additional instructions If you have installed the above steps, you still need Change some PHP pages to suit your app, you can use VI to open the modification directly. I am not listed here. About the package mentioned above can also be downloaded from me: ftp: // Test: 123456@nero.3322.org/qmail test mailbox: http://nero.3322.org/igenus management email: http: // Domain.com/cgi-bin/qmailadmin 2nd Post Establish software for antivirus systems for qmail servers: maildrop-1.5.2.20030423.tar.gz perl-time-hires-1.38-3.i386.rpm clamav-0.65.tar.gz qmail-scanner-1.20.tgz Install Maildrop: #TAR ZXVF MAILDROP-1.5.2.20030423.Tar.gz #cd maildrop-1.5.2.20030423 ./configure make make install-strip make install-man installation perl-time-hires-1.38-3.i386.rpm rpm -ivh perl- Time-hires-1.38-3.i386.rpm Installing CLAMAV-0.65.Tar.gz #GroupAdd Clamav #useradd -g clamav -s / bin / false clamav #tar zxvf clamav-0.65.tar.gz #CD ClamAV-0.65. / Configure make check make install Update Virus Library Run Freshclam Add Freshclam to crontab Timed Update Virgin Library, #vi /usr/local/etc/clamav.conf Note EXAMPLE Execute CLAMSCAN Execute CLAMD and then performs CLAMDSCAN to install qmail-scanner-1.20.tgz #groupadd qscand # useradd -g qscand -s / bin / false qscand #tar zxvf qmail-scanner-1.20.tgz #CD qmail-scanner-1.20 ./configure --Qmail-queue-binary / var / qmail / bin / qmail -Queue --Admin Postmaster --domain Nero.3322.org --Notify Sender, Admin --Local-Domains Nero.3322.org --lang En_GB --debug Yes --unzip Yes --scanners Clamscan --Install Perl-db_file needs to be installed during compilation -x.x.x.rpm, can be found in the disc. #Chown Qscand: Qscand / Var/qmail/bin/qmail-scanner-queue.pl #chmod 4755 /VAR/Qmail/bin/qmail-scanner-queue.pl then use a normal user to log in, execute / var / qmail / bin /qmail-scanner-queue.pl -z If there is no CAN't do setuid, congratulations, if there is a connection to the installation file directory, there is a Contrib directory, #make #make install additional steps: #Chown Qscand: qscand / var / qmail / bin / qmail-scanner-queue #chmod 4755 / var / qmail / bin / qmail-scanner-que #Chmod 0755 /var/qmail/bin/qmail-scanner-queue.pl then login with a normal user, execute # / var / qmail / bin / qmail-scanner-queue -z # / var / qmail / bin / qmail-scanner-queue -g Modify environment variables 1. Join QMAILQUEUE = / var / qmail / bin on your QMAIL /qmail-scanner-queue.pl If the additional steps are made to use the # qmailqueue = / var / qmail / bin / qmail-scanner-queueue #export qmailqueue 2. Modify qmail-scanner-queue.PL MY $ CLAMSCAN_OPTIONS = "-r --disable-summary --max-reguration = 10 --max-space = 1000000"; MY $ CLAMSCAN_OPTIONS = "- R --MBOX --DISABLE-SUMMARY --MAX-Recursion = 10 --Max -Space = 1000000 "; Rel started QMAIL Test here There are test programs # / software / qmail-scanner-1.20 / contrib / test_installation.sh main exhaust monitor / VAR/spool/Qmailscan/quarantine.log / var / spool / qmailscan / qmail-queu e.log / var/log/clamd.log / var / log / maillog Add new features to QMAIL VPOPMAIL IGENUS Mail Server 1. Register New User and Retrieve Password Creating Database #MYSQL -U Root -P MySQL> Use vpopmail; mysql> Create Table Password (id int (11) unsigned not null auto_increment, pw_name varchar (32) Not null default ', pw_domain varchar (64) Not null default ', Problem varchar (32) Not null default', answer varchar (32) Not null default '', key answe (id)) type = myisam pack_keys = 1; Install the package password.rar where there are five files Signup.php, Submit.php is the registered getPassword.php, getPassword2.php, getPassword3.php is used to find the password. About the default domain name. Self-modification Your own default domain. If IGENUS is installed to / var / www / html / iGenus, extract these five files into the / var / www / html directory, then add the corresponding link in the INDEX.PHP file of the home page. Yes. 2. Automatic forwarding to send mail to your own mailbox to other mailbox mysql> use vpopmail; mysql> create table forward (id int (11) unsigned not null auto_increment, pw_id int (5) Not null default '0', email varchar (64 NOT NULL DEFAULT ', SUCCESS INT (1) Not Null Default' 0 ', Save Int (1) Not Null Default' 0 ', Primary Key (ID)) TYPE = Myisam Pack_Keys = 1; 3. Profile mysql> use vpopmail; mysql> 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 ', Month Int (2) Not Null Default' ', day int (2) not null default', education varchar (4) Not null default ', Marital Int (1) Not null default', 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; 4. Only domain administrators can send all user notices for this domain, and all users in this domain can only view the notification mysql> use vpopmail; mysql> create table board (id int (11) unsigned not null auto_increment, Num Int 5) Not null default '0', Title Varchar (50) Not null default ', Content Varchar (255) Not Null Default', Host Varchar (50) Not Null Default ', Allhost Int (1) Not Null Default '0' , Primary Key (ID)) type = myisam pack_keys = 1; 5. Favorites Mysql> Use vpopmail; mysql> create table stow (id int (11) unsigned not null auto_increment, pw_id int (5) Not null default '0', Name Varchar (64) Not null default ', http varchar (128 NOT NULL Default ', Memo Varchar (255) Not Null Default', Primary Key (ID)) type = myisam pack_keys = 1; 6. Contacts mysql> use vpopmail; mysql> CREATE TABLE card (id int (11) unsigned NOT NULL auto_increment, pw_id int (5) NOT NULL default '0', addrname varchar (10) NOT NULL default '', companyname varchar (30 NOT NULL DEFAULT ', Address Varchar (255) Not Null Default' ', Job Varchar (255) Not Null Default', Telephone Varchar (20) Not Null Default ', Mobile Varchar (15) Not Null Default' , Email Varchar (50) Not null default ', bearing varchar (4) Not null default', Note Varchar (255) Not null default '', Primary Key (ID)) type = myisam pack_keys = 1; Linux ADSL QDNS 1, installation dial-up package For future firewall applications I have installed two network cards to make sure it works Normal: # i10fig eth0 Eth0 Pick-up network # ifconfig eth1 Eth1 connected ADSL Delete Default Gate: in File / etc / sysconfig / network Delete the gateway = this line, then execute: # Service Network Restart Install the PPPD package. If there is file / usr / sbin / pppd, the PPPD has been installed; if not installed, you can find this package on the RedHatlinux installation CD. # rpm -ivh rp-pppoe-3.5.2.i386.rpm II. Configuring PPPoE client software ADSL installation is very simple, I don't have much to say #ADSL-SETUP After installation of software package / etc / sysconfig / network-scripts / IFCFG-PPP0 # vi / etc / sysconfig / network-scripts / ifcfg-ppp0, modified PPPoE-Timeout = 0 CONECT-TIMEOUT = 0 # cp / etc / sysconfig / network-scripts / IFCFG-PPP0 / ETC / PPP / PPPOE .conf Additional Information: Congratulation, IT Should Be All Set Up! TYPE '/ SBIN / IFUP PPP0' TO BRING UP YOUR XDSL LINK AND '/ SBIN / IFDOWN PPP0'to BRING IT DOWN. TYPE '/ SBIN / ADSL-Status / etc / sysconfig / network-scripts / ifcfg-ppp0' TO See the link status. Third, the installation set the dynamic domain name qdns Login http://www.3322.org/ Site, register a user, apply for a dynamic domain name Domain.3322.org, download Linux client software: EZ-iPUpdate-3.0.10-Linux -i386.tgz installation software: # tar zxvf eZ-ipupdate-3.0.10-linux-i386.tgz # mv EZ-iPUpdate-3.0.10-linux-i386 / usr / local / ezip # chmod 755 / usr / local / EZIP / EZ-ipupdate # chmod 755 /usr/local/ezip/qdns.conf # cp /usr/local/ezip/qdns.conf / usr / local / bin # CP / USR / local / ezip / eZ-ipupdate / usr / local / bin editor /usr/local/ezip/qdns.conf file: # vi /usr/local/ezip/qdns.conf service-type = qdns user = Your Use RName: Your password host = domain.3322.org interface = ppp0 max-interface = 2073600 cache-file = / tmp / ez-ipupdate.cache updates the current IP to our application: # / usr / local / ezip / eZ-ipupdate -c qdns.conf system will prompt data update success. Automatic update domain name after dial-up connection: Modify / etc / ppp / ip-up script # VI / ETC / PPP / IP-UP In addition: / usr / local / ezip / ez-ipupdate -c / usr /local/ezip/qdns.conf setting automatically synchronize your domain every five minutes: # crontab -e then join the following line: 0-59 / 50-59 / 5 * * * * / usr / local / bin / ez -ipupdate - c /usr/local/bin/qdns.conf 4, test # adsl-start # adsl-status should contain information about PPP0 in the output, including the IP address obtained from DHCP. # Ping domain.3322.org If the correct IP is analyzed, the dial-up connection has been established and the correct dynamic domain name can be parsed. Additional content: The dynamic domain name first goes http://www.3322.org/ to apply for a dynamic domain name. After the application, he downloads his client at http://www.3322.org/dyndnspage/ez-ipupdate-3.0.10-freebsd4.4-i386.tgz. Then decompress, I decompressed into / usr / local / bin. Located QDNS.conf inside, that is the 3322.org's configuration file for dynamic domain name. Write in the configuration file: user = hefish: xxxxxxx #hefish is the username when you apply, xxxxxxx is a password host = Web.3322.org # This is the dynamic domain name you apply. Interface = tun0 # This is the device where the domain name is to point to the device. We are ADSL dial, and after tun0 is written, you can start the dynamic domain name, I am started with this / usr / local / bin / ez-ipupdate -c/usr/local/bin/qdns.conf We can use nslookup to look at it, is it to point our registered dynamic domain name to our assigned addresses allocated. If we don't want to enter this command each time, you can write him to the /etc/ppp/ppp.linkup file, you can automatically run the domain information update from each time the dial is completed. My PPP.Linkup file is like this: adsl: ifce clear! BG / usr / local / bin / ez-ipupdate -c /usr/local/bin/qdns.confadsl is the dial-up configuration label, "BG is running in the background EZ-iPUpdate, pay attention to each line starts with space. 1st post qmail's POP3 recipient slow solution (network management must see) In the afternoon, the part-time company network management told me that the company's mail server is very slow, and the letter is normal, and the POP connection is discovered by the Outlook test. It cannot be accepted. After logging in to the server, after logging in to the server Telnet 127.0.0.1 110 is normal Executive Telnet hostname 110 speed giant slow Take it to 0:30 Finally, I added a few parameters in the startup of POP3, and the specific step is Add -H -U -T 1 -L 0 after tcpserver and then restart qmail-pop3d is OK. Don't ask me to see the manual for your own yourself, huh, so tired, go to sleep. --- Good man yhj1065