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!linus!philabs!cmcl2!seismo!brl-tgr!internet!stanonik@nprdc From: stanonik@nprdc Newsgroups: net.unix-wizards Subject: aliases and smtp Message-ID: <5748@brl-tgr.ARPA> Date: Tue, 13-Nov-84 14:14:46 EST Article-I.D.: brl-tgr.5748 Posted: Tue Nov 13 14:14:46 1984 Date-Received: Thu, 15-Nov-84 01:32:19 EST Sender: news@brl-tgr.ARPA Organization: Ballistic Research Lab Lines: 41 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;