Hello,
I think I'm facing the same issue than Pawel.
With authentication disabled, I can see in oxtrust log that it tries to connect to localhost instead of the host provided.
Here a log excerpt:
```
2020-06-29 20:10:41,046 ERROR [qtp1818402158-15] [org.gluu.service.MailService] (MailService.java:141) - Failed to send message
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25
```
However, there is an additional issue. When I enable the authentication, I get another error:
```
2020-06-29 20:11:23,624 ERROR [qtp1818402158-2460] [org.gluu.service.MailService] (MailService.java:141) - Failed to send message
javax.mail.SendFailedException: Invalid Addresses
```
I get this error in 2 cases:
- Using an IP address instead of a host name
- Using a not-qualified hostname (i.e. "postifx"), reachable from the local network
I don't have this error when setting a valid FQDN.
I am using docker to dynamically resolve the names, so I don't have a valid FQDN as reachable SMTP server.
I am using oxtrust docker image version 4.1.1_04.
I can provide full log if needed.