User Tools

Site Tools


reference:lua_smtp_mx_server_rules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
reference:lua_smtp_mx_server_rules [2026/02/24 12:16] – [CheckServer] paulreference:lua_smtp_mx_server_rules [2026/02/24 15:50] (current) – [Lua SMTP MX Server Rules] paul
Line 3: Line 3:
 Every time VPOP3 checks for remote MX server for sending messages using direct MX sending, it runs a script called **mxserverrules.lua** which can be created/edited in Settings -> Scripts (or in the VPOP3 directory in VPOP3 v6.6 or earlier). Every time VPOP3 checks for remote MX server for sending messages using direct MX sending, it runs a script called **mxserverrules.lua** which can be created/edited in Settings -> Scripts (or in the VPOP3 directory in VPOP3 v6.6 or earlier).
  
 +====Global Variables====
 +Starting with v8.8, the following global variables are defined:
 +
 +  * ConnectionId - the numeric Sender/Connection ID
 +  * ConnectionName - the text Sender/Connection name
 =====GetCheckCache===== =====GetCheckCache=====
 ''GetCheckCache("<Domain>", numRetries, messageSize)'' ''GetCheckCache("<Domain>", numRetries, messageSize)''
Line 24: Line 29:
 ===As of VPOP3 8.8 and later=== ===As of VPOP3 8.8 and later===
  
-If **all** MX servers for a message are filtered out, then the message will not be sent, but will be held in the queue+If **all** MX servers for a message are filtered out, then the message will not be sent, but will be held in the queue without error (previously the message would be failed in that situation). 
 A second numeric value can be returned if desired, which will hold the message for that many minutes A second numeric value can be returned if desired, which will hold the message for that many minutes
  
reference/lua_smtp_mx_server_rules.1771935369.txt.gz · Last modified: by paul