From: "Zbigniew, Ignatowicz" <zignatowicz () scc ! ca>
To: tru64-unix-managers
Subject: [Summary] Implementing check_rcpt ruleset in sendmail 8.8.8.
Date: Mon, 04 Jan 1999 18:53:30 +0000 [thread overview]
Message-ID: <96079034715363.tru64-unix-managers.marc@archive.invalid> (raw)
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------ =_NextPart_001_01BE3813.85C34F7A
Content-Type: text/plain;
charset="iso-8859-1"
I received e-mails from Arrigo Triulzi and Martin Mokrejs
The suggestion is to use sendmail 8.9.1.
I guess I am the only one with older version. I can't find the time to
do it.
The DU4.0E comes with sendmail 8.8.8 as a supported product. So I
thought that's the easiest and fastest way is to install 4.0E.
I was wrong.
I got sendmail configured and running using mailsetup/mailconfig. There
was no config option to disallow third party relay.
So I access www.sendmail.org <http://www.sendmail.org> to get some
hints/solutions.
None of them worked. I guess sendmail.cf generated by COMPAQ is
different.?!
Finally I contacted Claus Assmann, he sent me a corrected code. See
below.
I still do not understand why COMPAQ could not include this feature in
its setup. RedHat Linux 5.2 (freeware?) comes with sendmail 8.8.8 and
with custom anti-relay custom code.
Here is the code:
Scheck_rcpt
# first: get client addr
R$+ $: $(dequote "" $&{client_addr} $) $| $1
R0 $| $* $@ ok no client addr: directly
invoked
R$={LocalIP}$* $| $* $@ ok from here
# not local, check rcpt
R$* $| $* $: $>3 $2
# remove local part, maybe repeatedly R$+
$:$>removelocal $1 # still something left?
R$*<@$+>$* $#error $@ 5.7.1 $: 550 we do not relay
Sremovelocal # remove RelayTo part (maybe repeatedly)
R$*<@$*$={RelayTo}>$* $>3 $1 $4
R$*<@$=w>$* $: $>removelocal $>3 $1 $3
R$*<@$*>$* $@ $1<@$2>$3
# dequote local part
R$- $: $>3 $(dequote $1 $)
R$*<@$*>$* $: $>removelocal $1<@$2>$3
instead (removed the trailing dots in removelocal).
------ =_NextPart_001_01BE3813.85C34F7A
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.1960.3">
<TITLE>[Summary] Implementing check_rcpt ruleset in sendmail =
8.8.8.</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Arial">I received e-mails from</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">Arrigo Triulzi</FONT><FONT SIZE=3D2 =
FACE=3D"Arial"> and</FONT> <FONT SIZE=3D2 FACE=3D"Arial">Martin =
Mokrejs</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">The suggestion is to use sendmail =
8.9.1. </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I guess I am the only one with older =
version. I can't find the time to do it.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">The DU4.0E comes with sendmail 8.8.8 =
as a supported product. So I thought that's the easiest and fastest way =
is to install 4.0E.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I was wrong.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">I got sendmail configured and running =
using mailsetup/mailconfig. There was no config option to disallow =
third party relay.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">So I access</FONT> <A =
HREF=3D"http://www.sendmail.org"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">www.sendmail.org</FONT></U></A><FONT SIZE=3D2 =
FACE=3D"Arial"> to get some hints/solutions.<BR>
None of them worked. I guess sendmail.cf generated by COMPAQ is =
different.?!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Finally I contacted Claus Assmann, he =
sent me a corrected code. See below. </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I still do not understand why COMPAQ =
could not include this feature in its setup. RedHat Linux 5.2 =
(freeware?) comes with sendmail 8.8.8 and with custom anti-relay custom =
code.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Here is the code:</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Scheck_rcpt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"># first: get client addr</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">R$+ =
$: $(dequote "" $&{client_addr} $) $| =
$1</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">R0 $| =
$* =
$@ =
ok =
no client addr: directly =
invoked</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">R$=3D{LocalIP}$* $| =
$* $@ ok =
from here</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"># not local, check rcpt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">R$* $| =
$* $: $>3 $2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"># remove local part, maybe repeatedly =
R$+ =
$:$>removelocal $1 # =
still something left?</FONT></P>
<P><FONT SIZE=3D2 =
FACE=3D"Arial">R$*<@$+>$* =
$#error $@ 5.7.1 $: 550 we do not relay Sremovelocal =
# remove RelayTo part (maybe repeatedly)</FONT></P>
<P><FONT SIZE=3D2 =
FACE=3D"Arial">R$*<@$*$=3D{RelayTo}>$* $>3 $1 =
$4</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">R$*<@$=3Dw>$* =
$: $>removelocal $>3 $1 $3</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">R$*<@$*>$* =
$@ $1<@$2>$3</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"># dequote local part</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">R$- =
$: $>3 $(dequote $1 $)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">R$*<@$*>$* =
$: $>removelocal $1<@$2>$3</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Arial">instead (removed the trailing dots in =
removelocal).</FONT>
</P>
<BR>
<BR>
</BODY>
</HTML>
------ =_NextPart_001_01BE3813.85C34F7A--
reply other threads:[~1999-01-04 18:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox