HDTenEightyP/NetNews huggingface dataset:
From: kenh@leps5.phys.psu.edu (Ken Hornstein)
Subject: Re: How To Remove Double-Quotes From Addresses???
Keywords: sendmail sendmail.cf help quotes
Organization: Penn State, Laboratory for Elementary Particle Science
Date: Thu, 27 Aug 1992 21:08:05 GMT

In article <1992Aug26.204126.18609@tron.bwi.wec.com> krenz@pql840.bwi.wec.com (Randy Krenz) writes:
>Hello SendMail Guru's
>
>I am doing some work on sendmail.cf on a Dec machine running 4.2 Ultrix.
>I am interested in being able to remove double-quotes from an address.
>For example, I want to have the following:
>
>nodename1::"nodename2::user"    =>    nodename1::nodename2::user

Have you looked at IDA sendmail?  There is an excellent example of how to do
this in there.  I run it on our Ultrix 4.0 machine as a mail gateway between
our VAXes running DECnet and the Internet.  In case you're interested, here's
the revelant section:

R$+!.$+			$1^.$2			fix mangled Xerox dList
->RIN%$+		leps5::$1		A f*cking hack
R$+::$B::$+		$B::$2			Shorten decnet route thru us
R$-::$-			$1::$2?$(@$&Q$2$&Q$)	Is this decnet quoted 822?
R$-::$-?""$+@$+""	@$1.dnet:$3@$4		Convert quoted to source route.
R$-::$-?$+		$1::$2			Else restore
R$+::$+			$1.dnet!$2		Convert DECNET to bang path.
R$+!:$+@$+		$1!$3!$2		scrambled source route
R$+!:$+			$1!$2			mangled VAX/VMS address

The line marked with a arrow is my own addition.

However, there is no guarantee this will work without IDA sendmail (I know
the $( $) won't work, the $&Q probably won't work eiher).  I highly recommond
getting IDA; it's a _lot_ better than Ultrix's sendmail.

--Ken
Newsgroups: comp.mail.sendmail
From: vnagar@godzilla.intel.com (Vivek Nagar)
Subject: From address rewrite
Reply-To: vnagar@godzilla.intel.com (Vivek Nagar)
Organization: Intel Corporation, Santa Clara, CA USA
Date: Tue, 25 Aug 1992 17:07:12 GMT

Is it possible to change sendmail.cf to rewrite the from address
from say user@foo.intel.com to user@bar.intel.com so that it looks as if
the mail is originating form host "bar" instead of host "foo"? if so how can
it be done?

Vivek

--------------------------------------------------------------------------
Vivek Nagar				Email:	
Software Engineer			vnagar@mipos3.intel.com
Intel Corporation			
(408) 765 4264 (O)
--------------------------------------------------------------------------
From: rhoward@matd.gatech.edu (Robert L. Howard)
Newsgroups: comp.mail.sendmail
Subject: Re: IDA-sendmail takes forever to build aliases
Date: 27 Aug 92 19:48:04 GMT
Organization: Georgia Tech Research Institute

rhoward@matd.gatech.edu (Robert L. Howard) writes:

>The only real problem/concern I have is the length of time it
>take to build the aliases (either using 'sendmail  -bi' or
>'newaliases').  On my Sun SparcStation it takes nearly 3 minutes
>for 86 aliases.  Most of them are of the type:

>firstname.lastname@matd.gatech.edu:accountname@matd.gatech.edu

>(These are falling out of my xaliases file since I am doing
>outbound rewriting too.)

Well, thanks for the responses.  Neil Rickert was especially
helpful.  The correct answer is:

Don't put the @matd.gatech.edu at the end of everything.  If every-
thing else is configured correctly, then things will work.  (sendmail
was looking up matd.gatech.edu from the nameserver about 50 times)
Everything works now!  The result is that building newaliases now only
takes a couple of seconds.

Thanks to the following:

Neil W Rickert <rickert@cs.niu.edu>
pascoe%rocky.dnet@gte.com (Dave Pascoe)
Christopher Davis <ckd@eff.org>

