Hello,

I have a number of networks from which it is possible to use my mail
gateway system (Postfix+Amavisd-new+MySQL) to relay email messages
(directly through a mail client or through another MTA that uses my mail
gateway system as smart host). The mail gateway system moreover is used
as MX record for the email domains that I maintain.

I apply a policy service to messages as follow:

smtpd_recipient_restrictions =
...
    check_policy_service inet:127.0.0.1:10031

smtpd_end_of_data_restrictions =
    check_policy_service inet:127.0.0.1:10031

Moreover, my Amavisd-new setup uses a policy bank for "mark" message
generated inside one of my network:

$interface_policy{'10026'} = 'SENDERBYPASS';

$policy_bank{'SENDERBYPASS'} = {
        originating => 1,
};

Having setup the following restriction in postfix:

smtpd_client_restrictions =
    check_client_access
proxy:mysql:/etc/postfix/mysql-check-client-filter-access.cf

Where:

query = select IF(STRCMP(action,'OK'),action,'FILTER
smtp-amavis:[127.0.0.1]:10026') from access where inet_aton(ip) &
inet_aton(mask) = inet_aton('%s') & inet_aton(mask) order by mask DESC
limit 0,1;

I would like to know if there is a way so that the policy server is
applied only inside the policy bank.

Thanks,

rocsca

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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