Hello,
Using Exim 3.36 I am trying to get the system filter to save certain
messages as individual files in a specific directory. In configure I have:
message_filter_directory_transport = saved_dhcp
...
saved_dhcp: (as the transport)
driver = appendfile
directory = /usr/local/exim/spool/dhcp-saved
user = exim
In the system filter file I have:
if $sender_host_name matches "dhcp\\\\.plym(outh)?\\\\.ac\\\\.uk\\$" then
logfile /usr/local/exim/logs/dhcp.log
logwrite "$tod_log: Subject: $h_Subject:\n\
\t Sender: $sender_fullhost\n\
\t From: $sender_address\n\
\t To: $h_To:"
save spool/dhcp-saved/
endif
This basically just saves messages coming from dhcp'ing workstations. Now,
this works fine :-)
However, I need to add another entry to the system filter to store spam
messages as individual messages in a different directory. But the
'message_filter_directory_transport' is set to a specific directory (exim
doesn't seem to like it if I remove the 'directory' option :-)).
Any ideas as to how I can do this? I'm sure I'm missing soemthing obvious.
Thanks,
John.
------------------------------------------------------------------------
John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers