Subject: | AWS SES/TLS |
Date: | Wed, 16 Sep 2020 12:05:06 -0400 |
To: | bug-MIME-Lite [...] rt.cpan.org |
From: | Rob Lauer <rlauer6 [...] comcast.net> |
When trying to send an email using MIME::Lite (3.031) to send an email
using TLS and AWS SES a time out occurs.
Net::SMTP::_SSL=GLOB(0x14c4d58)<<< 250 Ok
Net::SMTP::_SSL=GLOB(0x14c4d58)>>> RCPT TO:<rclauer@gmail.com>
Net::SMTP::_SSL=GLOB(0x14c4d58)<<< 250 Ok
Net::SMTP::_SSL=GLOB(0x14c4d58)>>> DATA
Net::SMTP::_SSL=GLOB(0x14c4d58)<<< 354 End data with <CR><LF>.<CR><LF>
Net::SMTP::_SSL=GLOB(0x14c4d58)>>> .
Net::SMTP::_SSL=GLOB(0x14c4d58)<<< 451 4.4.2 Timeout waiting for data from
client.
Net::CMD (Net::SMTP) DATAEND command failed.
Last server message was:4.4.2 Timeout waiting for data from client.
This probably represents a problem with newline encoding at test-email.pl
line 26.
If I replace the lines around 2911 in MIME::Lite...success
2912 # Send the data
2913 #$smtp->data()
2914 # or die "SMTP data() command failed: $!\n"
2915 # . $smtp->message . "\n";
2916
2917 #$self->print_for_smtp($smtp);
2918 $smtp->data($self->as_string);
Note that using MIME::Lite and localhost (port 25) works without fix above.
Thoughts?