On Sun, 30 Aug 2009, Olivier Nicole wrote: > Is there a way (policy?) to have POstfix check for the user's Unix > quota before delivering a local mail?
Sure. > I am using procmail as MDA, so when procmail finds that the mail > cannot be delivered because the user is over quota, it's too late. Indeed! Backscatter is bad. > Hence I would like to have a sort of > smtpd_end_of_data_restrictions = check_policy_service something > that could accept/reject the mail before it is being handled to the MDA. You could write a policy service to do this, or simply use a utility outside of Postfix to update an access(5) map that sends 4xx or 5xx responses for users that exceed quota. -- Sahil Tandon <sa...@tandon.net>