INSTALL_IMPLICIT = install --mode=444 --owner=root --group=adm --preserve-timestamps $< $@ INSTALL_EXPLICIT = install --mode=444 --owner=root --group=adm --preserve-timestamps $^ $@ .PHONY: all tls auth all: /etc/exim4/conf.d/main/40_local_mailq /etc/exim4/conf.d/main/50_local_use_sysfilter /etc/exim4/conf.d/main/50_local_tls_packet_fix /etc/exim4/conf.d/main/50_local_unlimited-message-size tls: /etc/exim4/conf.d/main/50_local_tls-security echo "Create /etc/exim4/conf.d/main/000_local_tlsmacros from tls.conf containing pathnames of key & cert files" auth: /etc/exim4/conf.d/auth/50_local_plain-server echo "Add '-oX 25:587 -oP /var/run/exim4/exim.pid' to SMTPLISTENEROPTIONS in /etc/default/exim4" # -- explicit rules -- /etc/exim4/conf.d/main/50_local_use_sysfilter: 50_local_use_sysfilter.conf | /usr/local/etc/exim_filter $(INSTALL_EXPLICIT) /usr/local/etc/exim_filter: remove_bcc.filter $(INSTALL_EXPLICIT) /etc/exim4/conf.d/main/50_local_sa-exim: 50_local_sa-exim.conf | /usr/local/etc/exim_acl_check_rcpt_extra $(INSTALL_EXPLICIT) /usr/local/etc/exim_acl_check_rcpt_extra: sa-exim_acl.local $(INSTALL_IMPLICIT) # -- implicit rules -- /etc/exim4/conf.d/main/50_local_%: %.conf $(INSTALL_IMPLICIT) /etc/exim4/conf.d/main/%: %.conf $(INSTALL_IMPLICIT) /etc/exim4/conf.d/router/%: %.router $(INSTALL_IMPLICIT) /etc/exim4/conf.d/transport/%: %.transport $(INSTALL_IMPLICIT) /etc/exim4/conf.d/auth/50_local_%: %.auth $(INSTALL_IMPLICIT) # == redundant == # create a temporary file using the current hostname instead of the placeholder # (this is necessary because there is no way to dynamically set qualify_recipient) /tmp/50_local_qual_rcpt: 50_local_qual_rcpt.conf sed s/REPLACE_WITH_PRIMARY_HOSTNAME/`hostname -f`/ $^ > $@ install_rcpt_fix: /tmp/50_local_qual_rcpt install --mode=644 $^ /etc/exim4/conf.d/main/50_local_qual_rcpt