|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
当你经过一段时间的学习后就应该扩充自己的知识,多学习linux命令,但是不要在初学阶段就系统的学习linux命令。
exim是一款罕见的邮件发送软件,用自带的apt-get安装的exim4版本是不撑持DKIM,我们必需要对其源码举行改革才行。
这里先容一下在debian情况下对exim举行DKIM(DomainKeysIdentifiedMail)邮件署名的撑持。
#apt-getinstalllibdkim-devdpatch在/etc/apt/sources.list中增加:
deb-srchttp://ftp.us.debian.org/debianlennymaincontribnon-free增加需要的软件:
#cd/usr/src
#apt-get--force-yes-yinstallbuild-essentialdevscriptsdocbook-xslxsltprocdocbook-xmllibpcre3-devlibldap2-devlibpam0g-devlibident-devlibdb4.6-devlibxmu-devlibxt-devlibxext-devlibx11-devlibxaw7-devlibpq-devlibmysqlclient15-devlibsqlite3-devlibperl-devlibgnutls-devlibsasl2-dev
#apt-getsourceexim4
#cdexim4-4.69/
#fakerootdebian/rulesunpack-configs然后复制设置文件
#cpEDITME.exim4-heavyEDITME.exim4-custom
#echo"EXPERIMENTAL_DKIM=yes">>EDITME.exim4-custom
#echo"LDFLAGS+=-ldkim">>EDITME.exim4-custom
#fakerootdebian/rulespack-configs修正
videbian/rules
找到extradaemonpackages这行,修正为:
extradaemonpackages=exim4-daemon-heavyexim4-daemon-custom
为了让exim找到libdkim,还必要
echo"80_libdkim_patch">>debian/patches/00list
cddebian/patches
wgethttp://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=99_libdkim_1.0.19.dpatch;att=1;bug=486437-O-|
cat>>80_libdkim_patch.dpatch完成以上步骤,并没有提醒堕落i后就能够编译了
debuild-uc-us以后就能够失掉安装包了:
#ls../*.deb|grepexim4
../exim4_4.69-7_all.deb
../exim4-base_4.69-7_amd64.deb
../exim4-config_4.69-7_all.deb
../exim4-daemon-custom_4.69-7_amd64.deb
../exim4-daemon-custom-dbg_4.69-7_amd64.deb
../exim4-daemon-heavy_4.69-7_amd64.deb
../exim4-daemon-heavy-dbg_4.69-7_amd64.deb
../exim4-daemon-light_4.69-7_amd64.deb
../exim4-daemon-light-dbg_4.69-7_amd64.deb
../exim4-dbg_4.69-7_amd64.deb
../exim4-dev_4.69-7_amd64.deb
../eximon4_4.69-7_amd64.deb安装包的按次
dpkg-iexim4-config*.deb
dpkg-iexim4-base*.deb
dpkg-iexim4-daemon-light*.deb
dpkg-idaemon-custom*.deb
最初,修正设置文件/etc/exim4/exim4.conf.template在remote_smtp处
增加:
dkim_selector=dkim
dkim_domain=${lc:${domain:$h_from:}}
dkim_private_key=/root/dkim.private.key
dkim_strict=0
dkim_canon=relaxed
系统管理相关命令:df、top、free、quota、at、lp、adduser、groupaddkill、crontab、tar、unzip、gunzip、last |
|