Snawoot / postfix-mta-sts-resolver

Daemon which provides TLS client policy for Postfix via socketmap, according to domain MTA-STS policy
MIT License
117 stars 23 forks source link

Add support for postfix [] and port notation #50

Closed galme closed 4 years ago

galme commented 4 years ago

Changes When using a relay, special notation ([host]:port) is allowed for specifying the next-hop. Details: http://www.postfix.org/postconf.5.html#relayhost

This change addresses that by extracting the domain-like content from such a request and verifying it's not an IP address.

Change resolves #49

Testing Added test cases to cover the changes. Verified all tests passing for tox's py36 test environment in a local Travis container.

Snawoot commented 4 years ago

Perfect! Thank you!

Snawoot commented 4 years ago

Released in package version v0.7.1 (PyPI package, Docker Hub image tags 0.7.1 and latest)