Article View: comp.mail.misc
Article #4102Re: sendmail configuration, decnet
From: john
Date: Tue, 24 Mar 1987 14:57
Date: Tue, 24 Mar 1987 14:57
44 lines
2053 bytes
2053 bytes
In article <136@halleys.UUCP>, buckley@halleys.UUCP (0312) writes:
> [I] Would like to have
> mail of the form user@node be converted to node::user and use mail-11.
> This sendmail.cf allows mail of the form node!user to be forwarded over
> SMTP as usr@mail. I believe this is handled by comparing the to node to
> a list of smtp hosts(macro DS?). There appears to be a similar setup
> for decnet nodes(macro DZ?) and in rule 5 I added what I thought was a
> line to determine that transport was handled by decnet.
> # known DECnet sites
> DZvaxa
> S3
> # Mail-11 Normalization
> R$+::$+ $2@$1.DNET
> R$=Z!$+ $@$2@$1.DNET
> ###################
> S5
> R$*@$=Z $@$1@$2.DNET
> R$*@$=Z.UUCP $@$1@$2.DNET
What you are doing is essentially correct, but $=Z tries to match any
of the strings in _class_ Z; $Z would try to match the _macro_ Z. To
define a class, instead of a macro, you can either say
# known DECnet sites
CZvaxa vaxb vaxmate25
or
# read known DECnet sites from a file, one per line
FZ/usr/lib/mail/decnet.sites
or even:
# read known DECnet sites from a file containing lots of information,
# with the DECnet site name in the second colon-separated field (scanf)
FZ/usr/lib/mail/decnet.database %*[^:]:%[^:]
Good luck!
--
John Owens Old Dominion University - Norfolk, Virginia, USA
john@ODU.EDU old arpa: john%odu.edu@RELAY.CS.NET
+1 804 440 3915 old uucp: {seismo,harvard,sun,hoptoad}!xanth!john
Technical Details
Message-ID:
<730@xanth.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!pyrnj!mirror!xanth!johnReferences:
<136@halleys.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!pyrnj!mirror!xanth!john From: john@xanth.UUCP Newsgroups: comp.mail.misc,comp.mail.uucp Subject: Re: sendmail configuration, decnet Message-ID: <730@xanth.UUCP> Date: Tue, 24-Mar-87 09:57:04 EST Article-I.D.: xanth.730 Posted: Tue Mar 24 09:57:04 1987 Date-Received: Thu, 26-Mar-87 02:47:59 EST References: <136@halleys.UUCP> Distribution: ne,na Organization: Old Dominion University, Norfolk Va. Lines: 44 Keywords: decnet,sendmail Summary: CZ, not DZ