9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] small smtpd bug
@ 2000-10-19 15:17 bobf
  0 siblings, 0 replies; 2+ messages in thread
From: bobf @ 2000-10-19 15:17 UTC (permalink / raw)
  To: 9fans

> I know verifying the sender domain is a fairly weak test (you need only supply
> a valid one), but it doesn't work unless you are operating a filrewall configuration.
>
> See the following in /sys/src/cmd/upas/smtp/rmtdns.c
>
> 	fd = open("/net.alt/dns", ORDWR);	/* look up all others */
> 	if(fd < 0)				/* dns screw up - can't check */
> 		return 0;
>
>
> This would do as a quick patch....
>
> 	fd = open("/net.alt/dns", ORDWR);	/* look up all others */
> 	if (fd < 0)
> 		fd = open("/net/dns", ORDWR);
> 	if(fd < 0)				/* dns screw up - can't check */
> 		return 0;
>
> This is slightly at odds with what mxdial does. Perhaps a command line
> option to smtpd to tell it which dns to use?

this patch doesn't work well for us because of pathologies of our
internal domain structure.  i will probably change it to look in
/net by default, but to override that with the network specified with
the '-n' command line argument.  this assumes that the
peer and the appropriate DNS are on the same network, but that
assumption does not seem unreasonable.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] small smtpd bug
@ 2000-10-19 10:14 nigel
  0 siblings, 0 replies; 2+ messages in thread
From: nigel @ 2000-10-19 10:14 UTC (permalink / raw)
  To: 9fans

I know verifying the sender domain is a fairly weak test (you need only supply
a valid one), but it doesn't work unless you are operating a filrewall configuration.

See the following in /sys/src/cmd/upas/smtp/rmtdns.c

	fd = open("/net.alt/dns", ORDWR);	/* look up all others */
	if(fd < 0)				/* dns screw up - can't check */
		return 0;


This would do as a quick patch....

	fd = open("/net.alt/dns", ORDWR);	/* look up all others */
	if (fd < 0)
		fd = open("/net/dns", ORDWR);
	if(fd < 0)				/* dns screw up - can't check */
		return 0;

This is slightly at odds with what mxdial does. Perhaps a command line
option to smtpd to tell it which dns to use?




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-19 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-19 15:17 [9fans] small smtpd bug bobf
  -- strict thread matches above, loose matches on Subject: below --
2000-10-19 10:14 nigel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).