* 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; 2+ 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] 2+ messages in thread
* Re: [9front] upas/smtp -h $fqdn not used for HELO dialogue
2015-11-12 1:17 upas/smtp -h $fqdn not used for HELO dialogue sl
@ 2015-11-12 3:47 ` arisawa
0 siblings, 0 replies; 2+ messages in thread
From: arisawa @ 2015-11-12 3:47 UTC (permalink / raw)
To: 9front
hello,
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
> 2015/11/12 10:17、sl@stanleylieber.com のメール:
>
> 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] 2+ messages in thread
end of thread, other threads:[~2015-11-12 3:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-12 1:17 upas/smtp -h $fqdn not used for HELO dialogue 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).