This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| reference:dmarc_reporter_script [2023/07/28 16:38] – created paul | reference:dmarc_reporter_script [2023/11/12 09:51] (current) – [GetMessageDetails] paul | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| (from VPOP3 v8.6 onwards) | (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' | ||
| + | |||
| + | 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' | ||
| + | |||
| + | 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). "" | ||
| + | - The time to hold the message before sending (either a number of seconds, or an ISO-8601 format date/time). "" | ||
| + | |||
| + | The ' | ||