Mike,
> OK, I changed the $socket_name to 127.0.01:10024 and I can now connect to
> the amavisd-new daemon. But when I execute the command:
>
> # amavisd-release spam-2zAVsTgWNieU.gz
>
> my logs show the output below (this is with log_level = 5) and appears to
> be hung. Can anybody explain to me what I am doing wrong here?
> amavis[30448]: process_request: suggested_protocol="" on TCP
> amavis[30448]: (30448-01) SMTP> 220 [127.0.0.1] ESMTP amavisd-new
> service ready
> amavis[30448]: (30448-01) SMTP< request=release\r\n
> amavis[30448]: (30448-01) SMTP: 500 5.5.2 Error:
> bad syntax; PENALIZE: request=release\r\n
You are sending an AM.PDP protocol request (also used for release
requests) to an amavisd port which is expecting a SMTP protocol.
You need to let amavisd listen on an additional socket or port,
configure that socket to expect AM.PDP protocol, and tell
amavisd-release to send its requests to that dedicated socket.
If you prefer multiple ports (instead of a Unix socket for releases),
you can do something like:
$inet_socket_port = [10024,9998]; # listen on multiple TCP ports
$interface_policy{'9998'} = 'AM.PDP-INET';
$policy_bank{'AM.PDP-INET'} = {
protocol => 'AM.PDP', # Amavis policy delegation protocol
inet_acl => [qw( 127.0.0.1 [::1] )], # limit access to loopback
auth_required_release => 0, # do not require secret_id for release
};
(and modify amavisd-release to connect to TCP port 9998)
Or alternatively, using Unix sockets:
$unix_socketname = "$MYHOME/amavisd.sock"; # amavisd-release or amavis-milter
$inet_socket_port = [10024];
$interface_policy{'SOCK'} = 'AM.PDP-SOCK'; # applies to $unix_socketname
$policy_bank{'AM.PDP-SOCK'} = {
protocol => 'AM.PDP', # Amavis policy delegation protocol
auth_required_release => 0, # do not require secret_id for release
};
(in which case amavisd-release should send its requests to
a Unix socket amavisd.sock in $MYHOME directory)
Mark
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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/