how to reroute messages in queue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to reroute messages in queue

James B. Byrne
postfix v-3.4.9 on FreeBSD-12.

We run our postfix mail exchangers in FreeBSD jails.  Following the conversion
of one of these from ezjail to iocage we encountered a problem with amavisd and
opendkim resulting from the different manner in which iocage handles the
loopback address.

These issues have been resolved.  However, there are 20 messages stuck in the
delivery queue all having the same reason:

AD79220201  1501819 Mon Mar 16 08:34:42  [hidden email]
(delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024:
Connection refused)

Is there any way to change the queued messages target address from 127.0.0.1 to
the one assigned by iocage, in this case 127.0.32.1?

Sincerely,


--
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:[hidden email]
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

Reply | Threaded
Open this post in threaded view
|

Re: how to reroute messages in queue

Wietse Venema
James B. Byrne:

> postfix v-3.4.9 on FreeBSD-12.
>
> We run our postfix mail exchangers in FreeBSD jails.  Following the conversion
> of one of these from ezjail to iocage we encountered a problem with amavisd and
> opendkim resulting from the different manner in which iocage handles the
> loopback address.
>
> These issues have been resolved.  However, there are 20 messages stuck in the
> delivery queue all having the same reason:
>
> AD79220201  1501819 Mon Mar 16 08:34:42  [hidden email]
> (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024:
> Connection refused)

Is that a content filter setting? You may be able to work around
that with "postsuper -r AD79220201". That command moves the message
to the maildrop queue. From there on, Postfix ignores the content
filter record, and handles the message as if it is submnitted with
/usr/sbin/sendmail. If you have enabled content inspection for the
pickup daemon, then the message will get a new content_filter record
with the correct IP address.

        Wietse

> Is there any way to change the queued messages target address from 127.0.0.1 to
> the one assigned by iocage, in this case 127.0.32.1?
>
> Sincerely,
>
>
> --
> ***          e-Mail is NOT a SECURE channel          ***
>         Do NOT transmit sensitive data via e-Mail
>  Do NOT open attachments nor follow links sent by e-Mail
>
> James B. Byrne                mailto:[hidden email]
> Harte & Lyne Limited          http://www.harte-lyne.ca
> 9 Brockley Drive              vox: +1 905 561 1241
> Hamilton, Ontario             fax: +1 905 561 0757
> Canada  L8E 3C3
>
>
Reply | Threaded
Open this post in threaded view
|

Re: how to reroute messages in queue

James B. Byrne


On Mon, March 16, 2020 13:37, Wietse Venema wrote:

>
> Is that a content filter setting? You may be able to work around
> that with "postsuper -r AD79220201". That command moves the message
> to the maildrop queue. From there on, Postfix ignores the content
> filter record, and handles the message as if it is submnitted with
> /usr/sbin/sendmail. If you have enabled content inspection for the
> pickup daemon, then the message will get a new content_filter record
> with the correct IP address.
>
> Wietse
>

Thank you very much.  That worked perfectly

for Q in $(mailq | grep Mar | cut -f1 -d" "); do postsuper -r $Q; done


--
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:[hidden email]
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3