Also inculded was the suggestion to use the frozen config file.  That's
the next thing to do...

Robert
--
| Robert L. Howard              |   Georgia Tech Research Institute     |
| robert.howard@matd.gatech.edu |   MATD Laboratory                     |
| (404) 528-7165                |   Atlanta, Georgia  30332             |
-------------------------------------------------------------------------
| "See, when the GOVERNMENT spends money, it creates jobs; whereas when |
| the money is left in the hands of TAXPAYERS, God only knows what they |
| do with it.  Bake it into pies, probably.  Anything to avoid creating |
| jobs." -- Dave Barry                                                  |
Newsgroups: comp.mail.sendmail
From: peter@merlin.acadiau.ca (Peter Steele)
Subject: Removing msg body in IDA for postmaster
Organization: Acadia University
Date: Mon, 31 Aug 1992 14:56:35 GMT

A while back someone posted a script that could be used in IDA
sendmail for the POSTMASTERBOUNCE option that would remove the
message body, leaving only the headers. I archived it but have
only now gotten around to checking it out. Unfortunately I 
can't find it. I must have deleted it during some house
cleaning. Does any one know the script I'm referring to?
--
Peter Steele        Unix Services Manager            peter.steele@acadiau.ca 
Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364
From: ajm@seqp4.sequoia.com (A.J.Madison)
Newsgroups: comp.mail.sendmail
Subject: Sendmail 5.67
Date: 1 Sep 92 20:45:55 GMT
Organization: Sequoia Systems Inc., Marlboro, Mass.

I'm in the process of choosing a sendmail for a system that is a mix of BSD
and SysV.3.2 and will become SysV.4.  I've noticed that there is yet another
version of Sendmail available.  I can re-port Sendmail 5.65 or I could move
up to New & Improved.

I would appreciate it if someone could tell me in plain language what the
differences are between 5.67 and 5.65.  I am particularly concerned about the 
mailer timeout enhancement, since the TODO claims that this invalidates the
old .cf's.   We have several customers waiting/depending upon 5.65 .cf
formats.  In at least one case, the customer has a set of changes for the
file, but has not slightest clue what the changes actually mean.  I would
really hate to add to the overtime I'm already putting in figuring out where
the 5.65 mods are inadequate for 5.67.

While I'm at it, I'm also interested in:

Has anyone ported 5.65 to SysV.4 and what tips you might have to offer?

Has anyone ported 5.67?

How many people are contemplating changing to 5.67?
-- 
when everyone is out to get you, being paranoid is just good thinking.
         - Dr. Johnny Fever <in other words, standard disclaimer>
A.J. Madison                                           ajm@sequoia.com
Sequoia Systems Inc.
From: ced@bcstec.ca.boeing.com (Charles Derykus)
Newsgroups: comp.mail.sendmail
Subject: SMTP mail to IBM VM
Date: 1 Sep 92 17:20:36 GMT
Distribution: na
Organization: Boeing


| In article <17ttinINNt8l@grasp1.univ-lyon1.fr> Christophe.Wolfhugel) writes:
| In article <1745@ernohb.UUCP> blaes@ernohb.UUCP (Rainer Blaes) writes:
|> we want to mail from a SPARC system to our IBM VM computer running TCP/IP.
|                                             ^^^^^^
|		That seems to be the problem!
|
|> >>> MAIL FROM: <blaes@sparc_s>
|

Neill Rickert responded:
 
>Which is, according to the RFC-822 a legal address. The underscore is not
> considered as a special character, except for IBM!...
> Firstly, 'sparc_s' is not a fully qualified domain name.  Secondly, the
> syntax for host names, as defined in RFC952, requires:
> 
>   1. A "name" (Net, Host, Gateway, or Domain name) is a text string up
>   to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
>   sign (-), and period (.).

> ...is not a fully qualified domain name. Secondly, the
> syntax for host names, as defined in RFC952, requires:

