msys.validate.dkim.get_domains
March 26, 2020
Name
msys.validate.dkim.get_domains — Return a list of valid signing domains
Synopsis
msys.validate.dkim.get_domains(msg, vctx);
msg: userdata, ec_message type vctx: userdata, validate_context type
Description
This function requires the dkim_validate module. msg
is a mail message. vctx
is the validation context. This function returns a list of valid signing domains.
require("msys.validate.dkim"); local mod = {}; function mod:validate_data_spool(msg, accept, vctx) local domain = msys.validate.dkim.get_responsible_domain(); print("msys.validate.dkim.get_responsible_domain returns ", domain); local domains = msys.validate.dkim.get_domains(msg, vctx); print("msys.validate.dkim.get_domains returns ", domains); return msys.core.VALIDATE_CONT; end msys.registerModule("test_dkim", mod);
Enable this function with the statement require('msys.validate.dkim');
.
See Also
msys.validate.dkim.get_responsible_domain, msys.validate.dkim.get_domains, msys.validate.dkim.reflect, msys.validate.dkim.sign, “dkim – DomainKeys Identified Mail Signatures”