haraka / Haraka

A fast, highly extensible, and event driven SMTP server
https://haraka.github.io
MIT License
5.08k stars 661 forks source link

plugin/relay_acl throws error when ipv6 is being used; tries to match ipv6 address against ipv4 address from config-file #428

Closed ghost closed 10 years ago

ghost commented 10 years ago

[DEBUG] [C20F4C0F-A2D7-4664-B2CF-634C97D9136A] [relay_acl] checking if 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:60bd is in 127.0.0.1/32 [CRIT] [C20F4C0F-A2D7-4664-B2CF-634C97D9136A] [core] Plugin relay_acl failed: Error: ipaddr: cannot match ipv6 address with non-ipv6 one at IPv6.ipaddr.IPv6.IPv6.match (/usr/local/Haraka/node_modules/ipaddr.js/lib/ipaddr.js:251:15) at is_acl_allowed (/usr/local/Haraka/plugins/relay_acl.js:74:30) at Plugin.exports.check_acl (/usr/local/Haraka/plugins/relay_acl.js:16:9) at Object.plugins.run_next_hook (/usr/local/Haraka/plugins.js:334:28) at Object.plugins.run_hooks (/usr/local/Haraka/plugins.js:223:13) at Connection.rdns_response (/usr/local/Haraka/connection.js:628:13) at /usr/local/Haraka/connection.js:612:26 at asyncCallback (dns.js:68:16) at Object.onanswer as oncomplete

msimerson commented 10 years ago

PR #515 resolves this issue.