Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!cvl!elsie!ncifcrf!randy From: randy@ncifcrf.UUCP (The Computer Grue) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: sendmail (smtp) problem Message-ID: <149@ncifcrf.UUCP> Date: Tue, 22-Sep-87 08:58:32 EDT Article-I.D.: ncifcrf.149 Posted: Tue Sep 22 08:58:32 1987 Date-Received: Thu, 24-Sep-87 04:42:55 EDT References: <339@taux01.UUCP> Reply-To: randy@ncifcrf.UUCP (The Computer Grue) Organization: NCI Supercomputer Center Lines: 50 Xref: mnetor comp.unix.questions:4211 comp.unix.wizards:4406 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: > 250 ... Sender ok > >>> RCPT To: <---------- WHY ? > 250 ... 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)