Fulltext results:
- SMTP Server Lua Scripting
- the message terminator . has been received at the end of a message * **CheckRecipients()** - (v6.3+ Enterprise Only) called at the end of a message to check if recipients are allowed ... ients()** - (v6.3+ Enterprise Only) called at the end of a message to allow customised logging of recip... ocked()** - (v6.3+ Enterprise Only) called at the end of a message if recipients have been blocked to a
- User Manager Script
- sername]) then return users[Username] end return Username; end </code> or <code> function TranslateUsername(Protocol, Username) -- Re... "@company%.com$", ""); return Username; end </code> If you need, we can produce a script fo
- Outgoing Message Scripting
- if not SenderSubject then SenderSubject = "..." end end if string.upper(v[1]) == "TO" then SenderAddressTo = v[2] if not SenderAddressTo then SenderAddressTo = "..." end end if string.upper(v[1]) == "FROM" then -- SenderAddressFrom = "Alexander <alexander@my-sec
- Error Handling Scripting
- return title, message, target, sender, false; end ===Components=== This is a bit-mask of the fol
- DMARC Reporter Script
- n>, <RUA entry from DMARC record>, <start time>, <end time>, <DMARC report ID>, <list of recipients>)
- POP3 Client Lua Scripting
- ctions need to be performed on the message. * **End()** - called at the end of the POP3 session. =====ProcessMessage()===== ''ProcessMessage("<mailfrom>... rt of the message where this section starts * End number - the offset from the start of the message
- Lua SMTP MX Control
- .broken.com" then actions["tryTLS"] = 0 end return actions end =====ParseURL===== (VPOP3 8.0 and later)
- User Routing Script
- localdomain%.com$") then ShouldForward = false; end </code> ====If the sender is user@domain.com for... m"; UseForwards = true; ShouldForward = true; end </code> ====If the time is currently in the morn... 12 then Assistants = "otheraddress@example.com" end </code> ====If the current time is between 10:00... 0") then Forwards = "person@mycompany.com"; UseForwards = true; ShouldForward = true; end </code>
- Archive Script
- (subject == "bibble") then return "BibbleTest"; end end</code> If you need, we can produce a script for you, but there would be a cost for this - contac
- Increase the spam score for header marker
- ed as spam is 100) - you can alter the 200 at the end of the line as appropriate for your requirements.
- Password Strength Checking Script
- assword' then return false else return true end end </code> A more complex example is: <code> blockedWords = {"password", "letmein", "computer"} minT... if Password == Username then return false end for _, value in pairs(blockedWords) do if ... owerPassword == value then return false end end hasDigit = 0 hasCaps = 0 hasLower = 0
- Virus Scan Filter Scripting
- est@pscs.co.uk" and virus == "Eicar-Test-Signature") then return true; end return false end
- Management Scripting
- ); function myFunction(x) print(x * 7); end The **print** output and any runtime errors wi
- Useful other things
- r things====== Scripts/batch files/etc which may be useful * [[batch file to end a database backup]]
- Attachment Extraction Scripting
- lua.out return 2, "%base%\\_attach2"; --copy the attachment to the VPOP3\\_attach2 folder end