[Esd-l] HELP on a mail gateway =(

Ing Juan Pablo Feria feria at tpitic.com.mx
Thu Aug 8 15:31:01 PDT 2002


I m trying to create a mail-gw  to protect an i-mail server with the
document included on pm-sanitizer, but i have a question, how does my
sendmail box the address of my imail box?


INTERNET ------> |SENDMAIL+PROCMAIL.SANITIZER| ---------> |IMAIL.SERVER|

the dns entry is:

domain.com.     IN      MX      0       sendmailbox.domain.com

the mail from internet will be received by the sendmail server, scanned
by pm-sanitizer and?

how i tell the procmail server "send it to imail.domain.com after the
scan" ?

I done the indications on the txt included with procmail sanitizer

1. Add the following delivery agent:

Mprocmail,      P=/usr/bin/procmail, F=DFMmShun, S=11/31, R=21/31,
T=DNS/RFC822/X-Unix,
                A=procmail -m $h $g $u


2. Add "procmail" to class P with this somewhere near the top
of your sendmail.cf (near where the other classes are being set up):

  CPprocmail


3. Add the following to ruleset 0, between the "handle virtual
users" and "short-circuit local delivery" stanzas:

# pipe through procmail for processing
R$*<@domain.com>$*     $#procmail $@/etc/procmail/filter.rc
$:$1<@domain.com.procmail.>$2

R$*<@domain.com.>$*    $#procmail $@/etc/procmail/filter.rc
$:$1<@domain.com.procmail.>$2

R$*<@$*.procmail.>$*    $1<@$2.>$3


------ When i send a mail to someone at domain.com form internet i get:

Aug  8 05:07:20 ShProtect sendmail[153]: g78C7Jpx000153:
to=feria at domain.com.mx.procmail, ctladdr=feria at mail.senderdomain.com.mx
(0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30613,
relay=localhost.domain.com.mx. [127.0.0.1], dsn=2.0.0, stat=Sent
(g78C7JJb000154 Message accepted for delivery)
Aug  8 05:07:20 ShProtect sm-mta[156]: g78C7JJb000154:
to=<feria at domain.com.mx.procmail>, delay=00:00:01, xdelay=00:00:00,
mailer=local, pri=31014, dsn=2.0.0, stat=Sent
Aug  8 05:07:59 ShProtect sm-mta[127]: g78C3DJb000127: IDENT:0 at localhost
[127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Aug  8 05:51:28 ShProtect sm-mta[203]: g78CpPJb000203:
from=<feria at mail.senderdomain.com.mx>, size=375, class=0, nrcpts=1,
msgid=<200208081946.g78Jkx939777 at mail.senderdomain.com.mx>, proto=ESMTP,
daemon=MTA, relay=customer-148-233-136-210.uninet.net.mx
[148.233.136.210] (may be forged)
Aug  8 05:51:28 ShProtect sm-mta[205]: g78CpPJb000203:
to=<someone at domain.com.mx>, delay=00:00:02, xdelay=00:00:00,
mailer=procmail, pri=30366, relay=/etc/procmail/filter.rc, dsn=2.0.0,
stat=Sent
Aug  8 05:51:28 ShProtect sendmail[207]: g78CpS3S000207:
from=feria at mail.senderdomain.com.mx, size=620, class=0, nrcpts=1,
msgid=<200208081946.g78Jkx939777 at mail.senderdomain.com.mx>,
relay=root at localhost
Aug  8 05:51:28 ShProtect sm-mta[208]: g78CpSJb000208:
<someone at domain.com.mx.procmail>... User unknown
Aug  8 05:51:28 ShProtect sendmail[207]: g78CpS3S000207:
to=someone at domain.com.mx.procmail,
ctladdr=feria at mail.senderdomain.com.mx (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30610, relay=localhost.domain.com.mx.
[127.0.0.1], dsn=5.1.1, stat=User unknown




Maybe its a stupid queston..

Sorry and thanks in advance for your help




-- 



More information about the esd-l mailing list