This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
reference:lua_smtp_mx_control [2025/08/14 10:26] – paul | reference:lua_smtp_mx_control [2025/08/14 10:27] (current) – paul | ||
---|---|---|---|
Line 81: | Line 81: | ||
In VPOP3 v8.8 and later, a function is called as each message is sent, allowing the Lua script to rewrite the Return Path (MAIL FROM) address. This can be useful for implementing things such as SRS or other sender rewriting | In VPOP3 v8.8 and later, a function is called as each message is sent, allowing the Lua script to rewrite the Return Path (MAIL FROM) address. This can be useful for implementing things such as SRS or other sender rewriting | ||
- | The function signature is: | + | The function signature is: **ModifyReturnPath(Computed-Mail-From, |
- | **ModifyReturnPath(Computed-Mail-From, | + | |
* Computed-Mail-From - the Return Path after being processed by VPOP3 (eg using ' | * Computed-Mail-From - the Return Path after being processed by VPOP3 (eg using ' | ||
* Mail-From - the Return Path prior to the Return Path Settings acting on it. This can take account of Mappings to change it | * Mail-From - the Return Path prior to the Return Path Settings acting on it. This can take account of Mappings to change it |