This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
reference:lua_smtp_server_script [2015/09/23 13:46] – external edit 127.0.0.1 | reference:lua_smtp_server_script [2018/11/14 10:45] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
======SMTP Server Lua Scripting====== | ======SMTP Server Lua Scripting====== | ||
- | The SMTP Server [[http:// | + | The SMTP Server [[http:// |
Each SMTP server instance has its own instance of the SMTPSVR.LUA script. No threading conflicts will occur. | Each SMTP server instance has its own instance of the SMTPSVR.LUA script. No threading conflicts will occur. | ||
Line 55: | Line 55: | ||
* **MaxLineLength** - (IN/OUT) - number - maximum line length | * **MaxLineLength** - (IN/OUT) - number - maximum line length | ||
* **AddUserAddresses** - (IN/OUT) - boolean - add recipients of locally sent messages to the autocomplete address list | * **AddUserAddresses** - (IN/OUT) - boolean - add recipients of locally sent messages to the autocomplete address list | ||
+ | |||
+ | ===V6.5 and later=== | ||
+ | * **ServerID** - (IN) - number - ID of SMTP Service in VPOP3 | ||
+ | * **ServerName** - (IN) - string - name of SMTP Service in VPOP3 | ||
====In VPOP3 Enterprise Only==== | ====In VPOP3 Enterprise Only==== | ||
* **CheckRBL** | * **CheckRBL** | ||
Line 172: | Line 176: | ||
The **< | The **< | ||
The **< | The **< | ||
- | The **< | + | The **< |
The **<SPF Result> | The **<SPF Result> | ||
Line 241: | Line 245: | ||
This function should return <new actions table>, <results string> | This function should return <new actions table>, <results string> | ||
- | In this function the VPOP3 ProcessMessage helper functions can be used. | + | In this function the [[lua_scripting# |
=====CheckRecipients()===== | =====CheckRecipients()===== | ||
'' | '' |