9front - general discussion about 9front
 help / color / mirror / Atom feed
From: arisawa <arisawa@ar.aichi-u.ac.jp>
To: 9front@9front.org
Subject: Re: [9front] upas/smtp -h $fqdn not used for HELO dialogue
Date: Thu, 12 Nov 2015 12:47:59 +0900	[thread overview]
Message-ID: <77620FCA-4829-40D1-9144-D84185C22B76@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <db2bc67228b34f78d928b0a553054064@u2.attlocal.net>

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



  reply	other threads:[~2015-11-12  3:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12  1:17 sl
2015-11-12  3:47 ` arisawa [this message]
2015-11-12  4:12 [9front] " sl
2015-11-12  4:49 ` arisawa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77620FCA-4829-40D1-9144-D84185C22B76@ar.aichi-u.ac.jp \
    --to=arisawa@ar.aichi-u.ac.jp \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).