Here I am trying to send mail using Java Mail API. When I am trying to test this to send mail to users from my office public IP address, it works but when I deploy my application to main server then it fails to send the mail, simply getting error message “Relaying denied. IP name lookup failed [IP-Address]”
Here all articles says you have to allow relay from certain hosts is to add those hosts to /etc/mail/local-host-names
You just need to make those changes to the mailserver that is running on your droplet.
Can you guys help me , where I have to configure this ??
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Could you provide some more details about your set up? What kind of SMTP server are you trying to relay through? Is it something you control or an ISP’s? <br> <br>From your droplet, can you run: <br> <br>telnet the.smtp.server.domain 25 <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.