VPOP3 Lua
VPOP3 Lua is a scripting language built into VPOP3 2.0.2 and later. This area of our website is dedicated to this powerful new facility.
VPOP3 Lua is based on the Lua scripting language, so for basic language information we recommend that you use the documentation from the main Lua site.
VPOP3 Lua is based on callbacks. At certain times during processing, VPOP3 will attempt to call certain Lua functions from certain files.These Lua functions can process data and often modify the way VPOP3 behaves.
For instance, when an SMTP Server session is started, VPOP3 loads 'SMTPSVR.LUA' and attempts to call the 'Start' Lua function. Then, when the SMTP client sends the 'HELO' command, VPOP3 attempts to call the 'DoHELO' Lua function.
The current VPOP3 Lua documentation is available from here.
Some of the ready-written scripts available for VPOP3 Lua are:
- SPF (Sender Policy Framework) Processor
- Restrict certain users to sending to certain recipients
- Sorting marked spam into a user's mail folder
- Send messages below a certain size to a specified address
- Copy all messages to a specified mailbox
- Filter spam based on a 'Spam Score' (alternative implementation)
- Mail Interception


