HDTenEightyP/NetNews huggingface dataset:
From: barrett@daisy.ee.und.ac.za
Newsgroups: comp.mail.sendmail
Date: 18 Jul 92 13:46 MDT
Subject: BSMTP instead of rmail
Nf-ID: #N:1992Jul18.114636.169@bertha.cc.u:-598092894:001:2150
Nf-From: daisy.ee.und.ac.za!barrett    Jul 18 13:46:00 1992


[I deleted comp.protocols.iso.x400 from the Newsgroups]

In article <biJtACn`@twinsun.com>,
eggert@twinsun.com (Paul Eggert) writes:
> The other site's rmail command objects to the `/' in the
> address.  So it's not a sendmail bug, it's an rmail bug.
>
> I'm afraid that this is a fairly common bug, and will prevent
> sendmail+UUCP sites from sending mail to X.400 addressees.

It might be an rmail bug, or it might be the result of a uucp policy
(probably implemented by uuxqt) to forbid arguments that look like
insecure file names.

There is also a problem with passing unusual command line arguments over
uucp:  If the mail address contains white space or shell metacharacters
then there is *no* portable way that the local mailer can quote the args
before passing them to the local uux to ensure that the remote uuxqt
passes the desired address to the remote rmail.

Because of the uux/uuxqt quoting problem, we need a method of sending
mail via uucp without passing the addresses in argv.  This requires
using a transport like BSMTP (which puts the sender and recipient
addresses inside the data file instead of in the command arguments)
instead of rmail.  This has the further advantage of allowing multiple
mail messages to be sent in a single uux job, reducing uucico handshake
overhead.

I encourage everybody to use bsmtp-over-uucp instead of rmail-over-uucp.
smail3's way of doing this is seems to be the de facto standard:  A
batch-SMTP job is sent via a command like

	uux - remotesite!rsmtp

and a compressed BSMTP job is sent via

	uux - remotesite!rcsmtp

The rcsmtp program on the remote site uncompresses the job and passes it
on to rsmtp.  On an smail3 system, rsmtp is simply a link to smail,
which knows how to handle incoming bsmtp jobs.  On a sendmail system,
one would have to write a suitable rsmtp program to massage the job into
a form usable by sendmail.  (This is trivial if you ignore errors, and
it is probably not very tricky to handle errors correctly).

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
RFC822: barrett@ee.und.ac.za             Bang: m2xenix!quagga!undeed!barrett

Newsgroups: comp.mail.sendmail
From: vixie@pa.dec.com (Paul A Vixie)
Subject: Re: Why does buildaddr() [parseaddr.c] rewrite using the R= rules?
Organization: DEC Network Software Lab
Date: 26 Jul 92 16:23:26

The published documentation is, as you say, not very clear on which ruleset
will be called for which addresses and what times.  I'm not going to try to
clear up that general problem here, but I will point out that the IDA mods
to sendmail let you get around the problems you're noticing.

And IDA-derived sendmail (mine is called King James Sendmail and it can be
had via anonymous FTP from gatekeeper.dec.com in /pub/misc/vixie/kjs.tar.Z)
has the ability to use different rulesets for the RCPT TO:<> (called the
"envelope" addresses) than for the To:/Cc: (called the "header" addresses).
If you include a line in sendmail.cf that says:

	O/

...then two useful things happen: first, rulesets 5 and 6 become "automatic"
in the same way that 1, 2, 3, and 4 are.  But whereas 1 and 2 continue to
get the envelope sender/recipient, 5 and 6 get the header sender/recipient.
(I'm not sure which is which, actually, but there's documentation in the
"ida" subdirectory of all IDA-derived sendmail source kits.)

Second, the R= and S= keywords of the mailer definition are allowed to be
stated as R=nn/nn and S=nn/nn rather than the old S=nn and R=nn.  The number
after the "/" is the ruleset to be applied to headers, and if specified then
the first number is used only for the envelopes.  If "O/" was not specified
than the "/" is a syntax error; if "O/" was specified and no "/" is used in
S= or R=, then single ruleset specified by S=nn or R=nn is used for both
envelope and header addresses, as is the case for non-IDA sendmails.

