Installation Instructions for exim4-daemon-heavy by Charles AI4RI
Pre-installation requirements
./configure --enable-postfix
Installation Instructions for exim4 wl2k system filter
###########################################################################
## WINLINK 2000 Filter
###########################################################################
system_filter = "/etc/exim4/system.filter"
system_filter_user = Debian-exim # Set this to the user that exim runs as
system_filter_group = Debian-exim # Set this to the group that exim runs as
system_filter_pipe_transport = address_pipe
system_filter_file_transport = address_file
system_filter_reply_transport = address_reply
system_filter_directory_transport = address_directory
# Macro defining the main configuration directory.
# We do not use absolute paths.
.ifndef CONFDIR
CONFDIR = /etc/exim4
.endif
make sure that the wl2k directories for paclink-unix are set for the debian username/group that exim is using.
By default this is Debian-exim.Debian-exim, this MUST be the same as system_filter_user and system_filter_group.
chown -Rv Debian-exim.Debian-exim /usr/local/var/wl2k
/etc/init.d/exim4 restart
touch /usr/local/var/wl2k/eximfilter.log && chown Debian-exim.Debian-exim /usr/local/var/wl2k/eximfilter.log && \
chmod 666 /usr/local/var/wl2k/eximfilter.log
system.filter, EXIM MTA wl2k filter - exim's version of wl2k.m4
# Exim filter <<== do not edit or remove this line!
# EXIM4 filter for paclink-unix WL2K software
#
# Created by Charles Blackburn "AI4RI"
#
# ai4ri@winlink.org - charlesb@cflpacket.net
#
#
##-----------------------------------------------------------------------
# only run any of this stuff on the first pass through the filter - this
# is an optimisation for messages that get queued and have several delivery
# attempts
if not first_delivery then
finish
endif
##-----------------------------------------------------------------------
##-----------------------------------------------------------------------
# if this is an error notification message, make sure it doesn't get lost
if error_message then
finish
endif
##-----------------------------------------------------------------------
# Create a logfile of message IDs processed"
logfile /usr/local/var/wl2k/eximfilter.log
logwrite "-----------------------------------------------------------------------"
logwrite "$tod_log SYSTEM.FILTER: Processing Message: $message_id"
logwrite "From: $header_from ($sender_address) -> To: $header_to"
logwrite "Subject: $h_subject"
logwrite "Message size: $message_size bytes"
# Check if this is a message going to a winlink account *@winlink.org
if
$header_to: contains "@winlink.org" and # if it's going to a winlink account
$sender_address: does not contain "root@" # AND it's NOT coming via paclink (will always have a sender of root@)
then # it must be an outgoing wl2k message, so put into wl2k/outbox
logwrite "$message_id is an OUTGOING WL2K Message"
logwrite "Sending to pipe"
unseen pipe "/usr/local/libexec/mail.wl2k"
# unseen save /usr/local/var/wl2k/outbox/
logwrite "We're done here this time...."
seen finish
endif
# Check if this is a message coming from a winlink account *@winlink.org or via paclink
if
$header_to: contains "@winlink.org" and # it's coming FROM a winlink account (mail -r call@winlink.org)
$sender_address: contains "root@" # AND it's coming via paclink (will always have a sender of root@)
then # it must be an incoming wl2k message via paclink
logwrite "$message_id is an INCOMING WL2K Message via paclink"
unseen finish
endif
# if it's FROM a winlink address (mail -r call@winlink.org) then send via pipe
if
$header_from: contains "@winlink.org"
then
logwrite "$message_id is a message going OUT from a winlink address"
logwrite "Sending to pipe"
unseen pipe "/usr/local/libexec/mail.wl2k"
# unseen save /usr/local/var/wl2k/outbox/
seen finish
endif
# end of filter - make sure that this message gets processed if it if it bombs out to here, it failed the above filters
logwrite "$message_id is not a WL2K Message"
unseen finish