Moderators: ScalixSupport, admin
Code: Select all
INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m')dnl
Code: Select all
cd /etc/mail
m4 sendmail.mc > sendmail.cf
omsendin
Code: Select all
sub filter_end {
my($entity) = @_;
append_text_boilerplate($entity, "All information contained in " .
"this email is confidential and may be used by the intended " .
"recipient only.", 0);
append_html_boilerplate($entity, "All information contained in " .
"this email is confidential and may be used by the intended " .
"recipient only.", 0);
# If you want quarantine reports, uncomment next line
Code: Select all
[root@scalix mail]# omsendin
WARNING: [OMINST 255] Unable to determine where to put Scalix
WARNING: lines in sendmail configuration file
Unable to find ruleset 0
WARNING: [OMINST 279] Modify /opt/scalix/newconfig/om_sendmail.cf. Use the script
WARNING: /opt/scalix/bin/omsendin for guidance.
Code: Select all
cat /etc/mail/sendmail.cf
Code: Select all
Jul 28 06:44:36 scalix mimedefang.pl[3174]: k6S5iZaK003317: Could not connect to clamd daemon at /var/spool/MIMEDefang/clamd.sock
Jul 28 06:44:36 scalix mimedefang.pl[3174]: Problem running virus scanner: code=999, category=cannot-execute, action=tempfail
Jul 28 06:44:36 scalix mimedefang.pl[3174]: filter: k6S5iZaK003317: append_html_boilerplate=1 append_text_boilerplate=1 tempfail=1
Jul 28 06:44:36 scalix mimedefang[3188]: k6S5iZaK003317: Tempfailing because filter instructed us to
Jul 28 06:44:36 scalix sendmail[3317]: k6S5iZaK003317: Milter: data, reject=451 4.3.0 Problem running virus-scanner
Jul 28 06:44:36 scalix sendmail[3317]: k6S5iZaK003317: to=<trig@domain.local>, delay=00:00:00, pri=31318, stat=Problem running virus-scanner
Jul 28 06:44:36 scalix sendmail[3316]: k6S5iZnT003316: to=<trig@domain.local>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31117, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Problem running virus-scanner
Code: Select all
[root@scalix mail]# grep -iC5 clam /etc/mail/mimedefang-filter
$score = "*" x 40;
}
# We add a header which looks like this:
# X-Spam-Score: 6.8 (******) NAME_OF_TEST,NAME_OF_TEST
# The number of asterisks in parens is the integer part
# of the spam score clamped to a maximum of 40.
# MUA filters can easily be written to trigger on a
# minimum number of asterisks...
if ($hits >= $req) {
action_change_header("X-Spam-Score", "$hits ($score) $names");
md_graphdefang_log('spam', $hits, $RelayAddr);
[root@scalix mail]#
Users browsing this forum: No registered users and 5 guests