Note that my IDA-derived sendmail has a very old config kit and that the
one available from UIUC (Neil R or Paul P will be replying here shortly with
the ftp server and pathname) has a much newer and nicer config kit.  My
config files are all hacked by hand, which is why I don't include anything
spiffy config-file-wise in my KJS kits.
--
Paul Vixie, DEC Network Systems Lab	
Palo Alto, California, USA         	"Don't be a rebel, or a conformist;
<vixie@pa.dec.com> decwrl!vixie		they're the same thing, anyway.  Find
<paul@vix.com>     vixie!paul		your own path, and stay on it."  -me
From: R.S.Jones@qmw.ac.uk (Robert S. Jones)
Newsgroups: comp.mail.sendmail
Subject: Re: Any way to notify a user when mail arrives?
Date: 24 Jul 92 06:18:56 GMT
Organization: Queen Mary & Westfield College (London)
X-Useragent: Nuntius v1.1

In article <1992Jul23.134909.6093@dayton.saic.com> Earle Ake,
ake@dayton.saic.com writes:
>	Is there any way to have sendmail notify the user when he/she has
>received new mail?  This is in a non-X environment.  If I knew the way
sendmail
>delivered the mail maybe there could be a hack installed to send a message to
>all logged the user when the mail arrived.

Non-X you say. Un*x you don't say, but let's assume....

How about sticking 'biff y' in /etc/profile (or its moral equivalent), and
voila! [Or "there y'go!", as you Americans seem to say :-)) ]

	Hope this helps.	Bob
Newsgroups: comp.mail.sendmail
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Why does buildaddr() [parseaddr.c] rewrite using the R= rules?
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Sun, 26 Jul 1992 10:10:46 GMT

This is probably a really stupid question, but it's driving me
nuts as far as uucp is concerned.

I was under the impression that the recipient rewriting rules
only applied to headers (To: and Cc:).  However, sendmail also
runs the "RCPT TO:" address through the same rules!  (This is
not clear from the documentation.)

Here's the situation:

I send mail to with recipents someuucphost!joe and jane (local).

I want joe to see jane rewritten as myuucpname!jane, so when the
message arrives on uucphost, replies go to the right place.
However, if my R= ruleset for uucp does something like

R$-	$:myuucpname!$1

to generate what I consider correct headers, then uux will try to
run  rmail myuucpname!joe  which is clearly The Wrong Thing.

Am I Unclear On The Concept or is this a design stupidity?  I
don't see why Ruleset 0 can't/shouldn't generate the "final" user
address to be passed unchanged to the mailer.  Perhaps it needs
to be defocused, but that's not the same thing as "generating
addresses that are meaningful in the context of the recipient."

					-=EPS=-
From: rickert@mp.cs.niu.edu (Neil Rickert)
Newsgroups: comp.mail.sendmail
Subject: Re: Why does buildaddr() [parseaddr.c] rewrite using the R= rules?
Date: 27 Jul 92 15:24:44 GMT
Organization: Northern Illinois University

In article <1992Jul26.101046.962@csus.edu> eps@futon.SFSU.EDU (Eric P. Scott) writes:
>I was under the impression that the recipient rewriting rules
>only applied to headers (To: and Cc:).  However, sendmail also
>runs the "RCPT TO:" address through the same rules!  (This is
>not clear from the documentation.)

>Am I Unclear On The Concept or is this a design stupidity?

  This is not design stupidity.  There is an assumption in the design
that if a different address format is required, it is required for the
envelope as well as for the header.  Generally this is a reasonable
assumption, although it happens this is not always true, and as Paul
Vixie has pointed out, the IDA versions of sendmail specifically separate
the header rewrite from the envelope rewrite.

  However, the envelope recipient should not give you a problem.  Even
without IDA versions, you can treat the envelope and header recipients
differently.  IDA is really needed to do the same for the sender addresses
which are difficult to treat separately in a non-IDA sendmail.

  All you need to is make sure that your ruleset 0 puts the recipient
