LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
David Nessl <[log in to unmask]>
Tue, 4 Jan 1994 13:39:12 -0500
text/plain (84 lines)
Trevor C Poole wrote:
> We run SMTP 2.2 so I suppose I now have to delve into the arcane
> world of rewriting headers. Although this is not the list for
> such discussions if anyone has a rules file that will ensure
> Internet style addressing and strip the .Bitnet off outgoing
> Listserv stuff I would most appreciate it. SMTP comes with "default"
> rules values but where these are stored is anyones guess as no
> actual rules file seems to kom mit. Does this mean I would have
> to copy by hand all the default rules into a file just to make
> my own mod ! What a drag.
 
We use the SMTP rewrite rules posted to the IBMTCP-L list on 01/18/92.
I've appended the file below.  The rules work really well for us (and
fixed a number of shortcomings in the defaults rules).  -david
 
-----------------------------------------------------------
-- SMTP RULES file
 
-- Adopted Rules from Cornell for NDSU / vm1.nodak.edu
-- Update history:      (FLIX is John Voigt).
-- {1}  11/21/91 FLIX - Percent hack unknown unqualified names.
-- {2}  12/12/91 FLIX - Percent hack unknown .BITNET domainized names
--                      (from mgh@ndsu).
-- {3}  12/12/91 FLIX - Expand list of munged headers to catch many
--                      used by RICEMAIL and friends.
-- {4}  12/12/91 FLIX - Number rules to make easier to refer to in
--                      correspondence. (Idea from mgh.)
 
Field Definition Section
 
 DefaultFields = 'To' 'From' 'Sender' 'Reply-To'
                 'Cc' 'Bcc' 'Return-Path'
                 'Resent-To' 'Resent-From'
                 'Resent-Sender' 'Resent-Reply-To'
                 'Resent-Cc' 'Resent-Bcc'
                 'X-Acknowledge-To'
                 'X-Resent-To' 'X-Resent-From'
                 'X-Resent-Sender' 'X-Resent-Reply-To'
                 'X-Resent-Cc' 'X-Resent-Bcc';
-- {3}
 
Rule Definition Section
 
 A "@" RSCSHostName =>
 A "@" TCPHostName;                                     -- Rule 1
 
 A "@" RSCSHostName "." RSCSDomain =>
 A "@" TCPHostName;                                     -- Rule 2
 
 A "@" RSCSHostName "." AltRSCSDomain =>
 A "@" TCPHostName;                                     -- Rule 3
 
 A "@" AnyRSCSHostName =>
 A "%" AnyRSCSHostName "." RSCSDomain "@" TCPHostName;  -- Rule 4
 
 A "@" AnyRSCSHostName "." RSCSDomain =>
 A "%" AnyRSCSHostName "." RSCSDomain "@" TCPHostName;  -- Rule 5
 
 A "@" AnyRSCSHostName "." AltRSCSDomain =>
 A "%" AnyRSCSHostName "." RSCSDomain "@" TCPHostName;  -- Rule 6
 
 A "@" TCPHostName =>
 A "@" TCPHostName;                                     -- Rule 7
 
 A "@" ShortTCPHostName =>
 A "@" TCPHostName;                                     -- Rule 8
 
 A "@" AltTCPHostName =>
 A "@" TCPHostName;                                     -- Rule 9
 
 A "@" B "." RSCSDomain =>                              -- {2}
 A "%" B "." RSCSDomain "@" TCPHostName;                -- Rule 9.1
 
 A "@" B "." AltRSCSDomain =>                           -- {2}
 A "%" B "." RSCSDomain "@" TCPHostName;                -- Rule 9.2
 
 A "@" AnyDomainName =>
 A "@" AnyDomainName;                                   -- Rule 10
 
 A "@" B =>                                             -- {1}
 A "%" B "@" TCPHostName;                               -- Rule 11
 
-- End of rules

ATOM RSS1 RSS2