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 09:59] – [CheckRecipients()] paul | reference:lua_smtp_server_script [2017/01/20 12:01] – [DoMAILFROM()] paul | ||
---|---|---|---|
Line 29: | Line 29: | ||
* **EndMessage()** - (v5+) called when the message terminator . has been received at the end of a message | * **EndMessage()** - (v5+) called when 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 | * **CheckRecipients()** - (v6.3+ Enterprise Only) called at the end of a message to check if recipients are allowed | ||
+ | * **MonitorBcc()** - (v6.3+ Enterprise Only) called to customise monitoring of messages with BCCs | ||
* **LogRecipients()** - (v6.3+ Enterprise Only) called at the end of a message to allow customised logging of recipients | * **LogRecipients()** - (v6.3+ Enterprise Only) called at the end of a message to allow customised logging of recipients | ||
* **LogRecipientsBlocked()** - (v6.3+ Enterprise Only) called at the end of a message if recipients have been blocked to allow customised logging of recipients | * **LogRecipientsBlocked()** - (v6.3+ Enterprise Only) called at the end of a message if recipients have been blocked to allow customised logging of recipients | ||
Line 42: | 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 153: | 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 159: | Line 176: | ||
The **< | The **< | ||
The **< | The **< | ||
- | The **< | + | The **< |
+ | The **<SPF Result> | ||
This function should return **<new parameters>, | This function should return **<new parameters>, |