HDTenEightyP/NetNews huggingface dataset:
From: km@mathcs.emory.edu (Ken Mandelberg)
Newsgroups: comp.mail.sendmail
Subject: Local Delivery on Incoming Only?
Date: 19 Dec 1992 15:01:33 GMT
Organization: Emory University, Dept of Math and CS
Distribution: world
Reply-To: km@mathcs.emory.edu
NNTP-Posting-Host: km-sl.cc.emory.edu

Does anyone have a sendmail.cf that will accomplish the following:

1) Send all locally initiated mail to a mailhost by smtp
2) Deliver all incoming smtp mail appropriately to local /var/spool/mail

It would even better if I could add a few exceptions to 1) (like root).

---
Ken Mandelberg      | km@mathcs.emory.edu          PREFERRED
Emory University    | {rutgers,gatech}!emory!km    UUCP 
Dept of Math and CS | km@emory.bitnet              NON-DOMAIN BITNET  
Atlanta, GA 30322   | Phone: Voice (404) 727-7963, FAX 727-5611


Xref: sparky comp.mail.sendmail:3010 comp.mail.mh:1393
From: jromine@binky.ics.uci.edu (John Romine)
Subject: Re: Differences invoking sendmail or using socket (localhost,SMTP)
Newsgroups: comp.mail.sendmail,comp.mail.mh
Reply-To: mh@ics.uci.edu (John Romine)
Organization: Univ. of Calif., Irvine, Info. & Computer Sci. Dept.
Date: 16 Dec 92 18:02:37 GMT

mrl@uai.com (Mark R. Ludwig) writes:
>The MH administrator's documentation recommends configuring MH so it
>posts outgoing messages using a socket to a server which talks SMTP,
>as opposed to invoking sendmail in a subprocess and feeding it the
>message.  ...the documentation makes a value judgement that using
>TCP to an SMTP server is superior to invoking the  MTS directly.
>
>I am considering changing our mail environment to have a single mail
>hub, and installing Rich Salz's minimal sendmail configuration which
>just sends everything to the hub.  I would not have a daemon running
>anywhere except on the hub (and would use cron to achieve periodic
>queue runs to handle the hub being busy, hung, or dead).  Should I
>bother to have sendmail run as a daemon [on the non-hub workstations]
>when the only processes connecting would be on the same host?

No.  You've hit upon the reason the "/smtp" mts setting works better.
Build MH with the "/smtp" seting and change your mtstailor file to have
"servers: hub.host.name".  MH will then post messages directly to hub's
SMTP server.  This way, you don't need any local SendMail at all (for MH).

If you have other programs (like cron) which might expect to invoke
/usr/lib/sendmail directly, you can use the dummy sendmail replacement
which is part of MH 6.8.  It will post the mail on hub using SMTP.

>...using TCP to an SMTP server bypasses [the MTA] authentication

Yes, this is because the SMTP provides no authenticaion mechanism.
With MMDF, when you run "submit" directly (instead of posting to the
SMTP server), MMDF checks the uid under which the process submitting
the mail is running to make sure it matches the "From:" line.  I don't
know if SendMail makes this check or not.
--
John Romine
Xref: sparky comp.mail.sendmail:3031 comp.mail.mh:1406
From: jromine@buckaroo.ics.uci.edu (John Romine)
Subject: Re: Differences invoking sendmail or using socket (localhost,SMTP)
Newsgroups: comp.mail.sendmail,comp.mail.mh
Reply-To: mh@ics.uci.edu (John Romine)
Organization: Univ. of Calif., Irvine, Info. & Computer Sci. Dept.
Date: 17 Dec 92 18:45:39 GMT
Followup-To: comp.mail.mh

mrl@uai.com (Mark R. Ludwig) writes:
>I'm reticent to configure N outlying workstations to use SMTP directly
>to our single mail hub, since I don't want to ...  lose mail if the
>hub is busy, hung, or dead.

