begin Tuesday 23 March 2004 18:29, Mark quote:
I really like the extra IsSrs macro; it saves resources not having to call
the srs2envtol script when we already know we are not dealing with an SRS
address. :) With your permission, I'd like to add this useful macro to my
"sendmail integration" page.
No problem, go ahead
Moreover, I suggest a minor change:
Kis_srs regex ^<?SRS[0-9]=.*
To:
Kis_srs regex ^<?SRS[01]=.*
How future-proof is this? Do we risk having SRS2, SRS3, etc. one day?
(N.B. I do not believe an address at ParseLocal ever starts with <, but it
does not hurt to check either).
The macro is invoked in two separate circumstances:
1. ParseLocal
2. EnvFromSTMP (via MakeSrs)
In (2) it is used for skipping SRS encapsulation for mails whose
destination is also an SRS record (needed in order to avoid certain
"open-relay" type exploits).
In EnvFromSTMP, the $&u addres does start with <
Alain