RewriteSender allows modifier to replace MAIL FROM value. If no changes are required, this method returns its argument, otherwise it returns a new value. Note that per-source/per-destination modifiers are executed after routing decision is made so changed value will have no effect on it. Also note
(ctx context.Context, mailFrom string)
| 61 | // Also note that MsgMeta.OriginalFrom will still contain the original value |
| 62 | // for purposes of tracing. It should not be modified by this method. |
| 63 | RewriteSender(ctx context.Context, mailFrom string) (string, error) |
| 64 | |
| 65 | // RewriteRcpt replaces RCPT TO value. |
| 66 | // If no changed are required, this method returns its argument as slice, |
no outgoing calls