
Hi everybody,
I thought this might be useful for you just as it is for us. I wrote a
small script that works as a filter between an MTA and otrs and filters
spam and viri before they hit a queue.
Sorry if anybody else came up with this idea before, there's no seach
available in the archives :-)
The script requires SpamAssassin and ClamAV installed in daemon mode.
See http://www.spamassassin.org and http://www.clamav.net for more info.
It should be pretty easy to modify the script so it doesn't rely upon
daemon mode for both programs.
--- Name it 'spamclam.sh' and put it into /home/otrs ---
#!/bin/sh
# This script takes a mail from STDIN, runs virus and spam scans
# on it and if it passes, pipes it into $ARGV[1]. Otherwise
# writes it into otrs-virusbox or otrs-spambox respectively.
#
# Written by Michael otto
participants (1)
-
Michael Otto