Re: SRS sendmail integration

Mark <[email protected]>
Newsgroups gmane.mail.spam.srs.general
Organization Asarian-host
Message-ID <[email protected]>
Stuart D. Gathman wrote:

> On Wed, 24 Mar 2004, Mark wrote:
>
>> Good question. ;) Seriously, though, as I suspected, m4 does not
>> provide such fine-grained control. I asked, to be sure, and got word
>> from Claus Assman today, saying this is, indeed, not possible (if
>> proto.m4 does does provide the hook either; but editing proto.m4
>> leaves us exactly where editing sendmail.cf leaves us). He said that
>> when he himself was faced with such a situation, that he just uses a
>> patch file against the newly created cf.
>
> I fixed the EnvFromSMTP - and I'm not even an m4 expert! m4 uses
> redirections, so I changed pysrs.m4 like this:

Brilliant work! :)

> This can be fixed by providing a feature which does
>
> LOCAL_RULESET_0
> R$* $: $>ReverseSrs $1
>
> and must come before redirect.

Yes, I figured out the LOCAL_RULESET_0 too -- a very fortunate hook (one
that exists for ruleset 1, 2, and 3 too). I am impressed you solved the
EnvFromSMTP thingy. With your permission, I'd like to create an m4 of my
own, including your trick (for which I will accredite you, of course).

You did good! :)

- Mark

        System Administrator Asarian-host.org

---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.