Closed ghost closed 1 year ago
nexthop => '[nexthop-host]'
.$smtp_nexthop = (String($nexthop) =~ /\[.*\]/)
just looks for "does nexthop
contain brackets?"
The smtp_nexthop
+ split
area of postfix::transport
assumes you'll have a port attached to a nexthop and turn it into a host/port combination, except :port
doesn't have to be in nexthop
and the code acts like smtp_nexthop
guarantees one will be there.
I can't seem to get an environment set up to offer a PR here, but this is definitely a regression since circa ~1.8.0.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Valid postfix but breaks module
Valid puppet but breaks postfix
What are you seeing
Either puppet breaks or mail stops being sent.
What behaviour did you expect instead
Support the following valid transport options:
with pattern
Debug: AugeasPostfix transport - example.com: Closed the augeas connection Error: /Stage[main]/Main/Postfix::Transport[local]/Augeas[Postfix transport - example.com]: Could not evaluate: Save failed, see debug output for details