[转 5Dmail.com] freebsd + qmail + mysql + vpopmail complete ports installation

xiaoxiao2021-03-06  64

First, the basic system is prepared 1, install freebsd4.10 Select all installation, set up NIC address: 192.168.0.0.1, gateway: 192.168.0.1, DNS: 202.102.192.68, this name: Mail, domain name: Chinake.com, open FTP, Add a user: chaohu, password: 123456 User Group: Wheel, Directory Selection Catalog /, after the installation is complete, add CVSUP and Portupgrade, restart. Note: Increase the user because the ports installation download is too slow, will need the software to use the download tool in Windows Next, you can use SSH to log in to the host, so I like WINDOWS users can also use EE and other editing. 2. Use SecureCRT or PUTTY.EXE to log in, and Su root users. #CHMOD 777 / USR / PORTS / DISTFILES is now assume that you have downloaded the software you need, open the FTP tool (such as LeAftp), login 192.168.0.88, user name Chaohu and 123456, upload files. 3, update ports # cd / usr / share / example / cvsup / # / usr / local / bin / cvsup -g -l2 -h ftp.freebsdchina.org ports-support can also update Stable-Suppirl and Standard-Supfile to this Basic system installation ends. Second, Web Server Preparation 1, Install Apache-Modssl # CD / USR / Ports / WWW / Apache13-Modssl / # make install Add: #ee /etc/rc.conf Add: Apache_enable = YES If you want yourself to develop SSL certificates Don't make Make Clean Add PHP support #CD / usr / ports / lang / php4 # make install Add: AddType Application / X-httpd-php .PhpaddType Application according to prompt #ee /usr/local/etc/apache/httpd.conf / x-httpd-php-source .phps # cp php.ini-dist pHP.ini increase zend support, only manually install, but it is very simple, to the Zend website to download it after #tar ZXVF ZENDOPTIMIZER-2.5.5- FreeBSD4.3-I386.TAR.GZ # cd Zendoptimizer-2.5.5- FreeBSD4.3-i386 # chmod 755 install.sh #. / install .sh Unix does not allow running in the current directory The program, so it is to add ./

2, the installation mysql # cd / usr / ports / databases / mysql323-server # make WITH_OPENSSL = yes WITH_LINUXTHREADS = yes BUILD_OPTIMIZED = yesinstall clean3, with ports to install phpmyadmin # cd / usr / ports / databases / phpmyadmin # ee Makefile, the default Mounting path to WWW / DATA, SQWWWEBMAIL, QMAILADMIN, VQREGOSTER, etc., please check the default web CGI-BIN path #make install clean # cd / usr / local / www / data / phpMyadmin # chmod 755 config.inc .php # eE config.inc.php will be $ cfg ['servers'] [$ I] [' auth_type '] =' config '; // automation method (config, http or cookie based)? Changed to $ CFG [' Servers'] [$ I] ['Auth_Type'] = 'http'; // Authentication Method (config, http or cookie based)? 4, increase the support of Expect (SQWWebmail Change Password to use) #CD / USR / Ports / Lang / EXPECT # make install clean to this, the web system is built, if you want to optimize, refer to the relevant parameters in php.ini, etc. #reboot three, qmail installation 1, qmail # cd / usr / ports / mail / qmail # made with_big_todo_patch = yes # make disable-sendmail # make enable-qmail # cd /var/qmail/configure#./config-fast mail .chinake.com Please mail.chinake.com into your own checking #ee /etc/rc.conf increase sendmail_enable = "NONE" sendmail_submit_enable = "NO" sendmail_outbound_enable = "NO" sendmail_msp_queue_enable = "NO" 2, 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 install clean yourself vpopmail modify them for your own, by http://192.168.0.88/phpmyadmin/

Permissions to modify the root user password, increase the VPopmail database, increase the VPopmail user and password, and give VPopmail all permissions for database VPOPMAIL. Its command mode is: #mysqlmysql> set password for root = password ('password'); (Modify root password) mysql> create database vpopmail; mysql> use mysql; mysql> grant usage on *. * To "vpopmail" @ "Localhost" Identified by "****"; mysql> grant all privileges on `vpopmail`. * to" vpopmail "@" localhost "with grant option; mysql> Bye3, ispell # CD / USR / ports / german / ispell -neu # make install clean4, sqwebmail # cd / usr / ports / mail / sqwebmail # make 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 / authdaemond start5, qmailadmin # cd / usr / ports / mail / qmailadmin # make install clean, qmail pre-preparatory work ready, restart a server, see if Authdaemond SqwebmAild does not start, if not, please check the above steps, prepare the configuration below. Fourth, configure qmail server 1, test vpopmail # cd/usr/vocal/vpopmail/bin#./vadddomain test.com #. / Vadduser test@test.com If there is no prompt, it is right.

