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 [2013/06/03 10:08] – [SMTP Server Lua Scripting] paul | reference:lua_smtp_server_script [2017/01/20 12:01] – [DoMAILFROM()] paul | ||
---|---|---|---|
Line 43: | Line 43: | ||
* **AllowedUsers** - (IN/OUT) - string - List of allowed usernames (separated by spaces) if there are any username restrictions for this client IP address | * **AllowedUsers** - (IN/OUT) - string - List of allowed usernames (separated by spaces) if there are any username restrictions for this client IP address | ||
+ | ===V5 and later=== | ||
+ | * **AuthenticatedUser** - (IN) - string - username of authenticated sender (using SMTP or POP3-then-SMTP authentication) | ||
+ | * **SMTPAuthenticatedUser** - (IN) - string - username of authenticated sender (using SMTP authentication only) | ||
+ | * **ForceDisconnect** - (IN/OUT) - boolean - drop the connection as soon as possible | ||
+ | * **UseBATV** - (IN/OUT) - boolean - use [[http:// | ||
+ | |||
+ | ===V6 and later=== | ||
+ | * **MaxRecipientsPerLocalMessage** - (IN/OUT) - number - maximum number of recipients allowed for locally sent messages | ||
+ | * **MaxRecipientsPerIncomingMessage** - (IN/OUT) - number - maximum number of recipients allowed for incoming messages | ||
+ | * **MaxMessagesPerLocalSession** - (IN/OUT) - number - maximum number of messages allowed per local session | ||
+ | * **MaxLineLength** - (IN/OUT) - number - maximum line length | ||
+ | * **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 154: | Line 170: | ||
This function should return the text to return to the client (return the value of the <current response> | This function should return the text to return to the client (return the value of the <current response> | ||
=====DoMAILFROM()===== | =====DoMAILFROM()===== | ||
- | DoMAILFROM("< | + | DoMAILFROM("< |
This function is called by VPOP3 when it receives a valid //MAIL FROM// command | This function is called by VPOP3 when it receives a valid //MAIL FROM// command | ||
Line 160: | Line 176: | ||
The **< | The **< | ||
The **< | The **< | ||
- | The **< | + | The **< |
+ | The **<SPF Result> | ||
This function should return **<new parameters>, | This function should return **<new parameters>, |