Mobile app version of vmapp.org
Login or Join
Ravi8258870

: Relay Access Denied Error I'm coming over here from StackOverflow trying to find an answer for my question: I'm trying to send an email, and I get this email back: Delivery to the following

@Ravi8258870

Posted in: #Domains #Email

I'm coming over here from StackOverflow trying to find an answer for my question:

I'm trying to send an email, and I get this email back:


Delivery to the following recipient failed permanently:

booking@domain.de

Technical details of permanent failure: Google tried to deliver your
message, but it was rejected by the server for the recipient domain
domain.de by mail.domain.de. [88.198.227.52].

The error that the other server returned was: 554 5.7.1
: Recipient address rejected: Relay access denied


I don't really understand this error, all I found out was that it seems like google doesn't want to send an email to this domain because it doesn't trust it.(?)

I'm trying to send this email from an app, here are some settings I made prior to sending it. I tried from the normal gmail.com webinterface too, but this results in the same error.

props.setProperty("mail.transport.protocol", "smtp");
props.setProperty("mail.host", mailhost);
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");
props.setProperty("mail.smtp.quitwait", "false");


Does anyone have an idea what I have to add here in order to avoid this error and get my email through? Can anyone also elaborate on this error, I have not found a good explanation on the internet about it yet.

This is the original question on StackOverflow

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi8258870

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

Based on the error message it would appear as though your sending the email through a Google email server. Google requires SSL/TLS and authentication on all SMTP connections. Your code indicates that you are authenticating but that you aren't specifying the SMTP username and password.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme