bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] fallback to "." when gethostname() yield an empty re


From: Robert Young
Subject: Re: [bug-mailutils] fallback to "." when gethostname() yield an empty result
Date: Tue, 7 Nov 2017 07:50:45 +0000

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:address@hidden' --append='From:
Test <address@hidden>' --subject=Test address@hidden
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:address@hidden' --append='From:
Test <address@hidden>' --subject=Test address@hidden
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:address@hidden' --append='From:
Test <address@hidden>' --subject=Test address@hidden
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 <address@hidden> wrote:
>
> Robert Young <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]