ghostscript | http://sourceforge.net/project/showfiles.php?group_id=1897 | ImageMagick相关 |
tiff | ftp://ftp.remotesensing.org/libtiff | ImageMagick相关 |
PerlMagick-6.32 | http://search.cpan.org/~jcristy/PerlMagick-6.32/Magick.pm | PerlMagick模块 |
[root@redhat tmp]# tar zxvf ghostscript-8.54.tar.gz [root@redhat tmp]# cd ghostscript-8.54 [root@redhat ghostscript-8.54]# ./configure [root@redhat ghostscript-8.54]# make [root@redhat ghostscript-8.54]# make install |
[root@redhat tmp]# tar zxvf tiff-3.8.2.tar.gz [root@redhat tmp]# cd tiff-3.8.2 [root@redhat tiff-3.8.2]# ./configure [root@redhat tiff-3.8.2]# make [root@redhat tiff-3.8.2]# make install |
[root@redhat tmp]# tar zxvf html2ps-1.0b5.tar.gz [root@redhat tmp]# cd html2ps-1.0b5 [root@redhat html2ps-1.0b5]# chmod +x install [root@redhat html2ps-1.0b5]# ./install |
[root@redhat tmp]# unzip jasper-1.701.0.zip [root@redhat tmp]# cd jasper-1.701.0 [root@redhat jasper-1.701.0]# ./configure --disable-opengl --disable-libjpeg [root@redhat jasper-1.701.0]# make [root@redhat jasper-1.701.0]# make install |
[root@redhat ImageMagick-6.3.7]# ln -sv /usr/local/png/include/* /usr/include create symbolic link `/usr/include/libpng12' to `/usr/local/png/include/libpng12' create symbolic link `/usr/include/pngconf.h' to `/usr/local/png/include/pngconf.h' create symbolic link `/usr/include/png.h' to `/usr/local/png/include/png.h' [root@redhat ImageMagick-6.3.7]# ln -sv /usr/local/jpeg/include/* /usr/include [root@redhat tmp]# tar zxvf ImageMagick-6.3.7-9.tar.gz [root@redhat tmp]# cd ImageMagick-6.3.7 [root@redhat ImageMagick-6.3.7]# ./configure --without-fpx --without-jbig \ --without-rsvg --without-lcms [root@redhat ImageMagick-6.3.7]# make [root@redhat ImageMagick-6.3.7]# make install |
//安装Perl的第一个组件,请按顺序安装 tar zxvf BerkeleyDB-0.32.tar.gz 1 cd BerkeleyDB-0.32 perl Makefile.PL make make install cd .. tar zxvf Compress-Raw-Zlib-2.008.tar.gz 2 cd Compress-Raw-Zlib-2.008 perl Makefile.PL make make install cd .. tar zxvf IO-Compress-Base-2.008.tar.gz 3 cd IO-Compress-Base-2.008 perl Makefile.PL make make install cd .. tar zxvf IO-Compress-Zlib-2.008.tar.gz 4 cd IO-Compress-Zlib-2.008 perl Makefile.PL make make install cd .. tar zxvf Compress-Zlib-2.008.tar.gz 05 tar zxvf IO-Zlib-1.08.tar.gz 06 tar zxvf Array-Compare-1.14.tar.gz 07 tar zxvf Sub-Uplevel-0.18.tar.gz 08 tar zxvf Test-Simple-0.74.tar.gz 09 tar zxvf Test-Exception-0.26.tar.gz 10 tar zxvf Tree-DAG_Node-1.06.tar.gz 11 tar zxvf Test-Warn-0.10.tar.gz 12 tar zxvf Net-SSLeay-1.32.tar.gz 13 tar zxvf IO-Socket-SSL-1.12.tar.gz 14 tar zxvf IO-stringy-2.110.tar.gz 15 tar zxvf Algorithm-Diff-1.1902.tar.gz 16 tar zxvf Text-Diff-0.35.tar.gz 17 tar zxvf Archive-Tar-1.38.tar.gz 18 tar zxvf Archive-Zip-1.23.tar.gz 19 tar zxvf DBI-1.601.tar.gz 20 tar zxvf DBD-mysql-3.0008.tar.gz 21 tar zxvf Socket6-0.19.tar.gz 22 tar zxvf IO-Socket-INET6-2.51.tar.gz 23 tar zxvf IP-Country-2.23.tar.gz 24 tar zxvf File-Temp-0.20.tar.gz 25 tar zxvf NetAddr-IP-4.007.tar.gz 26 tar zxvf Net-CIDR-Lite-0.20.tar.gz 27 tar zxvf Net-IP-1.25.tar.gz 28 tar zxvf Net-Ident-1.20.tar.gz 29 tar zxvf Digest-SHA-5.45.tar.gz 30 tar zxvf Digest-SHA1-2.11.tar.gz 31 tar zxvf Digest-HMAC-1.01.tar.gz 32 tar zxvf Net-DNS-0.61.tar.gz 33 tar zxvf version-0.74.tar.gz 34 tar zxvf Net-DNS-Resolver-Programmable-v0z 35 tar zxvf HTML-Tagset-3.10.tar.gz 36 tar zxvf HTML-Parser-3.56.tar.gz 37 tar zxvf ExtUtils-CBuilder-0.21.tar.gz 38 tar zxvf Encode-Detect-1.00.tar.gz 39 tar zxvf ExtUtils-ParseXS-2.18.tar.gz 40 tar zxvf Error-0.17011.tar.gz 41 tar zxvf GD-2.35.tar.gz 42 tar zxvf PerlMagick-6.32.tar.gz 42.1 tar zxvf GD-SecurityImage-1.64.tar.gz 43 tar zxvf GD-SecurityImage-Utils-1.02.tar. 44 tar zxvf Unix-Syslog-1.0.tar.gz 45 tar zxvf Sys-Hostname-Long-1.4.tar.gz 46 tar zxvf Regexp-Common-2.120.tar.gz 47 tar zxvf URI-1.35.tar.gz 48 tar zxvf Mail-SPF-v2.005.tar.gz 49 tar zxvf Mail-SPF-Query-1.999.1.tar.gz 50 tar zxvf TimeDate-1.16.tar.gz 51 tar zxvf Pod-Escapes-1.04.tar.gz 52 tar zxvf Pod-Simple-3.05.tar.gz 53 tar zxvf Test-Pod-1.26.tar.gz 54 tar zxvf MailTools-2.02.tar.gz 55 tar zxvf Crypt-OpenSSL-Random-0.04.tar.gz 56 tar zxvf Crypt-OpenSSL-RSA-0.25.tar.gz 57 tar zxvf Mail-DKIM-0.29.tar.gz 58 tar zxvf Mail-DomainKeys-1.0.tar.gz 59 tar zxvf MIME-tools-5.425.tar.gz 60 tar zxvf libwww-perl-5.808.tar.gz 61 tar zxvf Mail-SpamAssassin-3.2.3.tar.gz 62 tar zxvf Convert-TNEF-0.17.tar.gz 63 tar zxvf Convert-UUlib-1.09.tar.gz 64 tar zxvf Net-Server-0.97.tar.gz 65 tar zxvf Time-HiRes-1.9711.tar.gz 66 tar zxvf Time-HiRes-1.9711.tar.gz 67 tar zxvf Log-Log4perl-1.14.tar.gz 68 //其它组件的安装方式类同,只有特殊处理时下面会给出说明 |
[root@redhat GD-2.35]# ln -sv /usr/local/jpeg/lib/* /usr/lib create symbolic link `/usr/lib/libjpeg.a' to `/usr/local/jpeg/lib/libjpeg.a' create symbolic link `/usr/lib/libjpeg.la' to `/usr/local/jpeg/lib/libjpeg.la' create symbolic link `/usr/lib/libjpeg.so' to `/usr/local/jpeg/lib/libjpeg.so' ln: `/usr/lib/libjpeg.so.62': File exists ln: `/usr/lib/libjpeg.so.62.0.0': File exists [root@redhat GD-2.35]# perl Makefile.PL Where is libgd installed? [/usr/lib] /usr/local/gd/lib Please choose the features that match how libgd was built: Build JPEG support? [y] Build PNG support? [y] Build FreeType support? [y] Build GIF support? [y] Build support for animated GIFs? [y] Build XPM support? [y] If you experience compile problems, please check the @INC, @LIBPATH and @LIBS arrays defined in Makefile.PL and manually adjust, if necessary. Checking if your kit is complete... Looks good Writing Makefile for GD |
[root@redhat tmp]# rpm -ivh ImageMagick-6.0.7.1-5.i386.rpm warning: ImageMagick-6.0.7.1-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:ImageMagick ########################################### [100%] /sbin/ldconfig: /usr/local/mysql/lib/libmysqlclient_r.so.15 is not a symbolic link /sbin/ldconfig: /usr/local/mysql/lib/libndbclient.so.2 is not a symbolic link /sbin/ldconfig: /usr/local/mysql/lib/libmysqlclient.so.15 is not a symbolic link [root@redhat tmp]# rpm -ivh ImageMagick-perl-6.0.7.1-5.i386.rpm warning: ImageMagick-perl-6.0.7.1-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:ImageMagick-perl ########################################### [100%] |
[root@redhat tmp]# tar zxvf amavisd-new-2.5.2.tar.gz [root@redhat tmp]#cd amavisd-new-2.5.2 [root@redhat amavisd-new-2.5.2]# mkdir -p /var/amavis /var/amavis/tmp /var/amavis/var /var/amavis/db [root@redhat amavisd-new-2.5.2]# chown -R amavis:amavis /var/amavis [root@redhat amavisd-new-2.5.2]# chmod -R 750 /var/amavis [root@redhat amavisd-new-2.5.2]# cp amavisd /usr/local/sbin/ [root@redhat amavisd-new-2.5.2]# chown root /usr/local/sbin/amavisd [root@redhat amavisd-new-2.5.2]# chmod 755 /usr/local/sbin/amavisd [root@redhat amavisd-new-2.5.2]# cp amavisd.conf /etc/ [root@redhat amavisd-new-2.5.2]# chown root /etc/amavisd.conf [root@redhat amavisd-new-2.5.2]# chmod 644 /etc/amavisd.conf [root@redhat amavisd-new-2.5.2]# mkdir /var/virusmails [root@redhat amavisd-new-2.5.2]# chown amavis:amavis /var/virusmails [root@redhat amavisd-new-2.5.2]# chmod 750 /var/virusmails [root@redhat amavisd-new-2.5.2]# |
//因该文件内容较多,这里只列出比较重要的选项,完整的文件将会在附件中给出 [root@redhat tmp]# vi /etc/amavisd.conf $max_servers=8; $daemon_user = 'amavis'; $daemon_group = 'amavis'; $mydomain = 'test.com'; $db_home = "$MYHOME/db"; $inet_socket_port = 10024; $sa_tag_level_deflt = -100; $sa_tag2_level_deflt = 6.3; $sa_kill_level_deflt = $sa_tag2_level_deflt; $virus_admin = "virusalert@$mydomain"; $sa_spam_subject_tag = '***SPAM*** '; $notify_method = $forward_method; $forward_method = 'smtp:127.0.0.1:10025'; $final_virus_destiny = D_DISCARD; $final_banned_destiny = D_DISCARD; $final_spam_destiny = D_PASS; $virus_admin = "postmaster\@$mydomain"; # notifications recip. $mailfrom_notify_admin = "postmaster\@$mydomain"; # notifications sender $mailfrom_notify_recip = "postmaster\@$mydomain"; # notifications sender $mailfrom_notify_spamadmin = "postmaster\@$mydomain"; # notifications sender $mailfrom_to_quarantine = ''; # null return path; uses original sender if undef ['ClamAV-clamd', &ask_daemon, ["CONTSCAN {}n", "/var/run/clamav/clamd.socket"], qr/bOK$/, qr/bFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], |
[root@redhat amavisd-new-2.5.2]# /usr/local/sbin/amavisd debug //如果出现以下的错误,则需重新编译64(Convert-UUlib) Problem in Amavis::Unpackers code: Can't locate Convert/UUlib.pm in @INC |
//更改/etc/mail/spammassassin/local.cf中的值为下面的参数 required_hits 10.0 rewrite_subject 1 required_score 5.0 rewrite_header Subject *****SPAM***** report_safe 1 use_bayes 1 bayes_auto_learn 1 skip_rbl_checks 1 use_razor2 0 use_pyzor 0 ok_locales all [root@linux ~]# spamassassin -d --lint [root@linux ~]# /usr/bin/spamd -d [26002] warn: server socket setup failed, retry 1: spamd: could not create INET socket on [26002] warn: server socket setup failed, retry 2: spamd: could not create INET socket on [26002] error: spamd: could not create INET socket on 127.0.0.1:783: Address already in use spamd: could not create INET socket on 127.0.0.1:783: Address already in use [root@linux ~]# echo "/usr/bin/spamd -d" >> /etc/rc.local [root@linux ~]# |
[root@redhat amavisd-new-2.5.2]# /usr/local/sbin/amavisd [root@redhat amavisd-new-2.5.2]# postfix start postfix/postfix-script: starting the Postfix mail system [root@redhat amavisd-new-2.5.2]# telnet localhost 10024 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 [127.0.0.1] ESMTP amavisd-new service ready EHLO test.com 250-[127.0.0.1] 250-VRFY 250-PIPELINING 250-SIZE 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-DSN 250 XFORWARD NAME ADDR PROTO HELO |
//测试smtp及sasl功能,正常情况应如下示 [root@redhat etc]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 Welcome to our redhat.test.com ESMTP,Warning: Version not Available! EHLO test.com 250-redhat.test.com 250-PIPELINING 250-SIZE 1433600 250-VRFY 250-ETRN 250-AUTH LOGIN PLAIN //注意要显示这两行 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN |
//如果上述没有显示,且/var/log/maillog文件中有下面的提示,请按下面的方法 //排除 Jan 8 13:59:19 redhat postfix/smtpd[32315]: fatal: open database /etc/aliases.d No such file or directory [root@redhat etc]# postfix stop [root@redhat amavisd-new-2.5.2]# cd /etc/ [root@redhat etc]# postalias aliases [root@redhat etc]# postfix start |
[root@redhat etc]# wget -N -P /usr/share/spamassassin www.ccert.edu.cn/spam/sa/Chinese_rules.cf [root@redhat etc]# /usr/bin/crontab -e 0 0 1 * * wget -N -P /usr/share/spamassassin www.ccert.edu.cn/spam/sa/Chinese_rules.cf; /usr/local/sbin/amavisd stop;/usr/local/sbin/amavisd start |
自由广告区 |
分类导航 |
邮件新闻资讯: IT业界 | 邮件服务器 | 邮件趣闻 | 移动电邮 电子邮箱 | 反垃圾邮件|邮件客户端|网络安全 行业数据 | 邮件人物 | 网站公告 | 行业法规 网络技术: 邮件原理 | 网络协议 | 网络管理 | 传输介质 线路接入 | 路由接口 | 邮件存储 | 华为3Com CISCO技术 | 网络与服务器硬件 操作系统: Windows 9X | Linux&Uinx | Windows NT Windows Vista | FreeBSD | 其它操作系统 邮件服务器: 程序与开发 | Exchange | Qmail | Postfix Sendmail | MDaemon | Domino | Foxmail KerioMail | JavaMail | Winwebmail |James Merak&VisNetic | CMailServer | WinMail 金笛邮件系统 | 其它 | 反垃圾邮件: 综述| 客户端反垃圾邮件|服务器端反垃圾邮件 邮件客户端软件: Outlook | Foxmail | DreamMail| KooMail The bat | 雷鸟 | Eudora |Becky! |Pegasus IncrediMail |其它 电子邮箱: 个人邮箱 | 企业邮箱 |Gmail 移动电子邮件:服务器 | 客户端 | 技术前沿 邮件网络安全: 软件漏洞 | 安全知识 | 病毒公告 |防火墙 攻防技术 | 病毒查杀| ISA | 数字签名 邮件营销: Email营销 | 网络营销 | 营销技巧 |营销案例 邮件人才:招聘 | 职场 | 培训 | 指南 | 职场 解决方案: 邮件系统|反垃圾邮件 |安全 |移动电邮 |招标 产品评测: 邮件系统 |反垃圾邮件 |邮箱 |安全 |客户端 |