<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>Oh, i have missed that some how. time to to upgrade :)</div><div id="yui_3_16_0_ym19_1_1461641993899_7702"><br></div><div id="yui_3_16_0_ym19_1_1461641993899_7677">Thank you for the help.</div><div id="yui_3_16_0_ym19_1_1461641993899_7678"><br></div><div id="yui_3_16_0_ym19_1_1461641993899_7679">Best Regards,<br></div><div id="yui_3_16_0_ym19_1_1461641993899_7658"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On Monday, 25 April 2016, 20:36, Mark Martinec <Mark.Martinec+amavis@ijs.si> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div class="yqt8944622322" id="yqtfd62545">Hamy,<br clear="none"><br clear="none">> Hi, i would like to use unix socket instead of inet in amavisd for <br clear="none">> postfix to<br clear="none">> communicate with it and then secure it by setting appropriate <br clear="none">> permissions.<br clear="none">> However, i dot not want to disable the default AM.PDP-SOCK policy which <br clear="none">> is<br clear="none">> required for amavisd-release and maybe other scripts(and <br clear="none">> amavisd-milter) to work.<br clear="none">> also i might need to have multiple smtp unix sockets in future with <br clear="none">> different<br clear="none">> set of policy banks applied to them. How can one do so? it's easily <br clear="none">> possibly<br clear="none">> to do that with inet ports, but what about unix sockets?</div><br clear="none">> [...]<br clear="none"><br clear="none">amavisd-new-2.7.0 release notes, July 1, 2011 :<br clear="none"><br clear="none">- a policy bank may now be loaded based on a path name of a Unix socket<br clear="none"> receiving a connection.<br clear="none"><br clear="none"> Example use:<br clear="none"><br clear="none"> @listen_sockets = (<br clear="none"> "$helpers_home/amavisd.sock1",<br clear="none"> "$helpers_home/amavisd.sock2",<br clear="none"> "$helpers_home/amavisd.sock3",<br clear="none"> );<br clear="none"><br clear="none"> $interface_policy{"$helpers_home/amavisd.sock1"} = 'UX-S1';<br clear="none"> $interface_policy{"$helpers_home/amavisd.sock2"} = 'UX-S2';<br clear="none"> $interface_policy{"$helpers_home/amavisd.sock3"} = 'UX-S3';<br clear="none"><br clear="none"> $policy_bank{'UX-S1'} = { ... };<br clear="none"> $policy_bank{'UX-S2'} = { ... };<br clear="none"> $policy_bank{'UX-S3'} = { ... };<br clear="none"><br clear="none"><br clear="none">amavisd-new-2.8.0 release notes:<br clear="none"><br clear="none">- load all (both) applicable policy banks when %interface_policy contain<br clear="none"> both a "SOCK" entry and a Unix socket path name; and similarly when it<br clear="none"> contains both the "IPaddress:port" and a "port" entries. Previously<br clear="none"> the "SOCK" policy bank was not loaded when a socket path name entry<br clear="none"> existed in %interface_policy, and similarly a port-only -based policy<br clear="none"> bank was not loaded when a more specific "IPaddress:port" entry <br clear="none">existed;<br clear="none"><br clear="none"><br clear="none"><br clear="none">Mark<div class="yqt8944622322" id="yqtfd73698"><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>