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