I think you want:
timeout_frozen_after = 1d
From spect.txt:
timeout_frozen_after Type: time Default: 0s
If "timeout_frozen_after" is set to a time greater than zero, a
frozen message of any kind that has been on the queue for longer than
the given time is automatically cancelled at the next queue run. If it
is a bounce message, it is just discarded; otherwise, a bounce is sent
to the sender,in a similar manner to cancellation by the -Mg command
line option.
If you want to timeout frozen bounce messages earlier than other kinds
of frozen message, see "ignore_bounce_errors_after".
ldurham - safemailpro.com wrote:
> I host many opt-in mailing lists on one of my servers. My mail queue seems
> to keep several thousand mails in the queue that seem to never be delivered.
> They always come up with a re-try deferred or re-try not reached error, and
> will remain in the queue until I delete them. I am using the standard Begin
> Retry of: * * F,2h,15m; G,16h,1h,1.5; F,4d,8h
> and still have mails in the queue after 7 days.
>
> Is there some way to fail any mail in the queue that has not delivered after
> 1 day no matter what the reason for non-delivery is? I have qrunners going
> out every 15m, auto_thaw =10m. anyones help would be appreciated.
>
> Les Durham
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>