aliases and smtp

stanonik at nprdc stanonik at nprdc
Wed Nov 14 05:14:46 AEST 1984


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:<root>
	rcpt to:<root>
	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;



More information about the Comp.unix.wizards mailing list