Re: SRS implemenation in sendmail
Tom Lahti <[email protected]>
| Newsgroups | gmane.mail.spam.srs.general |
|---|---|
| Message-ID | <[email protected]> |
>My page also reads:
>
>"You could certainly put a front-end Milter at the gate. Especially so, if
>you wish to implement the above outlined "empty envelope-from + no SRS
>signed recipient + DATA phase" anti-spammer policy. But that falls outside
>the scope of this document, which is to integrate SRS functionality into
>sendmail."
My apologies. I did not read that part, I was only scanning for the
"meat". When I saw that example SMTP transaction bit at the top, I assumed
that was included in the scope.
>I will see about adding a script that actually does implement the outlined
>anti-spammer policy. Though I doubt the DATA phase can actually be
>circumvented from sendmail.cf.
I think it could be as easy as eliminating the is_srs macro, _always_ call
reverse_srs program, and include in its arg list both the recipient address
and the sender envelope. What I don't see is the purpose of
} elsif ($use_address =~ /^\|/) {
print "\"$old_address\"\n";
in that script. Also, if we send $f to srs2envtol.pl does it include the
brackets <> ? I could experiment but if someone already has a test
environment set up, it would save me the trouble for one little test.. :)
sendmail.cf:
---------------------------------------------------------
SParseLocal=98
# always call reverse_srs
R$* $@ $(reverse_srs $1 $f $)
---------------------------------------------------------
patch srs2envtol.pl:
--- srs2envtol.pl 2004-05-24 14:28:24.000000000 -0700
+++ srs2envto2.pl 2004-05-25 10:24:23.000000000 -0700
@@ -29,5 +29,6 @@
my $old_address = $ARGV[0];
+my $envelope_sender = $ARGV[1];
my $use_address;
my $srs = new Mail::SRS (Secret => $secret, HashLength => 8,
AlwaysRewrite => 1);
@@ -58,4 +59,7 @@
print "\"$old_address\"\n";
} else {
+ if (length($envelope_sender)==0) {
+ $old_address = "/dev/null";
+ }
print "$old_address\n";
}
--
-- =========================
Tom Lahti
Tx3 Online Services
(888)4-TX3-SVC (489-3782)
http://www.tx3.net/
-- =========================