Radio Tron: > Hi, thank you for the help. Terry, I checked out: Postgrey instead. > It doesn't do what I want (system-wide cfg file) and no rate-limiting, > so I decided to try my own hand at it (I still need to check out > Amavisd):
> I wrote a small perl script and it's able to OK and REJECT the > stuff BUT: 1. How do I handle local mail being delivered by > programs like 'mail'? So long as the mail arrives via port 25, I > have no issues and my policy script is able to see the stuff, but > when i do a 'mail root', it doesn't work. You can restrict "mail" command submission (with the main.cf authorized_submit_users parameter) to root etc. accounts, and force ordinary users to use SMTP. Many command-line tools including MUTT and PINE have a submit-via-smtp option. There is a nice plugin at policyd.org that implements various SMTP limits for Postfix. > 3. How do I handle bounced mail and postmaster.. create a white-list > file for postmaster and put a rule saying PASS all.. will that > create a loophole where scumbags can spoof the FROM: field??? That is best done inside the extension: in a policy daemon or content filter. Wietse