This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
how_to:configure_srs [2025/08/18 16:18] – created paul | how_to:configure_srs [2025/08/18 16:28] (current) – paul | ||
---|---|---|---|
Line 4: | Line 4: | ||
This involves adding a couple of functions to rewrite outgoing return paths in ' | This involves adding a couple of functions to rewrite outgoing return paths in ' | ||
+ | |||
+ | In earlier versions of VPOP3 (or if you don't want the bounce-redirection function of SRS), you can use basic Sender Rewriting using the ' | ||
The below is a basic implementation based on https:// | The below is a basic implementation based on https:// | ||
Line 12: | Line 14: | ||
Edit ' | Edit ' | ||
- | <code> | + | <file lua [enable_line_numbers=" |
mykey = " | mykey = " | ||
Line 36: | Line 38: | ||
function Mod32(x) | function Mod32(x) | ||
return string.sub(" | return string.sub(" | ||
- | end</code> | + | end</file> |
====smtpsvr.lua==== | ====smtpsvr.lua==== | ||
Edit ' | Edit ' | ||
- | <code> | + | <file Lua [enable_line_numbers=" |
+ | mydomain = " | ||
+ | mykey = " | ||
function MapRecipient(rcpt, | function MapRecipient(rcpt, | ||
if mailfrom == "" | if mailfrom == "" | ||
Line 77: | Line 82: | ||
return string.find(" | return string.find(" | ||
end | end | ||
- | </code> | + | </file> |