>  1. A "name" (Net, Host, Gateway, or Domain name) is a text
>     string up to 24 characters drawn from the alphabet (A-Z),
>     digits (0-9), minus sign (1), and period (.).

RFC1033 also cites a legal name definition - exactly the same
but including an underscore: 

   The domain system allows a label to contain any 8-bit character...
   Because of other protocols restrictions, only the following characters
   are recommended for use in a host name (besides the dot separator):
     
       "A-Z", "a-z", "0-9", dash and underscore

What is the reason for RFC952/1033 difference on this point?
From: peter@merlin.acadiau.ca (Peter Steele)
Newsgroups: comp.mail.sendmail
Subject: Re: IDA-sendmail takes forever to build aliases
Date: 28 Aug 92 12:54:55 GMT
Organization: Acadia University

>>firstname.lastname@matd.gatech.edu:accountname@matd.gatech.edu

>Don't put the @matd.gatech.edu at the end of everything.  If every-
>thing else is configured correctly, then things will work.  (sendmail
>was looking up matd.gatech.edu from the nameserver about 50 times)
>Everything works now!  The result is that building newaliases now only
>takes a couple of seconds.

I found I wasn't able to achieve the exact behaviour I wanted without
the @acadiau.ca on all my return addresses in my aliases database.
I tried a number of different configurations/m4 files, tweaking
this and that. The only to to guarantee (that I found) for return
addresses to include our mail hub in all conditions was to include
it in the aliases explicitly....

Maybe I missed some magic option, but I don't think so....
--
Peter Steele        Unix Services Manager            peter.steele@acadiau.ca 
Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364
Newsgroups: comp.mail.sendmail
From: oneworld!charles (Charles W. Cooper II)
Subject: Re: 5.65c+IDA on NeXT?  Anyone done it successfully?
Reply-To: charles@oneworld.wa.com
Date: Tue, 1 Sep 1992 17:46:20 GMT

James B. Wilkinson <wilkins@cs.cofc.edu> writes
> I'm having problems getting sendmail 5.65c+IDA.1.4.4 to work on a NeXT. 
> It works fine on our ULTRIX and 68020 boxes, but doesn't come close on
> the NeXT.    I finally got it to make, but it doesn't work when we
> install it.  Has anybody out there made it work?  I'd like to find out
> how you did it.  Thanks.

I've installed the sendmail 5.65 program but not the IDA tables.  The sendmail  
works very nicely with my previous .cf file.  It is faster and doesn't bomb out  
on mailing lists.
From: tylczak@lisa.usbm-ccn.gov (Joe Tylczak)
Newsgroups: comp.mail.sendmail
Subject: auto forwarding to bitnet, from Sun 4.1 sendmail?
Summary: How do you do it, foward bitnet messages to a gateway
Keywords: bitnet, sendmail, sun
Date: 2 Sep 92 15:48:46 GMT
Organization: U.S Dept of Interior, Bureau of Mines

Hi:
Sorry if this is a faq, but I need to change my sendmail.cf to see mail to .
bitnet (and maybe other odd domains someday) and automaticly foward this 
mail to a specific gateway machine.  I am running Sun os 4.1 and canned 
mailer.  Can anyone tell me an easly way to do this??
Thanks in advance.

Joe Tylczak

Internet        tylczak@lisa.usbm-ccn.gov
Phone           (503) 967-5849

Bureau of Mines, Albany Research Center

