User Tools

Site Tools


reference:lua_smtp_mx_control

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
Next revisionBoth sides next revision
reference:lua_smtp_mx_control [2016/12/16 10:02] paulreference:lua_smtp_mx_control [2016/12/16 10:10] – [Lua SMTP MX Control] paul
Line 1: Line 1:
 ======Lua SMTP MX Control====== ======Lua SMTP MX Control======
  
-Every time VPOP3 is going to send messages using direct MX sending, it runs a script called **mxout.lua** in the VPOP3 directory.+Every time VPOP3 is going to send messages using direct MX sending, it runs a script called **mxout.lua** which can be created/edited in Settings -> Scripts (or in the VPOP3 directory in VPOP3 v6.6 or earlier).
  
 =====Messages to be sent===== =====Messages to be sent=====
Line 62: Line 62:
   * checkCertThumbprint - string to check against the TLS certificate SHA-1 thumbprint. The connection will fail if the thumbprint doesn't match (case insensitive)   * checkCertThumbprint - string to check against the TLS certificate SHA-1 thumbprint. The connection will fail if the thumbprint doesn't match (case insensitive)
  
 +Example - don't use SSL when connecting to 'mail.broken.com'
 +
 +  function ServerDetails(params, headers actions)
 +    if (params["server"] == "mail.broken.com"
 +      actions["tryTLS"] = 0
 +    end
 +    return actions
 +  end
 +  
  
reference/lua_smtp_mx_control.txt · Last modified: 2023/07/28 16:41 by paul