Tobias Knecht wrote:
Hi,

weired idea. ;-)

We are using qpsmtpd as a spamtrap MTA. The mails are stored in a
MailDir and after that beeing analyzed by some scripts. Sometimes it
happens that the scripts are not fast enough to handle all stored email.

Is there a way to receive messages, but drop them if number of files in
/MailDir/new/ is higher X?

If your analysis script periodically figured out how many files were in MailDir/new (opendir(...); $num=scalar(readdir(...)) or some such, it could write a file called "stop" in MailDir new if it had gotten too far behind, and your archiving module just checks for file existance before saving a copy. When the files in the directory drops below the threshold, it'd remove the stop file. Or something similarly brute-forceish.
  • drop module Tobias Knecht
    • Re: drop module Chris Lewis

Reply via email to