Hi all,

I wrote some code to let dbmail check ip restrictions for POP protocol (ipv4).
Hope it will be useful for someone...
I'm using dbmail-2.2.13

Patch source: attachment
Create_table: attachment

It will work as same to tcp wrapper setting by /etc/hosts.deny and hosts.allow

 id | client_idnr | service |   hosts_deny   |     hosts_allow
----+-------------+---------+----------------+---------------------
  1 |           5 | pop     | inet:0.0.0.0/0 | inet:192.168.1.0/24

users with client_idnr 5 can only use POP from 192.168.1.0/24

Attachment: ip_restrictions.patch
Description: Binary data

Attachment: restrictions.sql
Description: Binary data

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to