[comp.unix.questions] sendmail

tom@taux01.UUCP (Tom Gorodecki) (09/21/87)

Hello world !
sendmail (smtp) wizards ,please help.

Look at the following script :
Why does the Sender address is copied into the Recipient
address?

Script started on Mon Sep 21 15:59:14 1987
taux02-2# /usr/lib/sendmail  -v -ftom@tavm01  tom@taux01 < /etc/printcap
tom@taux01... Connecting to taux01.ether...
220 taux01.taux01.UUCP Sendmail 5.51/IL-1.2 ready at Mon, 21 Sep 87 15:59:45 +0200
>>> HELO taux02.taux01
250 taux01.UUCP Hello taux02.taux01, pleased to meet you
>>> VERB
200 Verbose mode
>>> ONEX
200 Only one transaction
>>> MAIL From:<tom@tavm01>
250 <tom@tavm01>... Sender ok
>>> RCPT To:<tom@tavm01>              <---------- WHY ? 
250 <tom@tavm01>... Recipient ok
>>> DATA
ok 
354 Enter mail, end with "." on a line by itself
>>> .
050 <tom@tavm01>... Connecting to .toibm...
050 <tom@tavm01>... Sent
250 Ok
>>> QUIT
221 taux01.UUCP closing connection
tom@taux01... Sent
taux02-2# 
script done on Mon Sep 21 16:00:06 1987
-- 
Gorodecki Tom.  National Semiconductor (Israel)
6 Maskit st. P.O.B. 3007, Herzlia B,  46 104, Israel
UUCP:  {hplabs,pyramid,sun,decwrl}!nsc!taux01!tom
domain:  tom%taux01@nsc.com

randy@ncifcrf.UUCP (The Computer Grue) (09/22/87)

In article <339@taux01.UUCP> tom%taux01@nsc.com (Tom Gorodecki)
writes:
>       
>	Look at the following script :
>	Why does the Sender address is copied into the Recipient
>	address?
>	
>	Script started on Mon Sep 21 15:59:14 1987
>	taux02-2# /usr/lib/sendmail  -v -ftom@tavm01  tom@taux01 < /etc/printcap
	[Non-essential (I hope :-}) part deleted]
>	>>> MAIL From:<tom@tavm01>
>	250 <tom@tavm01>... Sender ok
>	>>> RCPT To:<tom@tavm01>              <---------- WHY ? 
>	250 <tom@tavm01>... Recipient ok
>	>>> DATA
	[Same comment]


    I believe what is happening is the following: In your sendmail.cf
  file, the address 'tom@taux01' is getting rewritten to '$#tcp
  $@taux01 $:tom' (ie.  Mailer: tcp, host: taux01, User: tom).  Now
  the tcp/ip mailer is setup by default (via the C flag in the spec in
  the sendmail.cf file) to append the hostname of the *sender* to the
  username if the username does not include a host name (I will admit
  (*blush*) as to not being completely sure why this is done, but I'm
  assuming there's a good reason and I've left it in in my sendmail.cf
  file).  You can check to see if I'm right by sending mail to some
  user other than 'tom' at host taux01.  The mail should end up being
  sent to 'user@tavm01' in the above config.  The fix I'd suggest (If
  I've got the right break) is to explicitly force the tcp mailer
  selection rewrite rule in ruleset 0 to specify both $@host and
  $:user@host (same host).  This is the solution I use here for a
  similar problem.  I'm not sure it's possible to diagnose this
  problem further without seeing you sendmail.cf file, but that's my
  best guess (it'd also help to know what computer you are running on,
  so as to possibly be able to refer you to manual pages).

    You might also want to try throwing a copy of sendmail into
  address test mode (/usr/lib/sendmail -bt) and playing around with
  testing out addresses through ruleset 0.  Check out your local copy
  of the sendmail Installation and Operation manual.

					-- Randy Smith


-- 
  Randy Smith    @	NCI Supercomputer Facility
  c/o PRI, Inc.		Phone: (301) 698-5660                  
  PO Box B, Bldng. 430  Uucp: ...!uunet!mimsy!elsie!ncifcrf!randy
  Frederick, MD 21701  	(Use ...seismo!elsie... until Sept. 1st)

MOORE%MIDD.BITNET@mitvma.mit.edu (11/11/88)

Sorry to bring up religious matters in polite company ...

I'm something of a junior mail hacker, and I've gotten curious about the
current revs and availability of certain mail handlers.  Questions for
the masses are:

1) Any one know the latest rev of Sendmail ?  I know 5.59 exists, is there
anything beyond ??
2) How about the IDA Sendmail enhancements available at from xerox machines
(I forget the exact one) ?  I know about 1.2.something.
3) What's the state of affairs as far as MH and Elm go ??  I know these
things exist, but that's about it ?
4) Any other favorites out there ?

Please send all responses directly to me, as I'm way behind in my news reading.
I'll summarize everything if folks are interested.

Apologies to folks getting this twice through info-unix and sun-spots -- just
trying to cover a large readership.

Thanks in advance,
Evan R. Moore
Academic Computing Services
Middlebury College
MOORE@MIDD on the BITNET
91erm@cc.williams.edu is a past life which forwards to my new home.  Internet
 folks feel free to use it.

(Spelling errors can't be helped.  I have no primary language.)

guerra@lance.tis.llnl.gov (Frank Guerra) (10/19/90)

I would like to know if it is possible, and if so how, to configure sendmail
such that the headers in mail directed to a particular host(s) is treated
differently.  I'm not a sendmail jockey and am only superficially aware of
how it works.  In particular, I want to do this :  If I send to host X, I don't
want to include the full name of the sender on the From: line.  If I am not
sending to host X, nothing changes.  Anyone? Anyone?

Frank M. Guerra
guerra@lance.tis.llnl.gov