At Wed, 21 Sep 2005 12:53:46 +0200, Patrice wrote: > > I think I haven't explained it well :-) > > I want to check quota for incoming mails and reject emails if quota is over. > > I already use this script for sending 'quota exceeded' to my users >
What I do is run a script (attached) from cron at least every 30 minutes that creates an "alias" file which uses a special "error" address which causes my mailer to reject the recipient, with the given error message, at SMTP time. This technique works with Smail (which I use), and probably with minor adaptation with Exim, and maybe Postfix as well; though of course the specific format of the alias file will no doubt differ for those other mailers. As others have said already you could also use LMTP, but that would mean opening an LMTP connection (or re-using a cached connection) for every incoming SMTP transaction (which specified any locally deliverable recipient) so that the recipient could be verified. -- Greg A. Woods H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <[EMAIL PROTECTED]> Planix, Inc. <[EMAIL PROTECTED]> Secrets of the Weird <[EMAIL PROTECTED]>
mkcyrusoqlist
Description: Binary data
pgpzfSljpUi4S.pgp
Description: PGP signature
---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html