======DMARC Reporter Script====== (from VPOP3 v8.6 onwards) This script lets you customise how VPOP3 sends DMARC reports to the sending domain. This can be useful in case the sending domain's DMARC configuration is incorrect as that can cause errors sending the reports or cause messages to be 'stuck' in VPOP3's Outqueue. These problems won't cause any lasting damage, but may be inconvenient or annoying, so you can alter the behaviour using Lua scripting If you want more complex signatures on outgoing emails, rather than the static text/HTML you can define within VPOP3, then you can use a simple Lua script to define the signature. The Lua script is stored in a file called dmarcreporter.lua in the VPOP3 directory in VPOP3 v6.6 and earlier, or managed through the Settings → Scripts page in VPOP3 v6.7 and later. ====CheckRecipients==== For each domain to which a DMARC aggregate report will be sent, VPOP3 calls the CheckRecipients function to validate the report's recipients CheckRecipients(, , , , , ) The function returns a table containing the new recipient email addresses ====GetMessageDetails==== Before sending the report, VPOP3 calls the GetMessageDetails function to allow the script to change some message details: GetMessageDetails(, , , , ) The function returns values: - The sender email address to use - The sender name to use - The Submitter domain to use - The time to delete the message from the Outqueue (either a number of seconds, or an ISO-8601 format date/time). "" = default (added in v8.6) - The time to hold the message before sending (either a number of seconds, or an ISO-8601 format date/time). "" = default (added in v8.6) The 'submitter domain' is the 'Submitter' part of the report subject line as defined in RFC 7489 Section 7.2.1.1 (https://www.rfc-editor.org/rfc/rfc7489#section-7.2.1.1)