(Followup) Sending Mail via a Second IP address

2019-11-08 Thread Jerry Malcolm
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

Re: Sending Mail via a Second IP address

2019-11-05 Thread Tellier Benoit
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

Sending Mail via a Second IP address

2019-11-05 Thread Jerry Malcolm
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