maximal_queue_lifetime has no effect on mails already queued - howto change?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

maximal_queue_lifetime has no effect on mails already queued - howto change?

Stefan Bauer
maximal_queue_lifetime has no effect on mails already queued - howto change?

damn. thats it. Thank you Motty! I just forgot that after re-queue it has wait $maximal_queue_lifetime in queue.

Changed it for testing to 1m and mails were gone with non-delivery notification to sender.


Thank you!


Stefan


-----Ursprüngliche Nachricht-----
Von: Motty Cruz <[hidden email]>
Gesendet: Donnerstag 21 Dezember 2017 21:23
An: Stefan Bauer <[hidden email]>; [hidden email]
Betreff: Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

I'm not sure if I understand you questions correctly.

have you try re-queue the email with the following command:
postsuper -r ALL

depending on your OS, I used FreeBSD it would usually be here:
/var/spool/postfix/deferred/

Thanks,
Motty

On 12/21/2017 12:06 PM, Stefan Bauer wrote:
Dear Users,

i changed maximal_queue_lifetime from 5d to 1h but mails already in queue are not affected by this change. How can i remove mails from the queue and send non-delivery-notifications to senders? i dont want to wait more days. my queue shows:

root@mailserver:/home/cwadmin# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
80D2C57F14D   214006 Mon Dec 18 11:46:31  [hidden email]
(host smtp.provider.com[1.2.3.4] said: 450 4.1.2 [hidden email]: Recipient address rejected: Domain not found (in reply to RCPT TO command))
                                         [hidden email]

712DE57EAE2  22278420 Thu Dec 21 17:04:43  [hidden email]
(host smtp.provider.com[1.2.3.4] said: 450 4.1.2 [hidden email]: Recipient address rejected: Domain not found (in reply to RCPT TO command))
                                         [hidden email]

thank you!

Stefan

Reply | Threaded
Open this post in threaded view
|

Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

Viktor Dukhovni


> On Dec 21, 2017, at 3:33 PM, Stefan Bauer <[hidden email]> wrote:
>
> damn. thats it. Thank you Motty! I just forgot that after re-queue it has wait $maximal_queue_lifetime in queue.
> Changed it for testing to 1m and mails were gone with non-delivery notification to sender.

Still a bad idea, any other email that comes in during that time will may
become collateral damage to the unreasonably short queue lifetime.  To
expire mail to an unreachable destination that tempfails, add a transport
entry:

        somewhere.example  error:5.1.2 destination unreachable

rebuild the transport table, send one message that's not to that
destination (to flush the IIRC queue-manager's one-slot transport
resolution cache) and then flush the queue.  Avoid changing the
queue lifetime.

--
        Viktor.