Re: SRS implemenation in sendmail

Tom Lahti <[email protected]>
Newsgroups gmane.mail.spam.srs.general
Message-ID <[email protected]>
>The space-laced address needs to be requoted on return. That is what the
>extra check + output does.

Got it, I thought it must be something like that.

> > sendmail.cf:
> > ---------------------------------------------------------
> > SParseLocal=98
> >
> > # always call reverse_srs
> > R$*                             $@ $(reverse_srs $1 $f $)
> > ---------------------------------------------------------
>
>I am pretty sure you did not test your code; $f needs to be dereferenced
>here, and should be written as $&f instead.

I'm pretty sure I didn't either :)  $&f does work quite a bit 
better.  However, it seems that this gets called twice for each email; once 
for the SMTP envelope sender with $f empty, and a second time with the 
recipient and envelope sender in the correct place.  Apparently, the 
envelope sender is passed through ParseLocal with $f unset.  I do not know 
why, or how to get around this, since having $f empty is precisely what I'm 
looking for, so I can't use that as an indicator that the the $old_address 
is in fact the sender and not the recipient.

Too bad I'm not a sendmail expert or I'd have this done already and a web 
page written up on it.


--
-- =========================
    Tom Lahti
    Tx3 Online Services

    (888)4-TX3-SVC (489-3782)
    http://www.tx3.net/
-- =========================
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.