You can give a list of MTAs to contact in the "servers:" line of the
MH mtstailor file.  For better fault-tolerance, you could list some
servers which belong to another department or organization.  I have
three mail hubs for our 300+ workstations here, and have no problems.
I prefer to manage the three hubs rather than keep track of an MTA
queue on each workstation.

>My understanding is that mail can be dropped if the hub is not accepting
>SMTP for a time, and the system from which mail is being sent cannot
>maintain the background process (due to crash, reboot, ...

In this case, when you "send", MH will say that no servers are available.
The draft will be left untouched, and you can try "send" again later.
Programs like "cron" probably won't do the right thing in this case.
Of course you have the same kind of problem if your local sendmail
isn't working right (workstation's disk full, out of memory, etc.).

If you have a group of diskless workstations and one file server, it's
pretty obvious that running an MTA only on the file server (and letting
the clients post mail with SMTP) is the way to go.  The workstations
won't be doing much if the file server is down; they don't need an MTA.

For larger sites, other tradeoffs come into play.  You should pick
whatever configuration you are comfortable with.
--
John Romine
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Newsgroups: comp.mail.sendmail
Subject: Sendmail queueing with old recipient information
Date: 15 Dec 92 04:00:03 GMT
Article-I.D.: gaia.1gjl83INN9qc
Organization: Oregon State University, College of Oceanography
NNTP-Posting-Host: skyking.oce.orst.edu


Situation: A private mail program to handle incoming mail, written in
perl. Most of what is does is put incoming mail into /var/spool/mail/stanley.
It also forwards based on content and time -- non-mailing-list mail goes
home when I should be there (like now).

Recently, /var/spool/mail has been filling up. So, perl program now
checks to see if the mail gets appended to the mailbox. If not, it
returns ETEMPFAIL (75).

Well, it appears that this error causes sendmail to queue up and attempt
delivery later. That isn't the problem.

The problem is that the sendmail queue contains the path name to the
program in the R field of the qf file. When it gets around to the next
delivery attempt, it 1) doesn't bother to look up aliases or .forward
files or etc. for the intended recipient (minor) and 2) forgets that it
is supposed to setuid before running that program. The latter error
means that my perl script is being run as daemon, and it has no access
to write to any of my files. As such, it returns ETEMPFAIL when the mail
cannot be appended to the mailbox.

Questions: Is there a better error return that will inform other mailers
to try again?  Is there a way to tell sendmail to keep track of the
recipient and do the setuid call it should be doing?

The queue is local to the system, SunOS 4.0.3 on a Sun 3, perl 4pl19.
Newsgroups: comp.mail.sendmail
From: blad@fwi.uva.nl (Marco Blad (I89))
Subject: Re: Help needed: How to mail a file?
Organization: FWI, University of Amsterdam
Date: Thu, 17 Dec 1992 13:41:53 GMT

huangz@topaz.ucq.edu.au writes:

>I have a question as I am learning UNIX:
>How can I send a file to another user via e-mail? I look through the Unix
>Reference, just cann't find such a command?

mail <address> < <filename>

>Thank you!

Newsgroups: comp.mail.sendmail
From: rickert@mp.cs.niu.edu (Neil Rickert)
Subject: Re: Sendmail rule matching ?
Organization: Northern Illinois University
Date: Thu, 17 Dec 1992 18:39:36 GMT

In article <1992Dec16.230543.27790@nobeltech.se> ppan@nobeltech.se (Per Andersson) writes:
>Hi.
>
>I have a problem a little different to most others here. I need to do MX
>delivery to some local domains, sweden,norway etc. and go through a relay 
>host for the rest of the mail. I tried rules like this in rule 3 or 13:
>
>R$*<@$*.no>$*           $#TCP $@ $2.no $:$1<@$2.no>$3   user@any.no

Mailer selection rules, such as this, must go in ruleset 0, or in a
ruleset called as a subroutine by ruleset 0.  Putting this in ruleset 3
is certainly a mistake.

If, as you indicate, you are using IDA then try the supplied configuration
package.  You can use a RELAY_HOST/RELAY_MAILER to send out most mail,
use the ISOLATED_DOMAIN option to directly send to your own domain and
a few others, and for more flexibility you can use MAILERTABLE entries
to individually select hosts or domains to which you mail directly.

