![]() | Joe's j-chkmail - Compilation et Installation |
user@calloway > /usr/lib/sendmail -d0,0 < /dev/null Version 8.12.3 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS PIPELINING SCANF USERDB XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = calloway (canonical domain name) $j = calloway.ensmp.fr (subdomain name) $m = ensmp.fr (node name) $k = calloway ======================================================== Recipient names must be specified user@calloway >Dans ce résultat, il faut réperer la version de sendmail 8.12.3 et l'existence de l'option MILTER. Si vous n'avez ces deux conditions satisfaites, il vous faudra certainement compiler et installer la version requise.
joe@calloway> gunzip -c sendmail-8.12.3.tar.gz | tar xvf - joe@calloway> cd sendmail.8.12.3 joe@calloway> cat > devtools/Site/site.config.m4 APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER') ^D joe@calloway> cd libmilter joe@calloway> ./Build -c joe@calloway> su # ./Build install # exit joe@calloway> cd .. joe@calloway> ./Build -c joe@calloway> su # ./Build install # exit
INPUT_MAIL_FILTER(`j-chkmail', `S=inet:2000@localhost, T=C:2m') define(`confINPUT_MAIL_FILTERS', `j-chkmail')
O InputMailFilters=j-chkmail # Milter options #O Milter.LogLevel O Milter.macros.connect=j,_,{daemon_name},{if_name},{if_addr} O Milter.macros.helo={tls_version},{cipher},{cipher_bits},{cert_subject},{cert_issuer} O Milter.macros.envfrom=i,{auth_type},{auth_authen},{auth_ssf},{auth_author},{mail_mailer},{mail_host},{mail_addr} O Milter.macros.envrcpt={rcpt_mailer},{rcpt_host},{rcpt_addr} # Xj-chkmail, S=inet:2000@localhost, T=C:2mLes macros ci-dessus ne sont pas toutes necéssaires, mais elles correspondent aux valeurs définies par défaut.
joe@calloway> gunzip -c jchkmail-1.0.tar.gz | tar xvf - joe@calloway> cd jchkmail-1.0 joe@calloway> ./configure joe@calloway> gmake joe@calloway> gmake installVous pouvez lancer le script configure avec l'option --with-sendmail=PATH, où PATH indique comment trouver libmilter. PATH peut avoir les valeurs :
cp bin/j-chkmail.init /etc/init.d/j-chkmail /sbin/chkconfig --add j-chkmail /sbin/chkconfig --level 2345 j-chkmail on
cp bin/j-chkmail.init /etc/init.d/j-chkmail cd /etc/rc0.d ln -s ../init.d/j-chkmail K36j-chkmail cd /etc/rc1.d ln -s ../init.d/j-chkmail K36j-chkmail cd /etc/rc2.d ln -s ../init.d/j-chkmail S88j-chkmail cd /etc/rcS.d ln -s ../init.d/j-chkmail K36j-chkmail
1,6,11,16,21,26,31,36,41,46,51,56 * * * * /etc/mail/j-stats.cron