There seems to be no real clean way of doing this, I can think of two ways.

1) Modify your smtp server ( sendmail ) not to process the queue automatically.
If you are using sendmail you would the start up script would have sendmail -bd -q5m remove the -q5m after the end of the processing clear the queue by sendmail -q only if there have been no more mails recd

2) Run two sendmail processs , on different ports , and different queues
Move the mails from one Q to another after processing




Marcelo wrote:
Hi people ,
I want to modify the headers of the mails in the /var/spool/queue before delivery, something like an antivirus scan that lock the incoming mail in the queue until the mail is scanned and then sendmail makes the delivery ...I have the script to modify the header ... then I can open the queue directory and pass every message like an argument to the script ... but I don't have a clue of how to do that...please help

Thanks a lot

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to