address in a distinguishable form, and then make use of that in your
other rewrite rules.  For example,

	Ruleset 0:

		R$+<@$+.uucp>	$#uucp $@$2 $: <$1>
 [this makes the address distinguishable by <bracketing it>

	Ruleset 2:

		R<$+>		$@ <$1>		Leave bracketed address alone

	Ruleset R=:

		(same as above)

	Ruleset 4:

		R<$+>		$@ $1		Return fully bracketed address
From: ccx009@cch.coventry.ac.uk (Adam Bentley)
Newsgroups: mail.uk-sendmail-workers,comp.mail.sendmail
Subject: configuring uksm 2.1
Date: 21 Jul 92 11:21:01 GMT
Organization: Glasgow University Computing Science Dept.
X-Address-Work: Computing Services (R Block), Priory St. Coventry CV1 5FB. UK.
Organisation: Coventry University
X-Mailer: ELM [version 2.3 PL6], mail-news 2.0.5
X-Phone: (+44 203 or 0203) 838641 (Work), (+44 533 or 0533) 738775 (Home).

We have 3 machines registered in the NRS, one with a Janet connection.
I build a slave config for the two machines without Janet connections which punts any 
non local mail  or mail not destined for any other NRS registered local host 
to the machine with  the Janet connection, which then shoves it off to the right place.

However, it would be nice to allow local email to flow between machines on-site without
having to go through the hassle of putting them into the UK-sendmail config tables.
(and adding them to the NRS - not something I really want to do for machines that simply
want to exchange local email)

So, how can I make the UK sendmail configs accept addresses of the form 
user@host, where host is simply in /etc/hosts in the local domain 
and not wired into the actual sendmail config.

At the moment, anything like that gets chucked out with an 'Unknown Domain'
error.....you have to build it into the config in the ether file listing all
local ether hosts.
Is there anyway I can specify some wildcard in the configs for each of my
UKSM 2.1 hosts to do this?

I can't see an easy way to do this from the uk-sendmail config files....

Can anyone suggest a Ruleset to deal with this and whereabouts it could go in
a typical UK SM 2.1 config file?

....thanks for listening
-- 
						_
					       /-\dam

FLESH: Adam Bentley (Fraggle), Systems/Networking, Coventry University. UK
INET : adamb@coventry.ac.uk
X400 : S=adamb O=coventry PRMD=UK.AC C=GB 
       & ADMD= a space or GOLD 400 or TMAILUK
From: paul@xcluud.sccsi.com (Paul Hutmacher)
Newsgroups: comp.mail.sendmail
Subject: Re: Any way to notify a user when mail arrives?
Date: 25 Jul 92 03:59:27 GMT
Organization: Greater Montrose UFO Appreciation Society & Data Haven

In article <1992Jul23.134909.6093@dayton.saic.com> ake@dayton.saic.com (Earle Ake) writes:
>	Is there any way to have sendmail notify the user when he/she has
>received new mail? 

I use newmail, a routine that came with elm.  Check it out.


-- 
______________________________________________________
"There is nothing to history.  No progress,          | Thomas Paul Hutmacher 
 no justice. There is nothing but random horror."    | paul@xcluud.sccsi.com
"Jupiter" in _The Difference Engine_ Gibson/Sterling |______________________
Xref: sparky comp.mail.sendmail:1965 comp.mail.uucp:1580
From: tron@Veritas.COM (Ronald S. Karr)
Newsgroups: comp.mail.sendmail,comp.mail.uucp
Subject: Re: BSMTP instead of rmail
Date: 30 Jul 92 13:03:53 GMT
Organization: VERITAS Software

In article <14uemnINN2sg@smurf.smurf.sub.org> urlichs@smurf.sub.org (Matthias Urlichs) writes:
>You can do about 10..20% better by using freze instead of compress.
>The receiver for this would then be rfsmtp.

So, where does one get freze?  It doesn't appear to be on uunet.  Also,
if you are going to send compressed batches between two hosts, you
certainly want to use a compression method that both sites support.
Compress is a pretty common denominator right now.

>One problem to watch out for is the first line of the data file: it should
>say "HELO host.do.main". Unfortunately, at least some smail3 vesrions seem
>to send "HELO <host.do.main>", which is wrong and confuses the receiving
>side.

Oops.  The fix is trivial.  Update samples/bsmtp/batchsmtp.sh in the
obvious way (fix to appear in the official smail3.1.26 release).
-- 
	tron |-<=>-|		ARPAnet:  veritas!tron@apple.com
      tron@veritas.com		UUCPnet:  {apple,pyramid}!veritas!tron
Newsgroups: comp.mail.sendmail
From: iacovou@cs.umn.edu (Danny Iacovou)
Subject: format of the From: line
Organization: University of Minnesota, Minneapolis, CSci dept.
Date: Fri, 24 Jul 1992 03:41:41 GMT


  Hi;


  I am having some trouble with the format of the From: line. Before I 
  go into my problem here is a bit of background info.

  I have a client that forwards all mail off to a host in order to 
  deliver the mail. The name of the client is "joe.cs.umn.edu", and
  the name of the host is "smoe.cs.umn.edu". I want mail to appear as
  though it originated from "cs.umn.edu". My client it running SunOS
  sendmail 4.1, and my host is running 5.65c+IDA

  Now, my problem. My client does not write the From: line in the form of:

	From: iacovou@cs.umn.edu (Danny Iacovou)

  Instead, it writes it in the form of:

	From: iacovou@cs.umn.edu

 
  I really want to add the full name in the From: line.

  Here are what some of my "defines" are set to:

  # format of a total name
  Dq$g$?x ($x)$.


  H?P?Return-Path: <$g>
  HReceived: $?sfrom $s $.by $j
    id $i; $v/$V; $b
  H?D?Resent-Date: $a
  H?D?Date: $a
  H?F?Resent-From: $q
  H?F?From: $?C$g$|$q$.
  H?x?Full-Name: $x
  HSubject:
  H?M?Resent-Message-Id: <$t.$i@$j>
  H?M?Message-Id: <$t.$i@$j>


  As far as I can tell, $x is never getting set to the full name.
  It also follows that when I telnet to port 25 and try to vrfy I 
  get a "<username>" as a reply given the command "vrfy username".


  Any ideas?

-- 
--------------------------------------------------------------------------------
Neophytos Iacovou                                
University of Minnesota                     email:  iacovou@cs.umn.edu 
Computer Science Department                         ...!rutgers!umn-cs!iacovou
From: ake@dayton.saic.com (Earle Ake)
Newsgroups: comp.mail.sendmail
Subject: Need help with sendmail.cf rewrites
Date: 21 Jul 92 16:02:31 EDT
Organization: Science Applications Intl. Corp., Dayton, Ohio

	We have users on a cc:Mail gateway that are used to sending mail
addressed to user%node.DNET@dayton.saic.com.  The gateway doesn't know how to
talk DECnet so it passes the message along to dayton.saic.com who talks SMTP
and DECnet and everything is handled fine.

	We are switching over to unix.  I want to allow the users on cc:Mail
to continue using the existing syntax.  The new machine 'dayton.saic.com'
will be running Interactive unix.  I need to configure sendmail to allow
the syntax above and rewrite the address to something like:

	user%node.DNET@other.gateway.machine

and pass it along.  I tried a few things and I either get

	user%node.DNET%dayub.dayton.saic.com@CF_INET_R

or a blank to line.  The machine name I am running unix on is dayub.

	Is there a good reference to the sendmail rewrites?  I have tried the
following rule:


R$*<@$+.DNET>$*		$#tcp$@$[dayton.saic.com$]$:$1<@$2.DNET>$3


and it gives me the CF_INET_R at the end.  If I comment out the CF_INET_R then
it has an error parsing the header.

	What I want is the following:

user%node.dnet				=> user%node.dnet@dayton.saic.com
user@node.dnet				=> user%node.dnet@dayton.saic.com
user%node.dnet@dayub.dayton.saic.com	=> user%node.dnet@dayton.saic.com


Anyone who can help?  Also, can I manually check the rewrite rules?  Also
can I somehow examine what line is being fed to sendmail before parsing?


Earle
_____________________________________________________________________________
             ____ ____    ___
Earle Ake   /___ /___/ / /     Science Applications International Corporation
  (EFA1)   ____//   / / /__                 Dayton, Ohio
-----------------------------------------------------------------------------
Internet: ake@dayton.saic.com  uucp: dayvb!ake  NSI-DECnet (SPAN): 28284::ake
Newsgroups: comp.mail.sendmail
From: k2@bl.physik.tu-muenchen.de (Klaus Steinberger)
Subject: Re: Using HIDDENNET
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Date: Wed, 29 Jul 1992 07:27:33 GMT

peter@merlin.acadiau.ca (Peter Steele) writes:

>     DEFINE(HIDDENNET,fred,barney,pebbles)
Use the Fully Qualified Domain Names here.
If you have more hosts, best would be to write the names into a
file, each on a separate line, and define HIDDENNET like this:

DEFINE(HIDDENNET, LIBDIR/yourfilename)

>     DEFINE(HIDDENNETHOST,acadiau.ca)
use HIDDENDOMAIN instead.

you should also define PSEUDONYMS, and put a MX record for every local
host into your DNS database, which points to your mailhost. You could use
the same file for PSEUDONYMS, as for HIDDENNET.

Additionally helpful are GENERICFROM, GENERICENVELOPE and GENERICTO.
You could use the generics database for more advanced rewritings, like
replacing the mailbox name with firstname.lastname or something else.

I'm using this to rewrite, even the addresses completly, as our institute
belongs to two universities, and I want to change each users address
to the correct university.
My address for example would be rewritten from
k2@woodstock.bl.physik.tu-muenchen.de to
Klaus.Steinberger@Physik.Uni-Muenchen.DE

Here is my IDA .m4 source:

# Sendmail configuration file for sally.bl.physik.tu-muenchen.de
define(ALIASES, LIBDIR/aliases)
define(MAILERTABLE,LIBDIR/mailertable)
define(FORCE_NAMED)
define(LOCAL_MAILER_DEF, M4/mailers.riscos)dnl ### MIPS / RISC/os settings
define(POSTMASTERBOUNCE, rg)
define(PSEUDODOMAINS, bitnet uucp hepnet span )
define(GENERICFROM, LIBDIR/generics)
define(GENERICENVELOPE)
define(GENERICTO)
define(HIDDENNET, LIBDIR/hiddenhosts)
define(HIDDENDOMAIN, bl.physik.tu-muenchen.de)
define(PSEUDONYMS, LIBDIR/hiddenhosts)
define(DOMAINTABLE, LIBDIR/domaintable)
include(Sendmail.mc)

Sincerely,
Klaus Steinberger
--
Klaus Steinberger               Beschleunigerlabor der TU und LMU Muenchen
Phone: (+49 89)3209 4287        Hochschulgelaende
FAX:   (+49 89)3209 4280        D-8046 Garching, Germany
Internet: Klaus.Steinberger@bl.physik.uni-muenchen.de
From: ake@dayton.saic.com (Earle Ake)
Newsgroups: comp.mail.sendmail
Subject: Any way to notify a user when mail arrives?
Date: 23 Jul 92 13:49:09 EDT
Organization: Science Applications Intl. Corp., Dayton, Ohio

	Is there any way to have sendmail notify the user when he/she has
received new mail?  This is in a non-X environment.  If I knew the way sendmail
delivered the mail maybe there could be a hack installed to send a message to
all logged the user when the mail arrived.


Earle
_____________________________________________________________________________
             ____ ____    ___
Earle Ake   /___ /___/ / /     Science Applications International Corporation
           ____//   / / /__                 Dayton, Ohio
-----------------------------------------------------------------------------
Internet: ake@dayton.saic.com  uucp: dayvb!ake  NSI-DECnet (SPAN): 28284::ake
Newsgroups: comp.mail.sendmail
From: russell@ncube.com (Russell Randolph)
Subject:  Sendmail default host for unknown users
Organization: nCUBE CORPORATION
Date: Tue, 21 Jul 1992 17:21:05 GMT

We have a subnet containing 6 user's workstations (HP 750, HP-UX 8.07). 
All of the rest of the people in the company get mail from machine xxx
on the main net.  I would like to tell sendmail on the subnet that if the
user is unknown, try sending it to a machine on the main net and see if
it knows about the user.

Being a small company, we send mail to "account_name", instead of
"account_name@system_name".  I would like these workstations to work
the same way.

I am using the sendmail option saying "if you don't know about a certain
host, try machine xxx" (options DWxxx and DSxxx).  I am looking for a
similar function for users.

The only ways I can see to do this are:

- Keep the aliases file up to date.  But what a pain.  Every new person to
  the company requires me to update my local aliases file.

- Add sendmail commands that essentially say:
    if (who != "aaa" && who != "bbb" && ... && who != "root") who = who@xxx
  What a kludge!

So, any suggestions?  Hopefully I've missed something very basic.

Thanks!

Russell Randolph
nCUBE, Beaverton, Oregon
russell@ncube.com
Newsgroups: comp.mail.sendmail
From: jack@ccsf.caltech.edu (Jack Stewart)
Subject: Wildcards in DOMAINTABLE in IDA sendmail
Keywords: IDA, sendmail, DOMAINTABLE
Organization: CCSF Caltech, Pasadena, CA
Date: Wed, 22 Jul 1992 21:51:13 GMT

Does anyone know how to make ida to use alternate domains?  Currently
mail that is sent to smoe@foo gets translated to
smoe@foo.ccsf.caltech.edu.  What I would like is if smoe@foo got
translated to smoe@foo.ccsf.caltech.edu, and if that fails to
smoe@foo.caltech.edu, and if that fails to smoe@foo.jpl.nasa.gov.  It
should be possible if I could put wildcards in the DOMAINTABLE.
However I have been unsuccessful in being able to put any wildcards
in.  I would really hate to make an entry for every single host.
Especially when their are thousands of hosts.  Please respond via
e-mail and I will summarize.

---Jack

-- 
Jack Stewart                                     E-Mail: jack@CCSF.Caltech.EDU
Caltech Concurrent Supercomputing Facilities,     Phone: 818-356-2153
Mail Code # 158-79, 391 S. Holliston, 
Pasadena, CA 91125.                            #include  <std.disclaimer>
From: claudius@zeus.calpoly.edu (King_Claudius (Chris Knight))
Newsgroups: comp.mail.sendmail
Subject: a better 'distribute' program?
Date: 22 Jul 92 17:10:26 GMT
Organization: California Polytechnic State University, San Luis Obispo

Anyone know of a distribute program that sends the message to each individual
on the mailing list one message at a time?  Preferrably it'd check the size of
the queue or other system load parameters.
-- 
---King Claudius---                                   claudius@zeus.calpoly.edu
Newsgroups: comp.mail.sendmail
From: leach@satchmo.OCE.ORST.EDU (Tom Leach)
Subject: IDA sendmail with NIS aliases
Keywords: IDA sendmail NIS aliases
Organization: Oregon State University - Univ. Computing Services
Date: Fri, 31 Jul 1992 00:31:09 GMT

Has anyone set up IDA sendmail to have a mail server that gets it's aliases  
from the NIS master server (where they are not the same system).
I'm trying to set up the following structure
System A is a NFS file server that other systems mount /var/spool/mail from
System B is a NIS server with a set of alias maps.
System C is the DNS and mail server.  it NFS hard mounts /var/spool/mail from
	system A, and gets aliases from system B.  No other systems should
	NFS mount any part of the mail/DNS server (system C).

The problem is with etting a correct m4 file for IDA.
(currently using sendmail 5.65c + IDA 1.4.4 with patch level 1)
(the above 3 systems are all Sun sparcs)

I've tried to define (NIS_MAILALIASES) but then I have to define
(NIS_MAILHOST).  If this is defined, any non-local mail is sent to the
NIS server (system B) which (I guess) is then suppose to pass on the mail.
I am trying to get the NIS server to only run NIS (no mail, dns, etc...)
Is there any slick way to define this in the m4 file or will this take a bit
of munging of the sendmail.cf file???

Thanks in advance.
Tom Leach
leach@oce.orst.edu
Newsgroups: comp.mail.sendmail
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Why does buildaddr() [parseaddr.c] rewrite using the R= rules?
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Mon, 27 Jul 1992 20:40:07 GMT

Simple enough.  Thanks, Neil.

					-=EPS=-
Newsgroups: comp.mail.sendmail