Benoit, thanks for the info about adding the localaddress parameter.
Just for future readers who might be doing this on Amazon Web Services
EC2, there is a rather large pitfall that I encountered. AWS EC2
instances have two different IP addresses for each external IP: an
internal private IP a
Hi Jerry,
You need also to specify `mail.smtp.localaddress`
https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html
Local address (host name) to bind to when creating the SMTP socket.
Defaults to the address picked by the Socket class. Should not normally
need to be set
As if I haven't hit enough problems in this transition apparently
the IP address that AWS assigned to me was formerly used by a spammer.
So far, both sbcglobal and icloud.com are blocking and bouncing all
email saying my IP is blacklisted. Yippee
I don't want to change my inbound ip a