Newsgroups: comp.mail.sendmail
From: hubcap@hubcap.clemson.edu (System Janitor)
Subject: Re: Sendmail dumps core during transaction
Organization: Clemson University
Date: Tue, 15 Dec 1992 17:31:35 GMT

sammut@durian.citr.uq.oz.au (David Sammut) writes:


>I am running Sendmail 5.65 with IDA on a VaxStation II (fairly slow
>a mail message.  It cores after the mail transaction has been processed
>but before the mail message has been taken out of the queue.  This causes
>multiple transmissions of the same message until I delete the message from
>the queue manually.  This problem only seems to occur when the number of
>recipients is 45 or more.

I had the same problem here with vanilla sendmail 5.64. I posted the 
problem here and no one (not even neil!) posted a reply. I fixed it
by upgrading to vanilla 5.65. Are you sure you have IDA 5.65? Is whoever
IDA'ed the 5.65 you're using sure they used 5.65 sources :-) ?

-Mike
Newsgroups: comp.mail.sendmail,comp.mail.mh
From: mrl@uai.com (Mark R. Ludwig)
Subject: Differences invoking sendmail or using socket (localhost,SMTP)
Organization: Universal Analytics, Inc., Torrance (LA), CA
Date: 14 Dec 92 09:50:12

The MH administrator's documentation recommends configuring MH so it
posts outgoing messages using a socket to a server which talks SMTP,
as opposed to invoking sendmail in a subprocess and feeding it the
message.  In more than one place, the documentation makes a value
judgement that using TCP to an SMTP server is superior to invoking the
MTS directly.

I am considering changing our mail environment to have a single mail
hub, and installing Rich Salz's minimal sendmail configuration which
just sends everything to the hub.  I would not have a daemon running
anywhere except on the hub (and would use cron to achieve periodic
queue runs to handle the hub being busy, hung, or dead).  Should I
bother to have sendmail run as a daemon when the only processes
connecting would be on the same host?

I would like to understand the logic behind the conclusion in the MH
documentation that using SMTP over TCP is superior, and perhaps hear
from people who went against the recommendation and omitted "/smtp"
from the "mts" line in their MH configuration.  The documentation also
makes a vague statement that using TCP to an SMTP server bypasses
whatever authentication the MTS has.  In the case of sendmail, I
assume this means one could pretend to be someone else, but my
understanding is that MH's post(8) would insert the "Sender:" field to
make the message RFC-conforming.  I'm not sure, then, to what
authentication the documentation refers.

I'd appreciate enlightenment from people who understand how MH and
sendmail work best together.$$
-- 
INET: mrl@uai.com           NIC: ML255           ICBM: USA; Lower Left Coast
"A computer is one of life's joys; it follows simple rules.  Just like
 children, adults need toys, only we like to call them 'tools.'" -- Dave Ross
From: is_s440@uk.ac.kingston.ceres (Simon Lucas)
Newsgroups: comp.mail.sendmail
Subject: domain std file
Date: 16 Dec 92 21:09:59 GMT
Organization: Glasgow University Computing Science Dept.
Original-Sender: is_s440@uk.ac.kingston.ceres
Return-Path: <local-uk-sendmail-workers-request@dcs.gla.ac.uk>
X-Mailer: MMDF/Ream v4.12bv.k1, mail-news 2.0.5

Sendmail Configuration Package UK2.1

I have tried putting the line 
sunny.king.ac.uk 

in my domain std file and the checkdom program during the 'make check'
command fails with an awk error complainng about line 4.
I dont have a line 4 just the one mentioned above!

The manual for this Sendmail Configuration Package UK2.1 is a bit vague
about what should go in here, there are no example lines in the User Guide
for this bit (at the bottom of page 3)

I'm at my wits end with this. 
I ran make, anyway, and the slave.cf file 
still had glasgow in two parts of it. I changed these to something
sensible, although I didn't know whether the w in w.cs.glasgow should
be left in, or removed to read w.king.ac.uk or king.ac.uk.

