On Wed, Oct 14, 2009 at 4:31 PM, Dan Schaefer <d...@performanceadmin.com> wrote:
> Bob Cohen wrote:
>>
>> I have set up SpamAssissin with an account to collect rejected emails.  Is
>> there a way to periodically empty the mail queue for that account with a
>> cron job or some other such method that does not require human intervention
>
> What is the purpose to collect the rejected mail if you are going to have an
> automated process to delete them?
>
> --
> Dan Schaefer


That's pretty obvious... to maintain a cache in case anyone is looking
for a message in the past X number of days, and then assume that if no
one missed it in X days, delete it.

As for the original question, it sounds like you need to be looking at
things that interact with the mailstore, not queues.  Once the message
is delivered, postfix does not handle it anymore.  You also have some
terminology mixed up, as what you are calling a "mail queue" is not
what postfix calls a mail queue.  You just happen to be using a
mailbox as a mail "queue", which is not the same as a postfix mail
queue.

As far as software to actually do that, I'm not sure.  Maybe if you
have mail setup through IMAP you could use sieve.  Not sure if
procmail could do it.  You're probably looking at a custom script.

Reply via email to