1. Install Optional Package
yum -y install zlib zlib-devel pcre pcre-devel
Solutions to some configure errors:
configure: error: C compiler cannot create executables
apt-get install libc6-dev.
configure: error: configure: error: pcre-config not foundapt-get install libpcre3-dev
configure: error: zlib-headers and/or libs where not found
apt-get install zlib1g-dev
configure: error: bzip2-headers and/or libs where not found
apt-get install libbz2-dev
1. Option Package Install
yum install gcc
yum install gcc-c++
yum -y install ncurses-devel
yum -y install libxml2-devel
yum -y install zlib-devel openssl-devel
yum -y install gd
yum -y install gd-devel
yum -y install flex
yum -y install diffutils
yum -y install curl curl-devel
apt-get install libncurses5-dev
apt-get install libncursesw5-dev
apt-get install libcurl4-gnutls-dev
2. MySQL Configure And Install
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/var/mysql \
--with-comment=Source \
--with-server-suffix=-enterprise-gpl \
--with-mysqld-user=mysql \
--without-debug \
--with-big-tables \
--with-charset=utf8 \
--with-collation=utf8_general_ci \
--with-extra-charsets=all \
--with-pthread \
--enable-static \
--enable-thread-safe-client \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--enable-assembler \
--without-ndb-debug \
--enable-local-infile \
--with-readline
Install SpamAssassin and MIMEDefang need a lots of optional package, you can get it from http://search.cpan.org
1. Install SpamAssassin
# groupadd spamd
# useradd -g spamd -s /bin/false spamd
# tar xzvf Mail-SpamAssassin-3.0.2.tar.gz
# cd Mail-SpamAssassin-3.0.2
# export LC_ALL=C
# perl Makefile.PL
# make
# make install
# cp spamd/redhat-rc-script.sh /etc/rc.d/init.d/spamd
# chmod 755 /etc/rc.d/init.d/spamd
# chkconfig --add spamd
# vi /etc/rc.d/init.d/spamd
SPAMDOPTIONS="-d -c -u spamd -H /home/spamd -m5"
# vi /etc/mail/spamassassin/local.cf (my local.cf)
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.
required_hits 5.5
rewrite_subject 1
rewrite_header Subject *****SPAM*****
report_safe 1
defang_mime 0
rewrite_subject 1
report_header 1
use_terse_report 1
whitelist_from *@quickmail.51job.com
whitelist_from *@gmail.com
#whitelist_from *@163.com
whitelist_from *@sina.com
whitelist_from *@126.com
whitelist_from *@21cn.com
whitelist_from *@qq.com
whitelist_from *@tom.com
whitelist_from *@yahoo.com.cn
whitelist_from *@hotmail.com
whitelist_from *@sky.net.cn
whitelist_from *@gddc.com.cn
whitelist_from *@sharebank.com.cn
whitelist_from *@pcsoft.com.cn
whitelist_from *@igrand.cn
whitelist_from *@iresearch.cn
你的容颜,留下了太多的思念.
内心缠绵,就在那相爱的一瞬间.
想你一遍,感觉世间沧桑的迁变.
爱就在眼前,不再留恋.
是否听见,那天你说的谎言.
看你一眼,感觉那爱剩下一点点.
我的眷恋,总在一个落叶的秋天.
不知不觉,回到从前.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果.
你已不再爱我.
是否听见,那天你说的谎言.看你一眼,感觉那爱剩下一点点.
我的眷恋,总在一个落叶的秋天.不知不觉,回到从前.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果.
你已不再爱我.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果.
你已不再爱我