Article delegate-en/40 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A30@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: SMTPGATE
20 Aug 1998 09:42:40 GMT ysato@etl.go.jp (Yutaka Sato 佐藤豊)


In message <_A30@delegate-en.ML_> on 08/13/98(23:23:46)
you "J. Francois" <pduaabdyi-xg5asea7mulr.ml@ml.delegate.org> wrote:
 |Does anyone have the SMTPGATE setup and config options in
 |english?
 |If so please forward to me.

There is not a complete document about SMTPGATE in any language since
the specification about how to configure SMTPGATE is not settled in my
mind.  The largest pending problem is; how to describe the rewriting and
filtering rule for relayed messages.  Because DeleGate has other different
but similar "CFI script" and "*.dhtml" script for rewriting, filtering
and generating message data, I think that the configuration script for
SMTPGATE should be unified with formats of those scripts... in future.

--
Here is an example of SMTPGATE configuration which accepts a mail at
"delegate-en@smtpgate.etl.go.jp" and forward it to
"nntp://wall.etl.go.jp/mail-lists.delegate-en".
It may help you to imagine the current SMTPGATE specification...

#!/bin/sh
#### SMTPGATE-DeleGate on smtpgate.etl.go.jp #############################
SMTPGATE=/usr/lib/mail/smtpgate
delegated -P25 SERVER=smtp SMTPGATE=$SMTPGATE
##########################################################################

#### the content of $SMTPGATE/users/delegate-en/conf #####################
CONTROL/INHERIT:     postnews       #### built-in poster (post to NNTP server)
CONTROL/SERVER-HOST: wall.etl.go.jp #### NNTPSERVER = wall.etl.go.jp
OUTPUT/Newsgroups:   mail-lists.delegate-en
ACCEPT/To:           !%             #### inhibit gateway notation
ACCEPT/From:         !MAILER-DAEMON@, !postmaster@, !boxtopsoft.com
ACCEPT/Sender:       !MAILER-DAEMON@, !postmaster@
CONTROL/OPTION:      isn            #### increment Seqno
OUTPUT/Header:       X-Seqno: ${seqno} (via delegate@smtpgate.etl.go.jp)
OUTPUT/Header:       UNIX-From: ${unixfrom}
OUTPUT/Reply-To:     delegate-en@smtpgate.etl.go.jp
OUTPUT/Subject:      [DeleGate-En] ${subject:hc}
OUTPUT/Header:       Cc: ${sender}
OUTPUT/Header:       Errors-To: ysato-ML@etl.go.jp
OUTPUT/Header:       Precedence: junk
CONTROL/BCC:         ysato-ml@etlpom.etl.go.jp, ysato@etl.go.jp
CONTROL/ARCHIVE:     delegate-en-%5${seqno/10}
###########################################################################

This configuration specifies the gateway which relayes a mail arrived at
"delegate-en@smtpgate.etl.go.jp" to the news group
"nntp://wall.etl.go.jp/mail-lists.delegate-en"
applying some access control considering To, From, and Sender,
adding a serial number with X-Seqno header,
indicating the NNTP-DeleGate server (in UNIX-From) to spool the article
by X-Seqno number, 
replacing Reply-To and Subject,
adding Cc, Errors-To and Precedence,
sending the relayed message to the administrator,
and archiving the relayed message.

#!/bin/sh
#### NNTP-DeleGate on wall.etl.go.jp ######################################
delegated -P119 SERVER=nntp://-.-/
###########################################################################

Cheers,
Yutaka
--
Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V