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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 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?
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?

motty.cruz

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:
maximal_queue_lifetime has no effect on mails already queued - howto change?
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?

Stefan Bauer
In reply to this post by Stefan Bauer
Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

postfix just drops (...) after issuing postsuper -r ALL:


Dec 21 21:24:51 mailserver postfix/postsuper[30232]: Requeued: 2 messages


Mails are still in queue. As you can see, the recipient address is invalid so i just want to purge them - but with a bounce message to the sender so he can resend it with correnct recipient.


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?

motty.cruz

maybe a silly question but did you restart Postfix service? there might be some other configuration issues that we don't know about?

On 12/21/2017 12:26 PM, Stefan Bauer wrote:
Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

postfix just drops (...) after issuing postsuper -r ALL:


Dec 21 21:24:51 mailserver postfix/postsuper[30232]: Requeued: 2 messages


Mails are still in queue. As you can see, the recipient address is invalid so i just want to purge them - but with a bounce message to the sender so he can resend it with correnct recipient.


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?

Wietse Venema
In reply to this post by Stefan Bauer
Stefan Bauer:
> 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:

To restart the queue manager:

# postfix reload

Queue life time is enforced by the queue manager.
Reply | Threaded
Open this post in threaded view
|

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

Viktor Dukhovni
In reply to this post by motty.cruz


> On Dec 21, 2017, at 3:21 PM, Motty Cruz <[hidden email]> wrote:
>
> I'm not sure if I understand you questions correctly.
>
> have you try re-queue the email with the following command:
> postsuper -r ALL

This is bad advice.  That would in fact extend the queue lifetime
of messages that are near expiration.

Changes in the queue lifetime take effect immediately, however,
messages are only expired after a failed delivery attempt, and
not just thrown away when the clock runs out.

Therefore, each deferred message needs to be tried at least
once more before it is bounced.  The time to retry the message
is not updated as a side-effect of changing the queue lifetime
(and 1h is way too small in any case, you're probably solving
the wrong problem).

To expedite retries, you can flush the queue, or flush individual
messages via "postqueue -f" or "postqueue -i <queue-id>" (check
the postqueue(1) manpage).

--
        Viktor.