Adam,

> Anyone know the proper setup for the old amavis-milter.c with
> amavisd-new 2.3.x or 2.4.0-pre7?
>
> With 20030616 version of amavisd-new you would just define:
> $forward_method = undef;
> $unix_socketname = "$MYHOME/amavisd.sock";

Should still work the same way. The default protocol in amavisd
is chosen to be AM.CL (for the old milter helper) when:

    if $unix_socketname ne '' &&
       !(grep {$needed_protocols_in{$_}} qw(AM.PDP COURIER));

In plain words: if a Unix socket is specified
and no other protocols are chosen explicitly.

> Anyone know what to do with the lines below to work with the
> amavis-milter.c that comes with the latest versions of amavisd-new?

I tested it (and 2.4.0) with sendmail-8.13.5 and it still works fine.

> The 
> default config file mentions something about not using the settings with
> the milter that comes with amavisd-new but it is not clear if that means
> commenting only one of them out or both or defining them to something
> else (undef, etc).

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

This example is for the Petr Rehor's milter, which talks AM.PDP.

You need AM.CL, the rest is the same:

$unix_socketname = "$MYHOME/amavisd.sock";
$interface_policy{'SOCK'}='AM.PDP-SOCK';
$policy_bank{'AM.PDP-SOCK'} = { protocol=>'AM.CL' };

If you have no need for amavisd-release (which does use
AM.PDP protocol, so you need one protocol on one socket
and another on the other, using policy banks),
the plain vanilla setup is:

$unix_socketname = "$MYHOME/amavisd.sock";
$protocol=>'AM.CL';

(I believe that not even the $protocol=>'AM.CL' is necessary,
if you don't mention 'protocol' in any policy bank).

The milter is then started for example as:

su vscan -c \
 '/usr/local/sbin/amavis-milter -p local:/var/amavis/amavis-milter.sock'  


Mark



-------------------------------------------------------
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
[email protected]
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