Subject: | Net:SMTP default hello |
Date: | Fri, 27 Jun 2014 18:09:05 +0100 |
To: | bug-Net-SMTP-SSL [...] rt.cpan.org |
From: | Alex Sheppard <ams [...] corefiling.com> |
Hi,
Firstly, I wanted to submit this against Net-SMTP, but only
Net-SMTP-* were listed on
<https://rt.cpan.org/Public/Dist/Browse.html?Name=N>, no plain Net::SMTP.
With respect to the default 'Hello', Net::SMTP does indeed behave
as documented but I'm not convinced this is the most sensible behaviour.
"""
*Hello* - SMTP requires that you identify yourself. This option
specifies a string to pass as your mail domain. If not given
localhost.localdomain will be used.
"""
Why not use the actual machine hostname, e.g. as returned by
Net::Domain:hostfqdn(), for the default identification of the machine
sending email? You could still fall back to 'localhost.localdomain' if
there was a problem getting the actual hostname.
Regards,
Alex
--
Dr. Alex Sheppard
ams@corefiling.com <mailto:ams@corefiling.com>
http://www.corefiling.com