How to alter content-filter for messages that are already queued

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to alter content-filter for messages that are already queued

Petr Bena
Hello,

Someone smart added garbage to our postfix config, which resulted in
following errors in log:

postfix/smtp[29793]: fatal: garbage after numerical service in server
description: [127.0.0.1]:27, scan:127.0.0.1:10025

The extra string starting with comma was obviously wrong. Before we
noticed that config was malformed, about 6000 e-mails were queued.

Now that we fixed the config, all e-mails that are newly added to queue
are sent without troubles, but these 6000+ e-mails seem to contain old
information about content_filter, when I execute postcat, I see this in
first few lines:

postcat -q 0FA9A4B8973
*** ENVELOPE RECORDS deferred/0/0FA9A4B8973 ***
message_size:           10286             626 1               0
message_arrival_time: Tue Jun 13 02:50:34 2017
create_time: Tue Jun 13 02:50:34 2017
content_filter: smtp:[127.0.0.1]:27, scan:127.0.0.1:10025

As you can see "content_filter" is part of message itself, including the
garbage string that was already fixed in config. When I try to flush
queue, I see same errors about garbage in config, which is apparently
taken from queued message (there is no such a string in config anymore).

To make things more complex, we are running ancient version of postfix
(mail_version = 2.3.3).

Is there any way to "alter" the content_filter of messages that were
already inserted to queue?

Thanks

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to alter content-filter for messages that are already queued

Tobi
Did you try to re-queue such a message?

postsuper -r QUEUE_ID

or postsuper -r ALL (to re-queue all)


On 06/13/17 13:19, Petr Bena wrote:

> Hello,
>
> Someone smart added garbage to our postfix config, which resulted in
> following errors in log:
>
> postfix/smtp[29793]: fatal: garbage after numerical service in server
> description: [127.0.0.1]:27, scan:127.0.0.1:10025
>
> The extra string starting with comma was obviously wrong. Before we
> noticed that config was malformed, about 6000 e-mails were queued.
>
> Now that we fixed the config, all e-mails that are newly added to
> queue are sent without troubles, but these 6000+ e-mails seem to
> contain old information about content_filter, when I execute postcat,
> I see this in first few lines:
>
> postcat -q 0FA9A4B8973
> *** ENVELOPE RECORDS deferred/0/0FA9A4B8973 ***
> message_size:           10286             626 1               0
> message_arrival_time: Tue Jun 13 02:50:34 2017
> create_time: Tue Jun 13 02:50:34 2017
> content_filter: smtp:[127.0.0.1]:27, scan:127.0.0.1:10025
>
> As you can see "content_filter" is part of message itself, including
> the garbage string that was already fixed in config. When I try to
> flush queue, I see same errors about garbage in config, which is
> apparently taken from queued message (there is no such a string in
> config anymore).
>
> To make things more complex, we are running ancient version of postfix
> (mail_version = 2.3.3).
>
> Is there any way to "alter" the content_filter of messages that were
> already inserted to queue?
>
> Thanks


signature.asc (868 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to alter content-filter for messages that are already queued

Petr Bena
This seems to do the trick!

Thanks

On 06/13/17 14:19, Tobi wrote:

> Did you try to re-queue such a message?
>
> postsuper -r QUEUE_ID
>
> or postsuper -r ALL (to re-queue all)
>
>
> On 06/13/17 13:19, Petr Bena wrote:
>> Hello,
>>
>> Someone smart added garbage to our postfix config, which resulted in
>> following errors in log:
>>
>> postfix/smtp[29793]: fatal: garbage after numerical service in server
>> description: [127.0.0.1]:27, scan:127.0.0.1:10025
>>
>> The extra string starting with comma was obviously wrong. Before we
>> noticed that config was malformed, about 6000 e-mails were queued.
>>
>> Now that we fixed the config, all e-mails that are newly added to
>> queue are sent without troubles, but these 6000+ e-mails seem to
>> contain old information about content_filter, when I execute postcat,
>> I see this in first few lines:
>>
>> postcat -q 0FA9A4B8973
>> *** ENVELOPE RECORDS deferred/0/0FA9A4B8973 ***
>> message_size:           10286             626 1               0
>> message_arrival_time: Tue Jun 13 02:50:34 2017
>> create_time: Tue Jun 13 02:50:34 2017
>> content_filter: smtp:[127.0.0.1]:27, scan:127.0.0.1:10025
>>
>> As you can see "content_filter" is part of message itself, including
>> the garbage string that was already fixed in config. When I try to
>> flush queue, I see same errors about garbage in config, which is
>> apparently taken from queued message (there is no such a string in
>> config anymore).
>>
>> To make things more complex, we are running ancient version of postfix
>> (mail_version = 2.3.3).
>>
>> Is there any way to "alter" the content_filter of messages that were
>> already inserted to queue?
>>
>> Thanks
>

Loading...