9front - general discussion about 9front
 help / color / mirror / Atom feed
* Re: [9front] upas/smtp -h $fqdn not used for HELO dialogue
@ 2015-11-12  4:12 sl
  2015-11-12  4:49 ` arisawa
  0 siblings, 1 reply; 3+ messages in thread
From: sl @ 2015-11-12  4:12 UTC (permalink / raw)
  To: 9front

> smtp option “-h” is not for HELO host.
> 
> hostdomain is used for FROM address, which is used if the recipient is non-existent.
> FROM address may be different from HELO host.
> while HELO host is the system address of the smtp server.
> 
> look rfc2821 in detail

Thanks.

So, does upas have any facility for controlling the HELO
dialogue? Consider what happens when a terminal, which is
rarely endowed with a valid Internet DNS name, sends a
mail with upas/smtp.

sl


^ permalink raw reply	[flat|nested] 3+ messages in thread
* upas/smtp -h $fqdn not used for HELO dialogue
@ 2015-11-12  1:17 sl
  2015-11-12  3:47 ` [9front] " arisawa
  0 siblings, 1 reply; 3+ messages in thread
From: sl @ 2015-11-12  1:17 UTC (permalink / raw)
  To: 9front

Is this intentional?

/sys/src/cmd/upas/smtp/smtp.c:180,183

	if(host == 0)
		host = sysname_read();
	strcpy(hostdomain, domainify(host, domain));
	strcpy(hellodomain, domainify(sysname_read(), domain));

If so, why?

I updated my local smtp.c:

	strcpy(hellodomain, domainify(host, domain));

Now, upas/smtp -h $fqdn (called by /mail/lib/remotemail)
uses $fqdn for the HELO dialogue.

sl


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

end of thread, other threads:[~2015-11-12  4:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-12  4:12 [9front] upas/smtp -h $fqdn not used for HELO dialogue sl
2015-11-12  4:49 ` arisawa
  -- strict thread matches above, loose matches on Subject: below --
2015-11-12  1:17 sl
2015-11-12  3:47 ` [9front] " arisawa

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).