Hi All,
I have a few questions regarding the implementation of policyd.
Here's a basic outline;
For a few (conceived by many as stupid) reasons we're using policyd. We require
the ability to monitor how many bytes of data roaming smtp clients are relaying
via our mail gateways and possibly restrict them to a quota (so many mb/gb per
month, etc).
We've setup a test mail gateway before we start implementing anything.
Policyd seems exactly what we're after. We've added a 'passwd' column to the
throttle table and have sasl authenticate from mysql using the _from and
passwd(which weve added) fields (this part is working fine) and it's
authenticating as required.
Next stage is to implement the quotas and policyd itself. which we've done
I have policyd running in a term in the foreground so can see all the debug
output. If i telnet to the port policyd is running on i see some debug output
like so;
DEBUG: saved fd: numi = 0, connfd = 4
connection from: 127.0.0.1 port: 59581 slots: 0 of 4096 used
DEBUG: fd: 4 select(): fd 4 is ready for read
DEBUG: fd: 4 connection got an EOF, data_read = 0
DEBUG: fd: 4 shutting down fd 4
Problem is im not seeing anything when a client connects to the smtpd on 25 (so
postfix isnt connecting to policyd)
Here's my test box's main.cf
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,
reject_unlisted_recipient,
reject_unauth_destination,
check_policy_service inet:127.0.0.1:10031
permit_sasl_authenticated
(i've tried with permit_sasl_authenticated before the check_policy line also)
Perhaps my logic is flawed here, and im doing something wrong. But to clarify i
require smtp auth using mysql to lookup user/pass (which ive done by modding
the throttle table to add passwd column), then based on this authentication i
require the ability to track bytes per specified time period
Any information or help here would be greatly appreciated.
Regards
Jon Duggan
Nuco Technologies Ltd
[EMAIL PROTECTED]
Tel. 0870 165 1300
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users