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. 2. I assume that after and prior to the, MAIL FROM: RCPT TO:, normal Postfix handling and rules apply?? I hope that's not getting turned off! All I want to do is stick my snout in and say yes/no to specific users and JUNK everyone else. 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??? Please don't waste your time answering in detail. Just a rough yes/no, possible/not-possible will suffice. I guess I'd have to read the Definitive guide thoroughly to get a handle on this properly.