From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ar.aichi-u.ac.jp ([202.250.160.40]) by ur; Wed Nov 11 22:48:10 EST 2015 Received: from [192.168.0.249] ([123.1.17.136]) by ar; Thu Nov 12 12:48:00 JST 2015 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [9front] upas/smtp -h $fqdn not used for HELO dialogue From: arisawa In-Reply-To: Date: Thu, 12 Nov 2015 12:47:59 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <77620FCA-4829-40D1-9144-D84185C22B76@ar.aichi-u.ac.jp> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: ISO-certified polling service References: To: 9front@9front.org X-Mailer: Apple Mail (2.2104) hello, smtp option =E2=80=9C-h=E2=80=9D 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=E3=80=81sl@stanleylieber.com =E3=81=AE=E3=83=A1=E3=83=BC= =E3=83=AB=EF=BC=9A >=20 > Is this intentional? >=20 > /sys/src/cmd/upas/smtp/smtp.c:180,183 >=20 > if(host =3D=3D 0) > host =3D sysname_read(); > strcpy(hostdomain, domainify(host, domain)); > strcpy(hellodomain, domainify(sysname_read(), domain)); >=20 > If so, why? >=20 > I updated my local smtp.c: >=20 > strcpy(hellodomain, domainify(host, domain)); >=20 > Now, upas/smtp -h $fqdn (called by /mail/lib/remotemail) > uses $fqdn for the HELO dialogue. >=20 > sl