Hello,
I have a number of networks from which 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 have already tried a policy that limits (setting a quota) the number
of messages by sender (from any IP to any IP, excluding mail from "<>")
to a certain number during a time slot.
My aim, anyway, is to apply a such policy for outgoing messages
(including internal-to-internal messages). So I have to define a group
which contains the IPs enabled for relay through my mail server.
The problem is that I have no a static list of IPs/networks. Infact, my
Postfix looks up the underlying database to permit or deny the relay to
a client:
smtpd_recipient_restrictions =
check_client_access
proxy:mysql:/etc/postfix/mysql-check-client-access.cf
where the query is:
query = select action from access where inet_aton(ip) & inet_aton(mask)
= inet_aton('%s') & inet_aton(mask) order by mask DESC limit 0,1;
How could define a such group in Policyd V2?
At the same time, I place the same question to Postfix and Amavisd-new
lists, hoping that someone can suggest me a "to the bottom" solution to
this issue..
Thanks,
rocsca
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users