You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dma.c: Improve override of 'from' host by MASQUERADE config setting
This allows a MASQUERADE config setting containing only a host name to
override any host name set by the -f command line option or by the EMAIL
environment variable. Previously, that only worked if the MASQUERADE
config setting also overrode the user name.
The overall algorithm is as follows:
1. Select (incomplete) address from -f arg (highest priority), or EMAIL
env (lower priority) or nothing.
2. If got address from step 1, split into user and host parts, either of
which could be empty.
3. Replace empty host or empty user parts with defaults.
4. Apply MASQUERADE, possibly replacing host and/or user parts.
5. Construct final sender address from host and user parts.
Fixes#114
0 commit comments