2. Install daemontools # cd / usr / ports / sysutils / daemontools # make install clean3, configure daemontools3.1 establishment path and set permissions #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 qmail: Wheel / Var / log / qmail 3.2 SVSCAN launch MKDIR / ServiceChMod 755 / servicemkdir / var / qmail / supervisechmod 755 / var / qmail / supervisemkdir / var / qmail / supervise / qmail-smtpdmkdir / var / qmail / supervise / qmail-smtpd / logchmod t / var / qmail / supervise / qmail-smtpdmkdir / var / qmail / supervise / qmail-sendmkdir / var / qmail / supervise / qmail-send / logchmod t / var / qmail / supervise / qmail-sendmkdir / var / qmail / supervise / qmail-pop3dmkdir / var / qmail / supervise / qmail-pop3d / logchmod t / var / qmail / supervise / qmail-pop3dln -s / var / qmail / supervise / * / service / boot file configuration qmail control-file: #ee / var / qmail / rc env ENV - Path = "/ var / qmail / bin: / usr / local / bin" qmail-start ./mails/pop3d:#ee / var / qmail / supervise / qmail-pop3d / run #! / Bin / sh exec / usr / Local / bin / tcpserver -h -r -v -c100 0 110 / var / qmail / bin / qmail-popup mail.chinake.com / usr / local / vpopmail / bin / vchkpw / var / qmail / bin / qmail-pop3d maildir 2> & 1 #CHMOD 755 / VAR / QMAIL / SuperVise / qmail -POP3D / RUN #EE / VAR / QMAIL / SuperVise / qmail-pop3d / log / run #! / bin / shexec / usr / local / bin / setuidgid qmaill / usr / local / bin / multililog T S100000 N20 / VAR / LOG / qmail / qmail-pop3d 2> & 1 # chmod 755 / var / qmail / supervise / qmail-pop3d / log # chmod 755 / var / qmail / supervise / qmail-pop3d / log / run recruitment #ee cd / var / qmail / supervise / qmail-smtpd / run #! / bin / shexec / usr / local / bin / tcpserver -p -r -x /etc/tcp.smtp.cdb -u92 -g91 -V -C100 0 SMTP RBLSMTPD / VAR / qmail / bin / qmail-smtpd 2> &

1 # chmod 755 / var / qmail / supervise / qmail-smtpd / run # ee / var / qmail / supervise / qmail-smtpd / log / run #! / Bin / shexec / usr / local / bin / setuidgid qmaill / usr / us Local / BIN / MULTILOG T S100000 N20 / VAR / LOG / QMAIL / QMAIL-SMTPD 2> & 1 # chmod 755 / var / log / qmail / qmail-smtpd / log # chmod 755 / var / log / qmail / qmail-smtpd / Log / Run send #ee / var / qmail / supervise / qmail-send / run #! / bin / shexec / var / qmail / rc # chmod 755 / var / qmail / supervise / qmail-send / run # cd / var / qmail / supervise / qmail-send / log / ra #! / bin / shexec / usr / local / bin / setuidgid qmaill / usr / local / bin / multiliLog T S100000 N20 / var / log / qmail / qmail-send 2> & 1 # chmod 755 / var / qmail / supervise / qmail-send / log / # chmod 755 / var / qmail / supervise / qmail-send / log / run # rm /usr/local/etc/rc.d/qmail.sh #ee /usr/local/etc/rc.d/qmail.sh# !/bin/shcase "$ 1" instart) echo -n "starting qmail: svscan" if cd / var / qmail / supervise; thenenv - path = " / var / qmail / bin: / usr / local / bin: / usr / bin: / bin "SVSCAN & ECHO $!> /VAR/Run/svscan.pidfiecho". ";; stop) echo -n" stopping qmail: svscan "Kill` ​​Cat / Var / Run / S vscan.pid`echo -n "qmail" svc -dx / var / qmail / supervise / * echo -n "logging" svc -dx / var / qmail / supervise / * / LOGECHO "." ;; stat) CD / VAR / qmail / supervisesvstat * * / log ;; doqueue | ALRM) Echo "sending alrm signal to qmail-send." SVC -A / VAR / QMAIL / SuperVise / qmail-send ;; queue) qmail-qstatqmail-qread ;; reload | HUP) Echo "sending hup signal to qmail-send." SVC -H / VAR / QMAIL / SuperVise / qmail-sendecho "sending hup signal to qmail-pop3d." SVC -H / VAR / QMAIL / SuperVISE / QMAIL-POP3D ;; pause) Echo "PAUSING qmail-send" svc -p / var / qmail / supervise / qmail-sendecho "PAUSING qmail-smtpd" svc -p / var / qmail / supervise / qmail-smtpdecho "