Anyway I installed the .cf, restarted sendmail and now I can't send any mail
at all. I could send mail before when I tried editing the file as in the sun3.5 
manuals.

Is this program really meant to make things simpler?

Simon Lucas
school of information systems
kingston univ.
Organization: K.U.Leuven - Academic Computing Center
Date: Thursday, 17 Dec 1992 14:45:04 +01
From: <ADMIN@cc1.kuleuven.ac.be>
Newsgroups: comp.mail.sendmail
Subject: software to maintain big xaliases file for generics

Hello,

I am wondering which software and procedures can be used to
maintain a big xaliases file (initially around 5000 persons),
to have generic mail addresses Surname.Name@org.kuleuven.ac.be

A few of the things I am thinking of that should be possible :

- decentralized updates (not by end users themselves)
- possibility to maintain coordinates like Name, generic
  E-mail + mapping to one primary and more secondary addresses,
  campus address, Tel and fax, ... maybe other things ...
- make the above information query-able
- checking with * personnel database
                * userids on machines

-Herman-
From: vincent@cad.gatech.edu (Vincent Fox)
Newsgroups: comp.mail.sendmail
Subject: IDA: making relay.domain=domain
Date: 19 Dec 1992 17:24:59 -0500
Organization: Georgia Institute of Technology, CAE/CAD Lab
Distribution: usa
NNTP-Posting-Host: cae.cad.gatech.edu

I must be doing something wrong. I have a Sparc II I compiled IDA on.
I want the relay machine (aurora.cad.gatech.edu) to appear to be the
domain name (cad.gatech.edu). I use a cad.mc as follows:

