CC= /usr/bin/g++ -Wall -g -I $(HOME)/lib/include #?? exhibits = checkpassword.patch hi-q.c pido.c pop3.conf smtp.conf \ #?? smtp.rules spamc-zap.patch spamd qmail .PHONY : shipit clean list-src ALWAYS foo dirs setup imgs \ zip wc html all hacha hevea tcprules logmark .SECONDARY : # do not remove any intermediate files qprogs = pido hi-q skrewt hi-test mail-scan greylist wripper all: $(qprogs) wripper greylist: greylist.o $(CC) $< -lboost_filesystem-mt -o $@ wripper: wripper.o $(CC) $< -o $@ chgrp daemon $@ chmod g+s $@ mail-scan: mail-scan.o $(CC) $< -lboost_regex -o $@ install: install $(qprogs) /var/qmail/bin/ install -gdaemon -m2755 wripper /usr/lib/mailman/mail/ cp filters.conf aufilters.conf /var/qmail/control/ install -m700 -d /var/qmail/rbin chown qmaild /var/qmail/rbin chgrp qmail /var/qmail/rbin install -m755 ../checkpasswd/checkpassword /var/qmail/rbin/ chown root /var/qmail/rbin/checkpassword chmod u+s /var/qmail/rbin/checkpassword cp smtp.conf /etc/stunnel/ cp pop3.conf /etc/stunnel/ install qmail-tls-check_certs /var/qmail/bin/ install spamassassin /etc/init.d/ install qmail /etc/init.d/ install spamassassin.default /etc/default/spamassassin install tcprules.make /etc/tcpserver/makefile /etc/tcpserver/smtp.rules : ./mk_smtp_rules $@ logmark: logger -t jsd -p mail.info ========================= # Command to let everybody out of the penalty box: parole: greylist -scan |grep penalty | while read addr rest ; do TCPREMOTEIP=$addr greylist -p 1 -v ; done todo: echo \ pass message-ID to greylist program \ ... also provide a way for certain recipients to bypass some checks \ ... both will require major restructuring, "cat" process \ ... IPv6 reverse-DNS recors \ ... "clean up bad DNS reports nnnn --> () ==> ()" \ ..... ALWAYS: @echo ... ##?? include $(chapters:.htm=.d) ##?? include $(fancy:%.htm=aux/%.fig)