Re: [AMaViS-user] Fwd: amavisd-release and socket

This is a discussion on Re: [AMaViS-user] Fwd: amavisd-release and socket within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Mike, > OK, I changed the $socket_name to 127.0.01:10024 and I can now connect to > the ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-08-2007
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Fwd: amavisd-release and socket

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
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:00 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0