Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5352090
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类:

2006-02-17 16:21:10

由於系統開始的不完善,所以增加一些功能是不可缺少的了(主要的原因是垃圾郵件太多),參考裏面的文章,但那裏也許是自己太菜了吧,哈哈,沒有提示怎麼打一些附加的補丁,所以有時顯得好鬱悶,今天我在網上找呀找,總算找到了這方面的東西,在鏈接http://qmailwiki.inter7.com/Simscan/Related_Docs/Simscan_ClamAV_Chkuser_Installation_Guide#Applying_qmail-queue-custom-error.patch 中可有很詳細的介紹,其它的事我倒沒有做只是在原有的原代碼中加入qmail.c的,qmail.c是直接copy來自網的,感覺還不錯哦,一make setup check就ok,也許我感覺事情來的太容易了哦.
cd /usr/local/src/netqmail-1.05/netqmail-1.05
patch < /usr/local/src/simscan-1.1/contrib/qmail-queue-custom-error.patch

The patch command will return the following lines:

patching file qmail.c
Hunk #1 FAILED at 14.
Hunk #2 succeeded at 56 (offset 11 lines).
Hunk #4 succeeded at 152 (offset 11 lines).
1 out of 4 hunks FAILED -- saving rejects to file qmail.c.rej
patching file qmail.h

As you can see, the patch to qmail.h was successful, but the patch for qmail.c was unsuccessful. This is because this patch is not prepared to be installed after the QMAILQUEUE patch that comes installed with netqmail.

To solve this or you edit qmail.c and add manually the rejected hunk saved in qmail.c.rej, or you can use the qmail.c file bellow that was previously edited by Darrel (don’t know his lastname) and posted in the simscan’s mailling in . The thread subject was ‘qmail-queue patch isn't compatible withqmail-queue-custom-error.patch’.

For convenience, the contents of this file are also in APPENDIX A. qmail.c source for netqmail-1.05 with QMAILQUEUE patch plus qmail-queue-custom-error.patch in this document.

So, if you are using netqmail-1.05 and the same qmail-queue-custom-error.patch we’re using, you can cut and paste the contents posted in that link and save it in a file called qmail.c.

 

Recompiling Netqmail 


Time to compile qmail with the patches we just applied:

cd /usr/local/src/netqmail-1.05/netqmail-1.05
make

For precaution, backup your actual qmail binaries, just in case something goes wrong:

tar -cvzf /root/qmail_bin.tar.gz /var/qmail/bin

Stop qmail execution

svc -d /service/qmail*

Certify that SMTP and POP are no longer LISTENING for network connections. The following netstat command CANNOT print any line:

阅读(1500) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~