No I don't speak for my employer, I hardly speak for myself
From: ced@bcstec.ca.boeing.com (Charles Derykus)
Newsgroups: comp.mail.sendmail
Subject: smtp mail to ibm VM
Date: 3 Sep 92 15:23:22 GMT
Distribution: na
Organization: Boeing


  I'll try to squeeze in again.

  Per Hedeland writes:

  :Then again (as I'm sure you know, but perhaps not all readers do),
  : RFC1123 overrides the 24-character rule (as well as the subsequent one
  : in RFC952 that says that the first character must be an alpha):
  :  
  : 

>>: that '_' : isn't allowed - your list has plenty of evidence for that too
    ^^^^^^^^^^^^^^^^^^^^^^^^

  RFC1123 also apparently overrides RFC952 on the underscore: 
                                                  ^^^^^^^^^^

   "The domain system allows a label to contain any 8-bit character...
    Because of other protocols restrictions, only the following characters
    are recommended for use in a host name (besides the dot separator):
     
       "A-Z", "a-z", "0-9", dash and underscore"



   So isn't this relevant?

   I posted this question earlier but was ignored. Sigh.




-- 
Charles DeRykus				Internet:   ced@bcstec.ca.boeing.com
Boeing Computer Services		UUCP:	    ...!uunet!bcstec!ced
Bellevue, WA.  M/S 7M-HA		(206) 957-5326  FAX: (206) 957-5050
Newsgroups: comp.mail.sendmail
From: peter@merlin.acadiau.ca (Peter Steele)
Subject: Re: Removing msg body in IDA for postmaster
Organization: Acadia University
Date: Thu, 3 Sep 1992 13:55:45 GMT

>>2) Pipe it through a sed which chops it at the first blank line, then
>>   forwards it to postmaster.

>The following is done in C, but performs basically the same function.

Here's the perl version I originally asked about. I've been using it
now for several days and it works fine:

#!/usr/bin/perl -- # -*-Perl-*-

# mailerdaemon.pl - send only the headers to Postmaster
# v0.1 by Christopher Davis <ckd@eff.org>

# for use with sendmail 5.65c+IDA1.4.4 & related versions
# how to use:

# in <machine>.m4, add a line:
#    define(POSTMASTERBOUNCE, mailer-errors)

# in the aliases file, add a line:
#    mailer-errors: "|/usr/local/etc/mailerdaemon.pl postmaster"
#    (defaults to postmaster, but command line overrides)

# This will forward bounces to postmaster after deleting the body
# of bounced messages (for privacy)

# assumes your /usr/ucb/mail takes '-s'.  Change if it doesn't.

$target = shift(@ARGV) || 'postmaster';

firstheaders: while (<>) {
    if (/^Subject:\s+(.*)$/) {$subject = $1;};
    last firstheaders if (/^$/);
}

unless ($pid = open(MAIL,"|-")) {
    exec '/usr/ucb/mail','-s',$subject,$target;
}

beforetag: while (<>) {
    print MAIL;
    last beforetag if (/Unsent message follows/);
}

headers: while (<>) {
    print MAIL;
    last headers if (/^$/);
}
    
@junk = <>;
--
Peter Steele        Unix Services Manager            peter.steele@acadiau.ca 
Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364
Newsgroups: comp.mail.sendmail
From: andr@elvis.sovusa.com (Andrei Arkhipov)
Subject: Re: firstname.lastname From address rewrite
Reply-To: andr@elvis.sovusa.com
Organization: ELVIS Corp.
Date: Sun, 30 Aug 92 09:09:29 GMT

It seems to me that such question is a FAQ. Is there a FAQ list in this group? If so, I can
suggest my answer.
My sendmail.cf contains following rules:

############################################################
#
#               DDN Mailer specification
#
#       Send mail on the Defense Data Network
#          (such as Arpanet or Milnet)

Mddn,   P=[TCP], F=msDFMuCX, S=22, R=22, A=TCP $h, E=\r\n

# map containing the inverse of mail.aliases
DZmail.byaddr

S22
R$*<@LOCAL>$*           $:$1
R$-<@$->                $:$>3${Z$1@$2$}                 invert aliases
R$*<@$+.$*>$*           $@$1<@$2.$3>$4                  already ok
R$+<@$+>$*              $@$1<@$2.$m>$3                  tack on our domain
R$+                     $@$1<@$m>                       tack on our domain

As you can see, user name replaced by it's alias so if you have corresponding aliases you can
receive From: field in form of first.last@centralhub.

I think it's not full answer and hope somebody else will give adds to it.

Andrei.

