On Wed, Sep 18, 2019 at 08:15:28AM -0000, Helmut Schneider wrote: > > > smtp_delivery_status_filter does what I need. > > > > yes, smtp_delivery_status_filter is a workaround to the defective > > design you use. > > I'm open for improvements. It's for my home usage, a relay in the > internet with a static ip forwarding mails to my server at home with an > ip changing every 24h connected via OpenVPN. What's you suggestions?
An improvement would be to configure your system to have the local resolver immediately return "SERVFAIL" for the no longer-reachable domains when the VPN is down. That would avoid long delays in applications waiting to resolve known unreachable hosts, but avoid false NXDOMAIN answers. -- Viktor.