prepare_email is missing explanation in reference, as well as user_to_email has poor description as "lookup table" (from what to what?).
It is only possible to deduce from code what it does: prepare_email takes e-mail address from "From" (1) field and maps it to single address or list of some addresses (A). Then authentication e-mail is mapped to list of addresses or domains (B) by user_to_email, and then if any address (or domain) from (A) belongs in (B) user is considered to be allowed sending from (1).
Describe the bug
prepare_email
is missing explanation in reference, as well asuser_to_email
has poor description as "lookup table" (from what to what?).It is only possible to deduce from code what it does:
prepare_email
takes e-mail address from "From" (1) field and maps it to single address or list of some addresses (A). Then authentication e-mail is mapped to list of addresses or domains (B) byuser_to_email
, and then if any address (or domain) from (A) belongs in (B) user is considered to be allowed sending from (1).