In article 92Aug26085416@neal.ctd.comsat.com, neal@neal.ctd.comsat.com (Neal Becker) writes:
>I would like to set up a central mail hub.  How can I rewrite from
>addresses to look like firstname.lastname@centralhub??  Can the
>mapping of user to firstname.lastname be kept in a file seperate from
>sendmail.cf??
>
>Thanks.




Xref: sparky comp.mail.sendmail:2184 comp.sys.sun.admin:6027
From: ced@bcstec.ca.boeing.com (Charles Derykus)
Newsgroups: comp.mail.sendmail,comp.sys.sun.admin
Subject: MX sendmail & NIS
Date: 1 Sep 92 17:38:52 GMT
Followup-To: comp.mail.sendmail
Distribution: na
Organization: Boeing


Is there a way to coerce Sun 4.1.1 MX enabled sendmail to also use
NIS?

My stock configuration seems to use DNS solely. 

This seems strange because IBM's AIX 3.1.5 MX enabled sendmail will 
utilize both DNS and NIS. 

Any help greatly appreciated.
-- 
Charles DeRykus				Internet:   ced@bcstec.ca.boeing.com
Boeing Computer Services		UUCP:	    ...!uunet!bcstec!ced
Bellevue, WA.  M/S 7M-HA		(206) 957-5326  FAX: (206) 957-5050
Newsgroups: comp.mail.sendmail
From: avolio@dco.DEC.COM (Frederick M. Avolio)
Subject: Re: Making two names equal to SENDMAIL
Reply-To: avolio@dco.DEC.COM (Frederick M. Avolio)
Organization: Digital Equipment Corp., Washington ULTRIX Resource Center
Date: Thu, 27 Aug 1992 20:40:50 GMT


What you want is to handle recognizing both addresses to
be a LOCAL address.  Is the hostname dayub.dayton.saic.com?  Then the
domain is dayton.saic.com, right?

In Ruleset 0 you probably have a section that tries to strip off local
information.  (If Ruleset 3 focused on the hostpart and the hostpart is
US then toss that...)


Assuming that $j is your fully qualifed hostname dayub.dayton.saic.com and
$N is your domain dayton.saic.com...

We have some lines like this

# localize if possible
R$+<@$j>                $:$1<@LOCAL>                    @myfqdm
R$+<@$N>                $:$1<@LOCAL>                    @mydomain


(In your sendmail.cf you may not use LOCAL.  You may just return $1 here.)



Fred
Newsgroups: comp.mail.sendmail
From: dchen@umassmed.ummed.edu (Daniel D.E. Chen)
Subject: Auto aliasing
Organization: University of Massachusetts Medical Center; Worcester, MA 01655
Distribution: comp,usa,na,world
Date: Wed, 2 Sep 1992 18:47:46 GMT


I want my sendmail to automatically change a certain host's mail
"from" address to a set of ALIASES.  This host is a Banyan SMTP
gateway way which doesn't follow all of RFC822.  I would like the
originator's address to be changed to the reverse of their alias.  Can
this be done by just modifing the sendmail.cf? or would I have to
hack the sendmail program?

Basically, I current have all of my Banyan SMTP gateway mail be
directed to an UNIX box so that changing the sendmail at that UNIX box
shouldn't be too difficult.

Daniel Chen
-----------------------------------------------------------------------------
dchen@umassmed.bitnet                   |  University of Massachusetts
                                        |  Medical Center
dchenb@umassmed.bitnet (banyan address) |  Computer Center
(508) 856-3197                          |  Worcester Campus
-----------------------------------------------------------------------------
--
Daniel Chen
-----------------------------------------------------------------------------
dchen@umassmed.bitnet                   |  University of Massachusetts
                                        |  Medical Center
dchenb@umassmed.bitnet (banyan address) |  Computer Center
(508) 856-3197                          |  Worcester Campus
-----------------------------------------------------------------------------
From: roy@prism.gatech.EDU (Roy Mongiovi)
Newsgroups: comp.mail.sendmail
Subject: problem with sendmail-5.65c+IDA-1.4.4.1 WRT program mailer
Date: 28 Aug 92 17:50:22 GMT
Organization: Georgia Institute of Technology

