diff --git a/hsarback/src/de/hsadmin/core/qserv/SmtpHelper.java b/hsarback/src/de/hsadmin/core/qserv/SmtpHelper.java index 2f7db34..94b40b6 100644 --- a/hsarback/src/de/hsadmin/core/qserv/SmtpHelper.java +++ b/hsarback/src/de/hsadmin/core/qserv/SmtpHelper.java @@ -25,7 +25,7 @@ public class SmtpHelper { throws HSAdminException { try { SMTPClient client = new SMTPClient(); - String canonicalHostName = InetAddress.getLocalHost().getHostName(); + String canonicalHostName = InetAddress.getLocalHost().getCanonicalHostName(); String smtpHost = Config.getInstance().getProperty("smtp.host"); if (smtpHost == null || smtpHost.trim().isEmpty()) { smtpHost = "localhost";