Nico Angenon:
> hello,
> 
> I?d like to configure postfix to send bounce notification via another host :

Why should biunces follow a different path than non-bounces?

> i?ve tried to setup something like this :
> 
> in main.cf
> -> smtp_header_checks = regexp:/etc/postfix/header_checks
> 
> in /etc/postfix/header_checks
> -> /^From: MAILER-DAEMON.*/                  FILTER smtp:my_other_host.ltd

As documented you can't do that.

> I?ve also tried sender_dependent_relayhost_maps, it didn?t work.

Bounces have the EMPTY envelope sender address, not MAILER-DAEMON.
Instead you need to match on <>:

    empty_address_relayhost_maps_lookup_key (default: <>)
           The sender_dependent_relayhost_maps search string  that  will  be  
used
           instead of the null sender address.

        Wietse

Reply via email to