I tried installing the new sendmail, and ran into a little snag.

In "prescan", 5.65 makes a special test:

			if (c == ';') /* semicolons are not tokens */
				c = NOCHAR;

that our older version did not make.  The upshot of this is that people
with .forward files like:

"| umask 077; /usr/local/bin/filter -vo /u/roy/.filter-errors"

no longer work because the semicolon has been stripped out.  There are
a couple of workarounds (backslash the semicolon, or use &&), but that
involves getting a lot of people to fix their existing .forward files.

Can anyone tell me the rationale behind the new test?  What do I break
if I remove the offending test?  Thanks.
								Roy
-- 
Roy J. Mongiovi   Systems Support Specialist        Information Technology
                                                Georgia Institute of Technology
Tough are the souls that tread the knife's edge  Atlanta, Georgia  30332-0715
        J. Tull                                      roy@prism.gatech.edu
Newsgroups: comp.mail.sendmail
From: krenz@pql840.bwi.wec.com (Randy Krenz)
Subject: How To Remove Double-Quotes From Addresses???
Originator: krenz@pql840.bwi.wec.com
Keywords: sendmail sendmail.cf help quotes
Organization: Westinghouse Electronic Systems Group, Baltimore, MD
Date: Wed, 26 Aug 1992 20:41:26 GMT

Hello SendMail Guru's

I am doing some work on sendmail.cf on a Dec machine running 4.2 Ultrix.
I am interested in being able to remove double-quotes from an address.
For example, I want to have the following:

nodename1::"nodename2::user"    =>    nodename1::nodename2::user

I know on HP-UX machines, you can use $< to schedule a home-brew program
to rewrite the address but Ultrix's sendmail does not appear to have this
and I've been unable to determine how to do this. Any ideas?

								Thanx,
								Randy
/***************************************************************************/
/* Randolph A. Krenz                                 \W\               /W/ */
/* Senior Engineer - Computer/Facility Operations     \W\             /W/  */
/* Westinghouse Electronic Systems Group               \W\     ^     /W/   */
/* Product Qualification Laboratory                     \W\   /W\   /W/    */
/* P.O. Box 746, M.S. 504, Baltimore, Md, 21203          \W\ /W W\ /W/     */
/* WEC WIN: 285-6232 / AT&T: (301)765-6232                \W W/ \W W/      */
/* Internet: krenz@pql840.bwi.wec.com                      \W/   \W/       */
/***************************************************************************/
Newsgroups: comp.mail.sendmail
From: peter@merlin.acadiau.ca (Peter Steele)
Subject: Re: IDA-sendmail takes forever to build aliases
Organization: Acadia University
Date: Mon, 31 Aug 1992 14:05:20 GMT

>Duh, so that's why it takes forever on our machine (approx. 300 users)?
>But whereas I can see how I can speed it up on the above example, cutting off
>the domains on our configuration doesn't seem to work. We do:

>firstname.lastname@domain: <>account@somesystem.domain

>in the xaliases file. Somehow I didn't get

>firstname.lastname: <>account@somesystem

>to work. Does that mean I'm stuck with the hundreds of DNS requests?

That didn't work for me either. I have to say:

firstname.lastname: <>account@somesystem.domain

However, that didn't give the effect I wanted either. What I
wanted to see was users' return addresses remapped as 

firstname.lastname@domain

However, the xalias line above produced this:

firstname.lastname@somesystem.acadiau.ca

which is not what I wanted. I tried the various HIDDEN options
but they have the side effect of hiding the hostnames in cases
where I didn't want them hidden.

In the end I had to use

firstname.lastname@domain: <>account@somesystem.domain

as the basis of my alias database. I have to include other
stuff as well to make everything work just right....
--
Peter Steele        Unix Services Manager            peter.steele@acadiau.ca 
Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364
Newsgroups: comp.mail.sendmail