]> git.pld-linux.org Git - packages/amavis-ng.git/blob - amavis-ng-courier.patch
- allow CC override
[packages/amavis-ng.git] / amavis-ng-courier.patch
1 diff -Nur old/AMAVIS/MTA/Courier.pm new/AMAVIS/MTA/Courier.pm
2 --- old/AMAVIS/MTA/Courier.pm   2003-03-17 23:04:11.000000000 +0000
3 +++ new/AMAVIS/MTA/Courier.pm   2004-07-25 21:50:53.000000000 +0000
4 @@ -97,7 +97,7 @@
5    my $message_id;
6    while (1) {
7      $message_id = sprintf("%.8x-%.4x",time,$$);
8 -    unless (defined mkpath ($prefix.$message_id, 0, 0770)) {
9 +    unless (defined mkpath ($prefix.$message_id, 0, 0775)) {
10        if (++$i > 10) {
11         return 0;
12        }
13 diff -Nur old/doc/amavis-ng.texi new/doc/amavis-ng.texi
14 --- old/doc/amavis-ng.texi      2003-04-14 15:18:47.000000000 +0000
15 +++ new/doc/amavis-ng.texi      2004-07-23 12:07:46.000000000 +0000
16 @@ -1044,36 +1044,33 @@
17  
18  @example
19  @verbatim
20 -chown -R daemon:daemon /var/spool/amavis-ng/quarantine/
21 +chown -R daemon /var/{spool,log}/amavis-ng/
22  @end verbatim
23  @end example
24  
25  @node Configuring Courier to use @command{AMaViS-ng}
26  @subsubsection Configuring Courier to use @command{AMaViS-ng}
27 -
28  When @command{AMaViS-ng} is configured for Courier support, the program
29  @command{amavis} is the application which should be configured for use with
30 -@command{perlfilter}. Proper configuation of the Courier perlfilter interface
31 -is beyond the scope of this document. It is suggested that the
32 -reader attempt to configure the @command{perlfilter-example.pl} perlfilter
33 -as distributed with Courier in order to ensure a proper and working
34 -@command{perlfilter} installation before proceeding. The following man
35 -pages distribute with Courier may also prove helpful:
36 +@command{perlfilter}.
37 +
38 +Example perlfilter configuration:
39 +@example
40 +@verbatim
41 +echo "all" > /etc/courier/filters/perlfilter-mode
42 +echo "30" > /etc/courier/filters/perlfilter-numprocs
43 +echo "/usr/bin/amavis" > /etc/courier/filters/perlfilter
44 +chown daemon.daemon /etc/courier/filters/perlfilter*
45 +filterctl start perlfilter
46 +@end verbatim
47 +@end example
48 +
49  @itemize @bullet
50  @item
51  @cite{courierfilter(8)}
52  @item
53  @cite{courierperlfilter(8)}
54  @end itemize
55 -After configuring a working perlfilter, put the following line into@*
56 -@file{/etc/courier/filters/perlfilter}, substituting the pathname to
57 -@command{amavis} with the correct path for your installation:
58 -
59 -@example
60 -@verbatim
61 -/usr/bin/amavis
62 -@end verbatim
63 -@end example
64  
65  Reload the perlfilter and start the virus filter with the commands:
66  
This page took 0.033339 seconds and 3 git commands to generate.