1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## skip_sendmail.cf.dpatch by <sgran@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Stop checking sendmail.cf - we ship the milter config in a seperate file
8
Index: clamav-milter/clamav-milter.c
9
===================================================================
10
--- a/clamav-milter/clamav-milter.c (revision 595)
11
+++ b/clamav-milter/clamav-milter.c (working copy)
14
static const char *sendmailCF; /* location of sendmail.cf to verify */
15
static const char *pidfile;
16
+static int nocheckCF = 0;
17
static int black_hole_mode; /*
18
* Since sendmail calls its milters before it
19
* looks in /etc/aliases we can spend time
21
puts(_("\t--quarantine-dir=DIR\t-U DIR\tDirectory to store infected emails."));
22
puts(_("\t--server=SERVER\t\t-s SERVER\tHostname/IP address of server(s) running clamd (when using TCPsocket)."));
23
puts(_("\t--sendmail-cf=FILE\t\tLocation of the sendmail.cf file to verify"));
24
+ puts(_("\t--no-check-cf\t\tSkip verification of sendmail.cf"));
25
puts(_("\t--sign\t\t\t-S\tAdd a hard-coded signature to each scanned message."));
26
puts(_("\t--signature-file=FILE\t-F FILE\tLocation of signature file."));
27
puts(_("\t--template-file=FILE\t-t FILE\tLocation of e-mail template file."));
29
"freshclam-monitor", 1, NULL, 'M'
32
+ "no-check-cf", 0, NULL, 'z'
35
"sendmail-cf", 1, NULL, '0'
39
debug_level = atoi(optarg);
47
fprintf(stderr, "Usage: %s [-b] [-c FILE] [-F FILE] [--max-children=num] [-e] [-l] [-o] [-p address] [-P] [-q] [-Q USER] [-s SERVER] [-S] [-x#] [-U PATH] [-M#] socket-addr\n", argv[0]);
56
fd = open(sendmailCF, O_RDONLY);
58
Index: docs/man/clamav-milter.8.in
59
===================================================================
60
--- a/docs/man/clamav-milter.8.in (revision 590)
61
+++ b/docs/man/clamav-milter.8.in (working copy)
63
file, usually in /etc/sendmail.cf or /etc/mail/sendmail.cf. This directive
64
tells clamav\-milter where to find the sendmail.cf file.
66
+\fB\-\-no\-check\-cf\fR
67
+Skip the above check.
69
\fB\-\-black-hole-mode\fR
70
Since \fIsendmail\fR calls its milters before it looks in its alias and virtuser
71
tables, clamav-milter can spend time looking for malware that's going to be