I did a diff to check out the difference between Debian and vanilla Amavis 
2.6.1 and it looks like it is about the Debian way of reading the config 
files.  The patch looks like it worked.  See the patched Debian amavisd-new 
snippet:

9720         my($bypassed_b) = lookup(0,$recip, 
@{ca('bypass_banned_checks_maps')});
 9721         $r->bypass_banned_checks($bypassed_b);
 9722       }
 9723       if (!$r->bypass_spam_checks) {
 9724         my($bypassed_s) = lookup(0,$recip, 
@{ca('bypass_spam_checks_maps')});
 9725         $r->bypass_spam_checks($bypassed_s);
 9726       }
 9727     }
 9728
 9729     # Check if we need to do last minute policy changes
 9730     if (ref $custom_object) {
 9731       $which_section = "custom-process_policy";
 9732       eval {
 9733         my $new_policy_bank = $custom_object->process_policy($conn,
$msginfo,\%current_policy_bank); 1;
 9734     %current_policy_bank = %{ $new_policy_bank };
 9735       } or do {
 
Compare the the patch file:

16 @@ -9705,6 +9706,20 @@
 17          $r->bypass_spam_checks($bypassed_s);
 18        }
 19      }
 20 +
 21 +    # Check if we need to do last minute policy changes
 22 +    if (ref $custom_object) {
 23 +      $which_section = "custom-process_policy";
 24 +      eval {

David

On Friday 20 March 2009, David Koski wrote:
> On Thursday 19 March 2009 22:28, Nigel Kukard wrote:
> > > What I understand you saying is Policyd modifies Amavis and Amavis must
> > > be still be invoked by postfix within main.cf using the content_filter
> > > directive.  That would make sense.  I'll give it a try.
> >
> > Correct :)
>
> Now I am getting an error in the mail log:
>
> Mar 20 16:36:00 smailx amavis[23360]: (23360-05) (!)policyd/process_policy:
> Failed to parse in queue id from received line '1'
>
> In the archives a post dated Tue, 23 Sep 2008 it is suggested to try the
> vanilla Amavis instead of Debian.  I am using version 2.6.1.dfsg-1 of
> Debian and cluebringer-2.0.6.  Is vanilla Amavis necessary?
>
> My conf file:
>
>   1 [server]
>   2 protocols=<<EOT
>   3 Postfix
>   4 Bizanga
>   5 EOT
>   6
>   7 modules=<<EOT
>   8 Core
>   9 AccessControl
>  10 Quotas
>  11 EOT
>  12
>  13 user=amavis
>  14 group=amavis
>  15 pid_file=/var/run/amavis/cbpolicyd.pid
>  16 log_level=4
>  17 host=127.0.0.1
>  18
>  19 [database]
>  20 DSN=DBI:mysql:database=policyd;host=localhost
>  21 Username=*******
>  22 Password=*******
>  23 bypass_mode=pass
>  24 bypass_timeout=30
>  25
>  26 [AccessControl]
>  27 enable=1
>  28
>  29 [Greylisting]
>  30 enable=0
>  31
>  32 [CheckHelo]
>  33 enable=0
>  34
>  35 [CheckSPF]
>  36 enable=0
>  37
>  38 [Quotas]
>  39 enable=1
>
> Regards,
> David Koski
> [email protected]
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to