Bob Cohen a écrit :
> I have set up SpamAssissin with an account to collect rejected emails. 

There's a terminology problem here. you can't collect _rejected_ mail.
here, reject means the transaction is refused, so you don't see the message.

you probably mean mail tagged as spam by spamassassin.

> 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

yes, but it depends on where and how you store mail. in short, this is
not postfix related (postfix only handles transport. as soon as the
message is delivered to a mailbox, postfix is out).

if you use maildir, you can simply delete "old" files. I would however
recommend using a two step process: first move to a "to delete" place,
then after another delay, purge the "to delete" mail. this gives an
additional security option, should your script have a bug.

Reply via email to