hi,
my first message to the list. This might be RTFM but here goes.

I'm setting up a postfix smtp only server. I wanted to restrict
1. IP's that can send through the server.
2.  the number of emails that can be sent via a Ip per hour.

for (1) I added the allowed IP's  to mynetworks and it kinda works,
sending from other ip's gives a relay error

for (2) I decided to implement policyd. the service is running on the
port, however i am lost at the configuration of postfix. README
mentions the following
  smtpd_recipient_restrictions =
    reject_unauth_destination
    reject_unlisted_recipient
    check_policy_service inet:127.0.0.1:10031

if I add that all IP's sending emails get Relay Access Denied. If I add
  smtpd_recipient_restrictions =
    permit_mynetworks
    reject_unauth_destination
    reject_unlisted_recipient
    check_policy_service inet:127.0.0.1:10031

it sends emails, but I dont think policyd rules are being applied (or
my rule given below is incorrect)
here's the policy in the mysql db
INSERT INTO throttle \
 (_from,_count_max,_quota_max,_time_limit,_mail_size,_date,_priority)
 VALUES ('xxx.xxx.xxx.xxx',
          2,
          2500,
          600,
          10240000,
          UNIX_TIMESTAMP(),
          1);

(2 emails in 10 minutes)

As you can see I am pretty novice at this. Any help would be really
appreciated,.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to