I would like to write an smtpd policy server[1] that will cause incoming
mail to be rejected during smtp if a local recipient (a Linux user in my
case) is exceeding his filesystem storage quota.
Postfix supplies the envelope recipient but not the local recipient to the
smtpd policy server.
I cannot find a practical way of programmatically determining the local
recipient given the envelope recipient.
Numerous searches have turned up nothing.
Looking for suggestions and ideas.
Rahul
[1] See: http://www.postfix.org/SMTPD_POLICY_README.html.