#!/bin/bash -e set -o pipefail debug=false if $debug; then save_input_file=/tmp/mfs.$$.in save_output_file=/tmp/mfs.$$.out else save_input_file=/dev/null save_output_file=/dev/null fi tee $save_input_file | perl -Tw /etc/mail/spamitarium.pl \ -redawtpx --return-path "$MILTER_ENVFROM" \ --no-local-received \ --remote-ip "$MILTER_REMOTE_IP" \ --remote-name "$MILTER_REMOTE_NAME" \ --helo "$MILTER_HELOHOST" \ --local-ip "$MILTER_LOCAL_IP" \ --local-name "$MILTER_LOCAL_NAME" \ --rcpt "$MILTER_ENVRCPT" | tee $save_output_file