divert(10)dnl
#
# cad configuration file
#
# @(#)cad.mc	1.11 (Berkeley) 1/24/89
#
define(DOMAIN, `DDgatech.EDU')
define(UUCP_RELAY, DRmailhost.gatech.EDU)
define(BITNET_RELAY, `DBgtri01.gatech.EDU')
define(EXTERNAL_VERSION, ``#'	`@(#)cad.mc	1.11' (Berkeley) `1/24/89'')
divert(0)dnl
include(proto.mc)dnl

I still get aurora.cad.gatech.edu attached. Should I be using DDcad.gatech.edu,
and enabling something else in cad.mc?
From: freyder@was.waii.com (Rob Freyder)
Newsgroups: comp.mail.sendmail
Subject: SGI and their sendmail !
Date: 15 Dec 92 05:32:22 GMT
Distribution: na
Organization: Western Atlas Software - A Litton/Dresser Company
Phone: (713) 972-6678

Hi,

Sigh.  I just noticed something peculiar about SGI's sendmail.  It doesnt
like delivering mail to NFS mounted mailboxes.

Our mailhost is a Sun running IDA sendmail.  (Yeah !)  Our sgi boxes mount
their mail directory from the Sun.  If the Sun does the delivery all is well.
If the Sgi does local delivery to this NFS mounted directory strange things
happen.  Like the owner of the file gets changed to the owner ID listed in
the sendmail.cf file !  The sgis dont necessarily run NIS so I guess the
potential for Userid mismatch is there.  I checked and the IDs are the same
on both machines.  Afterall reading/deleting of the mail works fine.
I dont understand it must they change the owner ?!!!

I am in the process of building IDA for these boxes but it just bothers me
that this doesnt work.  

I would like ALL mail from the SGI to go to the Sun for delivery.
EVEN local mail.  This would solve the problem.  We use hiding so addresses
get rewritten as user@domain.  This works great on the suns/RS6000s


Thanks. Rob.
--
Rob Freyder                             Western Atlas Software
____    ____     ____                   Western Atlas International Inc.
\   \  /   /\   /   /\                  A Litton / Dresser Company
 \   \/   /  \ /   /  \                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  \  /   / \  /   /\   \                Internet  :  freyder@was.waii.com
   \/___/   \/___/  \___\               Voice     :  (713) 972-6678
Xref: sparky comp.mail.sendmail:3014 comp.mail.mh:1399
From: vixie@pa.dec.com (Paul A Vixie)
Newsgroups: comp.mail.sendmail,comp.mail.mh
Subject: Re: Differences invoking sendmail or using socket (localhost,SMTP)
Date: 16 Dec 92 11:37:11
Organization: DEC Network Software Lab
NNTP-Posting-Host: cognition.pa.dec.com
In-reply-to: mrl@uai.com's message of 14 Dec 92 09:50:12

When you run sendmail as a subprocess, you can either run SMTP over a pipe
(-bs option) or you can just specify the envelope recipients on the command
line and blast the message over the pipe, headers and all, or you can let
the To/Cc headers specify the envelope recipients (-t option) and just blast
the message over the pipe, headers and all.  Of these, speaking SMTP is more
robust since it lets sendmail tell MH, which can tell you, that some of the
recipients are reachable and some are not.  Without SMTP in the picture, you
pretty much have to use -oem and let sendmail *mail* you back any failure
notifications.

If you are going to use SMTP, it is better to speak to the SMTP port on your
own host or perhaps on the local mail hub, than to fork and exec a sendmail
with the -bs option.  This is partly for performance reasons; a running
sendmail listener can fork a subprocess to speak SMTP to you at far less
cost than you can vfork and exec a new sendmail process which then has to
initialize various things that a child of the main listener would just
inherit.  Also, once you are speaking SMTP you get the option of not running
a sendmail on the local host at all if you don't want to; just speak to the
mail hub.  That's the ideal way to configure MH, in my opinion.  SMTP to the
mail hub for transmission, and POP from the mail hub for reception.
--
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
Newsgroups: comp.mail.sendmail
From: kupfer@htlulx.htl-bw.ch (Kupferschmid Christian)
Subject: FAQ: info about sendmail.cf
Organization: HTL Brugg-Windisch, Switzerland
Date: Thu, 17 Dec 1992 07:45:11 GMT


I don't know much about sendmail.cf. Where can I get detailed info about the
roulesets, syntax and whatever it needs to properly configure a sendmail.cf.

We're running ULTRIX 4.2A

E-mails preferred. I'll summarize if someone wants the info.

	Chris
-- 
School of Engineering, Switzerland
Information Center

HTL Brugg-Windisch               |RFC-822:        kupfer@htl-bw.ch
Newsgroups: comp.mail.sendmail
From: schinagl@fstgds15.tu-graz.ac.at (Hermann Schinagl)
Subject:  Building IDA Sendmail on Stardent/Kubota (?)
Organization: Technical University of Graz, Austria
Date: Sun, 13 Dec 92 17:30:38 GMT

Hi !

Did anybody outhere build IDA sendmail for Stardent. It seems to
be an easy job, if you have added some missing header files, doing
your own config/stardent.h file, searching for lost syscalls ...

Well, I managed it to build it except:

If I define LACK_SIGBLOCK, a syscall named sigprocmask is used by
the compiler, but where to get it from ? I have searched all the 
libraries by 'ar' , did a grep on all the header files ... but nothing.

Ok, beeing a bad guy I have temporarily uncommented the call to sigprocmask
and compiled IDA sendmail. But starting up sendmail causes sendmail 
immedeatly to fork itself, so that a copy of sendmail is in the process
table. 

If I telnet to smtp, IDA welcomes me, accepts helo, but if I try to
deliver mail via MAIL FROM: <name> sendmail forks some more times and
hangs up.

Turning on the debug flags shows that geloadavg returns -1.

Stardent operating system seems to be derived from SYS5, and the station
shares their disks via NFS to three other stardent stations.

It seems to me that I have done something basically wrong.

Has anybody had similar expierences ?

Please email me

Thanks in advance Hermann


Newsgroups: comp.mail.sendmail
From: arnold@stat.ncsu.edu (Tim Arnold)
Subject: sendmail advice please
Organization: Department of Statistics, NCSU
Date: Thu, 17 Dec 1992 15:10:53 GMT

(This is cross posted on comp.mail.misc.  Apologies if you
see this twice.  I thought I needed to contact both groups).


I'm worried about a high volume of mail requests--I am running
a Sun Sparc IPX, SunOS 4.1.3, OW 3, unix listserv, gopher and
squirrel mail server.  I'm using the standard sendmail that came
on the machine.

My question is: what mta should I be using? If sendmail is a problem,
why is it a problem?

I will be going public with the machine soon and I want to be
prepared for a large volume of mail requests.  I'm no expert--thats
why I read the net, to find out what the experts say.  

What I'm worries me is the following info from the net:

From the UNIX Email Software Survey FAQ:
> 
> Scenario 3:  Connections to other networks (optionally including
>     SMTP or UUCP), or very high loading.
> 
>     Your best bets are MMDF, PP or zmailer.
>     
>     You can implement other network interfaces with sendmail, but
>     not only will you probably have to roll your own, but sendmail
>     can't cope with high loading very well.  Ditto smail 3.
> 
>

Another person on the net replies to a similar question from me:
> sendmail doesn't break, but if you have the parameters set wrong, it
> forks off too many copies at once.  the sendmail to use though is the
> sendmail5.65c off of uxc.cso.uiuc.edu.  don't use the junk that comes
> with your sun.

Any comments welcome. (got to decide soon: thinking of MMDF,
PP, zmail, and now sendmail5.65).
--Tim Arnold arnold@stat.ncsu.edu
-- 
----------------------------------------------------------------------
Tim Arnold                      Instructional Computing
Internet: arnold@stat.ncsu.edu  North Carolina State Univ.
BITNET  : ARNOLD@NCSUSTAT       Dept. of Statistics, Raleigh NC 27695
Newsgroups: comp.mail.sendmail
From: rich@tsmnet3.uucp (Richard Martin)
Subject: Re: How to delete hostnames in outgoing mail ?
Organization: E-Systems, Melpar Division
Date: Wed, 16 Dec 1992 23:13:43 GMT

yoda@next2.cis.uni-muenchen.de (Marc Guenther) writes:

>Hello,

>I've tried this for ages, and I keep getting wrong results,
>so I simply dont know what to do anymore.

>What I want to do is, to erase the hostname in the From: field
>of every outgoing mail.

>For example, I am sitting an the machine alderaan in the domain
>cis.uni-muenchen.de, and when I'm sending mail to the world,
>my From: line looks like this:	yoda@alderaan.cis.uni-muenchen.de
>but I woant it to look like:	yoda@cis.uni-muenchen.de

>Anybody knows how to do this ?

>Thanks,
>Yoda
>--
>yoda@cis.uni-muenchen.de

Try adding a rule to ruleset 1 of sendmail.cf, something like

R$+@alderaan.$+                 $1@$2

This should rewrite anything with in the form user@alderaan.domain_stuff to
user@domain_stuff.  This will only change the FROM: line.  

You might also want to look at the ruleset that your tcp mailer is calling..
probably 14.  See where it is adding your machines name and look at changing
it so that it only adds your machine name when necessary (if at all).



-- 
Richard Martin
E-Systems, Melpar Division
..uunet!melpar!rich
rich%melpar@uunet.uu.net
Newsgroups: comp.mail.sendmail
From: parson@coulomb.pcc.oz.au (Brenda Parsons)
Subject: Trouble mailing local users
Organization: Prospect Electricity
X-Newsreader: TIN [version 1.1 PL6]
Date: Mon, 14 Dec 92 01:49:13 GMT


We are using SunOS 4.1.2, Sendmail 4.1, and have one
'network' machine (attached via modem), and all other
machines have their '/var/spool/mail' nfs'd from the
'network' machine.

All users can send and receive mail fine from the outside
world, but we can't send mail locally.

Only users logged into the 'network' machine can mail users
on the 'network' machine.  No other combination works.

What am I missing?

Thanks 
-- 
% Brenda Parsons                  
% Currently at Prospect Electricity
% 10 Smith Street, Parramatta 2150, Australia
% +61 2 635 0300              e-mail:   parson@coulomb.pcc.oz.au        
Newsgroups: comp.mail.sendmail