Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!philabs!cmcl2!seismo!brl-tgr!tgr!stanonik@nprdc From: stanonik@nprdc Newsgroups: net.unix-wizards Subject: Re: sendmail again Message-ID: <10083@brl-tgr.ARPA> Date: Sat, 20-Apr-85 10:25:27 EST Article-I.D.: brl-tgr.10083 Posted: Sat Apr 20 10:25:27 1985 Date-Received: Mon, 22-Apr-85 06:52:20 EST Sender: news@brl-tgr.ARPA Lines: 53 "Smtp connections never include the sender in alias expansions and even drop the sender from the recipient list." So, smtp mail from jcc@vaxa after being aliased to jcc@vaxa on vaxb is quietly dropped by vaxb. Your syslog on vaxb should show a From, but no To entry. We encountered a similar problem when we brought up our second vax. Ron Stanonik stanonik@nprdc Subject: aliases and smtp Index: usr.lib/sendmail/src/srvrsmtp.c 4.2BSD Apparently-To: 4bsd-bugs@BERKELEY Description: Sendmail 'normally' doesn't include the sender in alias expansion; this feature is documented in the manual page. 'Normally' wasn't what I expected, but it was ok. Smtp connections however never include the sender in alias expansions and even drop the sender from the recipient list. The problem seemed to be that smtp recipients weren't treated the same as sendmail arguments; ie, weren't being tagged QPRIMARY. Repeat-By: /usr/lib/sendmail -bs mail from: rcpt to: data test . quit Nothing is delivered to root. Fix: Set the QPRIMARY flag for recipients in the CMDRCPT case in smpt() srvrsmtp.c RCS file: RCS/srvrsmtp.c,v retrieving revision 1.2 diff -c -r1.2 srvrsmtp.c *** /tmp/,RCSt1010446 Tue Nov 6 07:36:18 1984 --- srvrsmtp.c Fri Nov 2 10:36:34 1984 *************** *** 231,236 a = parseaddr(p, (ADDRESS *) NULL, 1); if (a == NULL) break; a = recipient(a, &CurEnv->e_sendqueue); if (Errors != 0) break; --- 231,237 ----- a = parseaddr(p, (ADDRESS *) NULL, 1); if (a == NULL) break; + a->q_flags |= QPRIMARY; a = recipient(a, &CurEnv->e_sendqueue); if (Errors != 0) break;