PAUSING qmail-pop3d "svc -p / var / qmail / supervise / qmail-pop3d ;; cont) echo" continuing qmail-send "svc -c / var / qmail / supervise / qmail-sendecho" continuing qmail-smtpd "svc - C / var / qmail / supervise / qmail-smtpdecho "Continuing qmail-pop3d" svc -c / var / qmail / supervise / qmail-pop3d ;; rest) echo "RESTARTING QMAIL:" echo "* stopping qmail-smtpd." SVC. "SVC." SVC. "SVC." SVC. "SVC." SVC. -d / var / qmail / supervise / qmail-smtpdecho "* sending qmail-send sigterm and restarting." SVC -T / VAR / QMAIL / SuperVise / qmail-sendecho "* restarting qmail-smtpd." SVC -U / VAR / qmail / supervise / qmail-smtpdecho "* sending qmail-pop3d sigterm and restarting." SVC -T / VAR / QMAIL / SuperVise / qmail-pop3d ;; CDB) TCPRules /etc/tcp.smtp.cdb /etc/tcp.smtp .tmp

The main reason for choosing QMAIL is because there is user registration, let's install it 1, install qmailadmincd / usr / ports / mail / qmailadminmake -dwith_modify_quotamake install clean2, install VQREGister # cd / usr / ports / mail / vqregister # make install clean # Make Install Clean # ee /usr/local/www/cgi-bin-dist/vqregister/vqregister.conf# vQregister configuration file # ADMINEMAIL # AdminEmail mh@myfreebsd.org# REGISTERUSER # Syntax: RegisterUser #RegisterUser emaildomain # SUBJECT ## Syntax: Subject #Subject Your new email account at emaildomain # VERIFY ## Syntax: Verify # Default: off # Verify off # ALLOWPASSWORD ## Syntax: AllowPassword # Default: off # AllowPassword on # Allowdomain ## syntax: allowdomain #allowdomain chinak.com # redirect ## syntax: redirect #redirectttp: //mail.chinake.com/cgi-bin/sqwebmail/sqwebmail

# PASSWORD ## Syntax: Password ## PASSWORDLEN ## Syntax: PasswordLen # Default: 8 # PasswordLen 8 # BADHOSTS ## BadHosts badhosts # DB_Host ## Syntax: DB_Host #DB_Host localhost # DB_Name ## Syntax: DB_Name #DB_Name vpopmail # DB_USER ## Syntax: DB_User #DB_User vpopmail # DB_PASSWORD ## Syntax: DB_Password #DB_Password vpopmail # DB_FIELDS ## Syntax: DB_Fields

< Field> [, [, ] # DB_Fields User_info User, DOM, Pass, Cemail, Fname # Advertise ## Syntax: Advertise #Advertise Off Installs Kill Software under FreeBSD Very few, but McAfee has been providing the McAfee VirusScan Command Line version of the McAfee VirusScan Command Line version for Virus protection for FreeBSD's Stable versions (including 3.x and 4.x). Installation is also very simple: CD / USR / PORTS / Security / vscanmake install clean to this, the QMAIL system is successful,

http://192.168.0.88/cgi-bin/qmailadmin/qmailadmin

Enter the domain name and password, you can manage,

Http://192.168.0.88/cgi-bin/vqregister/vqregister.cgi for registration new users,

http://192.168.0.88/cgi-bin/sqwebmail/sqwebmail

Enter the full name and password of the mailbox, such as Test@chinake.com test, you can send and receive, using Outlook to send information to require STMP authentication. More dissatisfied is that the sqwebmail interface is too ugly, not Chinese, which has the heart to beautify it, Chinese, if you are Chinese, please inform me, I also want. What is the problem?

http://bbs.chinake.com

To discuss, QQ: 93606088,

----

In the end, I found a Chinese, that is, Wmail, it is SQWWEBMAIL Chinese, and it is very simple to install. 1, TAR ZXVF WMAIL-1.00RC1.20030724.TAR.GZ 2, CD WMAIL-1.00RC1.20030724 3, Chmod 755 Install 4,. / Install / usr / local / share # change the installation path to / usr / local / share Then to copy / usr / local / share / wmail / www / cgi-bin / wmail to / usr / local / www / cgi-bin / image and index.html under usr / local / share / wmail / www / Copy to / usr / local / www / data / under the final modification of / usr / local / share / wmail / html / zh-cn, INDEX.HTML and INVALID.HTML, will can be modified to your own domain name. Access: http://192.168.0.88/,

Original URL:

Http://www.5dmail.net/html/2004-10-26/20041026163440.htm

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

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.052, SQL: 9