Bowie Bailey wrote:
> Martin Orr wrote:
> > On 14/04/06 21:45, Bowie Bailey wrote:
> > > Errors with policy protocol...  Since those settings didn't exist
> > > in the old config, I tried simply removing these two lines from
> > > the config: 
> > > 
> > >     $interface_policy{'SOCK'}='AM.PDP-SOCK';  # only relevant with
> > >     $unix_socketname $policy_bank{'AM.PDP-SOCK'} = {
> > > protocol=>'AM.PDP' }; 
> > > 
> > > What is the problem here?  Is this something to do with the
> > > Courier integration, or is there something else going on?
> > 
> > You need to set the protocol to 'COURIER'.  You have probably
> > dropped or commented out a line from your old config file:
> > $protocol = 'COURIER';
> 
> Good catch!
> 
> I had the old and new configurations up in a side-by-side comparison
> with the differences highlighted.  I can't believe I didn't notice
> this was missing.
> 
> Thanks for the clue-by-four!  :)

Ok... That was one problem, but there was one more.  I added the
protocol line and tried again with this result:

-------------------------------------------
amavis[3518]: loaded base policy bank
amavis[3518]: loaded policy bank "AM.PDP-SOCK"
amavis[3518]: process_request: fileno sock=12, STDIN=0, STDOUT=1
amavis[3518]: prolong_timer new request - timer reset: timer set to = 480 s
amavis[3518]: process_request: suggested_protocol="AM.PDP" on UNIX
amavis[3518]: process_policy_request: 0, amavisd (ch1-P-idle), fileno=12
amavis[3518]: (!) policy protocol: INVALID ATTRIBUTE LINE:
/var/spool/courier/tmp/114528/D967099\n
amavis[3518]: (!) policy protocol: INVALID ATTRIBUTE LINE:
/var/spool/courier/tmp/114528/1145286389.3533.bnofmail2.buc.com\n
amavis[3518]: (!!) policy_server FAILED: Missing 'request' field at (eval
40) line 195, <GEN4> line 3.
amavis[3518]: TIMING [total 3 ms] - got data: 0 (2%)2, rundown: 3 (98%)100
courieresmtpd: submitclient: bad response from submit: setreply=450 4.5.0
Failure:%20Missing%20'request'%20field%20at%20(eval%2040)%20line%20195,%20<G
EN4>%20line%203..
courieresmtpd: error,relay=::ffff:172.16.17.69,from=<[EMAIL PROTECTED]>:
setreply=450 4.5.0
Failure:%20Missing%20'request'%20field%20at%20(eval%2040)%20line%20195,%20<G
EN4>%20line%203..
amavis[3518]: exiting process_request
amavis[3518]: post_process_request_hook: timer was not running
amavis[3518]: idle_proc, bye: was busy, 41.0 ms, total idle 0.000 s, busy
0.041 s
amavis[3518]: load: 100 %, total idle 0.000 s, busy 0.041 s
-------------------------------------------

Once again, I attempted removing the policy bank entries and that
solved the problem.  It now passes normal email and rejects eicar.

The amavisd.conf supplied with the 2.4.0 distribution has default
values for $interface_policy and $policy_bank that appear to be
incompatible with Courier.  The README.courier does not mention these
settings.  Should this be added to the readme?

The supplied amavisd.conf has these settings:

-------------------------------------------
$interface_policy{'SOCK'}='AM.PDP-SOCK'; 
$policy_bank{'AM.PDP-SOCK'} = { protocol=>'AM.PDP' };
-------------------------------------------

-- 
Bowie Bailey
BUC International


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to