sendmail again

stanonik at nprdc stanonik at nprdc
Sun Apr 21 01:25:27 AEST 1985


"Smtp connections never include the sender in alias expansions and
even drop the sender from the recipient list."  So, smtp mail from
jcc at vaxa after being aliased to jcc at 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 at nprdc

Subject: aliases and smtp
Index: 	usr.lib/sendmail/src/srvrsmtp.c 4.2BSD
Apparently-To: 4bsd-bugs at 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:<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