We have setup SMTP interaction in an 8.0 Application Server and have an open Mercury SMTP gateway configured to receive the emails.
However, every time that the App Server sends an email, it gets the following error:
Caused by: javax.mail.MessagingException: 554 Shunned connection - only the QUIT
command will be accepted.
Looking at the Mercury logs, it is saying that it receives
EHLO 192.168.1.102 (this is the IP address of the app server)
and it then reports that this EHLO syntax is incorrect.
Manually telneting into the SMTP server and entering EHLO 192.168.1.102 also returns the same error.
If we enter EHLO <App Server hostname> then it works. However, I can't find any way to tell the app server to send it's hostname rather than the IP address.
Does anyone know how to do this or have SMTP notifications running?
Turns out the mercury server had a default rule that rejected our emails, we ending up swapping it for another SMTP gateway.