Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postfix::transport ignores destination if nexthop includes [] #384

Open
auebergang opened this issue Mar 5, 2024 · 0 comments
Open

postfix::transport ignores destination if nexthop includes [] #384

auebergang opened this issue Mar 5, 2024 · 0 comments

Comments

@auebergang
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.15 (puppetserver)
  • Ruby: 2.7
  • Distribution: Centos 7
  • Module version: 4.4.0

How to reproduce (e.g Puppet code you use)

Using the example

postfix::transport { 'gmail.com'
  destination => smtp,
  nexthop     => '[smtp.google.com]:25'
}

What are you seeing

produces an invalid transport map config in /etc/postfix/transport

gmail.com [smtp.google.com]:25

with postfix logging error messages like,

postfix/qmgr[1847]: warning: connect to transport private/[smtp.google.com]: No such file or directory

What behaviour did you expect instead

This should be (in /etc/postfix/transport)

gmail.com smtp:[smtp.google.com]:25

Output log

Any additional information you'd like to impart

Being able to set any destination would be great. It's currently ignored here if nexthop includes [] but I don't think [] is exclusive to smtp, it just disables MX DNS lookups

See the examples for RESULT FORMAT at transport(5)

e.g.

postfix::transport {
  'a.com':
    destination => relay,
    nexthop     => '[smarthost.a.com]:25';
  'b.com':
    destination => smtp,
    nexthop     => '[10.0.0.1]:25';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant