Bob Proulx:
> I have been trying to deduce if it is possible to force a message
> waiting in the mail queue with temporary errors (domain name
> resolution failures) to bounce right now instead of waiting for the
> timeout.

It would be incorrect to force a message to bounce. Messages can
have multiple recipients. It would be more correct to force-bounce
a recipient.

To flag a destination or recipient as undeliverable:

/etc/postfix/main.cf:
    transport_maps = hash:/etc/postfix/transport

/etc/postfix/transport:
    typodomain.example  error:5.1.2 Bad destination system address

Flagging one recipient in a queue file as undeliverable requires a
lot of code that currently does not exist: 1) a way for postsuper
to mark as "expired" one recipient in the middle of a list of
recipients, 2) a way to extract from the defer logfile the record
that says why that recipient was not yet delivered for use in the
non-delivery notification, and 3) a way to mark that defer logfile
record as "deleted" so that the problem won't be reported again.

        Wietse

Reply via email to