Re: fallback to "." when gethostname() yield an empty result

Robert Young <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <CAJjz_Nghx=wfvF+wfMLn7SXPfGgPB6hVD+XRYZLF3uzM7xAozA@mail.gmail.com>
It seems problem NOT solved!

 tmp # /usr/bin/mail -V
mail (GNU Mailutils) 3.4

TEST1(empty_hostname):
tmp # hostname ''
 tmp # date | /usr/bin/mail --debug-level=mailer.prot --exec='setq
mode=send' --exec='set ignore' --exec='set noquit' --exec='set
noaskcc' --exec='set noasksub' --exec='set nosave' --exec='set
noappenddeadletter' --exec='set nonullbody' --exec='set nonullbodymsg'
--exec='set noxmailer' --exec='set readonly' --exec='set
sendmail=smtps://your_mail:[email protected]' --append='From:
Test <[email protected]>' --subject=Test [email protected]
mail: S: 220 smtp.gmail.com ESMTP c1sm1582198pfa.12 - gsmtp
mail: Cannot open mailer: Function not implemented
Segmentation fault
 tmp #

TEST2("."==hostname):
 tmp # hostname .
 tmp # date | /usr/bin/mail --debug-level=mailer.prot --exec='setq
mode=send' --exec='set ignore' --exec='set noquit' --exec='set
noaskcc' --exec='set noasksub' --exec='set nosave' --exec='set
noappenddeadletter' --exec='set nonullbody' --exec='set nonullbodymsg'
--exec='set noxmailer' --exec='set readonly' --exec='set
sendmail=smtps://your_mail:[email protected]' --append='From:
Test <[email protected]>' --subject=Test [email protected]
mail: S: 220 smtp.gmail.com ESMTP m195sm1475229pga.13 - gsmtp
mail: C: EHLO
mail: S: 501-5.5.4 Empty HELO/EHLO argument not allowed, closing connection.
mail: S: 501 5.5.4  https://support.google.com/mail/?p=helo
m195sm1475229pga.13 - gsmtp
mail: C: HELO
mail: Cannot open mailer: Input/output error
Segmentation fault
 tmp #

TEST3("myhost"==hostname):
 tmp # hostname myhost
 tmp # date | /usr/bin/mail --debug-level=mailer.prot --exec='setq
mode=send' --exec='set ignore' --exec='set noquit' --exec='set
noaskcc' --exec='set noasksub' --exec='set nosave' --exec='set
noappenddeadletter' --exec='set nonullbody' --exec='set nonullbodymsg'
--exec='set noxmailer' --exec='set readonly' --exec='set
sendmail=smtps://your_mail:[email protected]' --append='From:
Test <[email protected]>' --subject=Test [email protected]
mail: S: 220 smtp.gmail.com ESMTP v15sm1512791pfa.50 - gsmtp
mail: C: EHLO myhost
mail: S: 250-smtp.gmail.com at your service, [106.184.3.179]
...
mail: C: .
mail: S: 250 2.0.0 OK 1510040860 v15sm1512791pfa.50 - gsmtp
mail: C: QUIT
mail: S: 221 2.0.0 closing connection v15sm1512791pfa.50 - gsmtp


On Wed, Nov 1, 2017 at 9:07 AM, Sergey Poznyakoff <[email protected]> wrote:
>
> Robert Young <[email protected]> ha escrit:
>
> > ERROR: An empty_argumented EHLO command issued on a machine without hostname
>
> Thanks for reporting.
>
> > PATCH to solve this issue:
>
> Single dot is not a valid argument for the EHLO command. RFC mandates
> that its argument be either a valid hostname or an IP address in square
> brackets. I've fixed this in commit 4e7bcdbae346a26c1addf266a23c1f6cdc74533f.
>
> Regards,
> Sergey
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.