Hello, Thanks for your time and suggestion will sure try that out.
Regards, Muhammed Sameer --- On Wed, 11/26/08, mouss <[EMAIL PROTECTED]> wrote: > From: mouss <[EMAIL PROTECTED]> > Subject: Re: Customized Postfix Check > To: [EMAIL PROTECTED] > Cc: "Postfix users" <postfix-users@postfix.org> > Date: Wednesday, November 26, 2008, 9:36 AM > Muhammed Sameer a écrit : > > Salaam, > > > > Hello everyone, Can I write a postfix check myself? > > > > Actually, I want postfix to check for the quota and > status of the user in a database, and if the user is > overquota or if the status of the user is suspended, I want > postfix to accordingly bounce the message with the > appropriate bounce message. > > > > The database is updated by another application that we > have on our server. > > > > Is there an existing check that can help me do this, > or do I have to write another such custom check, if yes then > can please someone guide me to how can I do this. > > > > > if it's a simple lookup to a mysql/postgres db, then > use > check_recipient_access. > > if you need more, you can write a policy server. one was > posted to the > list some time ago. search the archives and you should find > it. > > PS. do not bounce. do reject. bounce means accept then > generate an NDR > later, which may cause backscatter. with reject, it is the > "other" side > which will have to generate the NDR (if it is a real MTA).