fallback to 'localhost' rather than 'unknown' as some SMTP servers reject 'EHLO unkno...
authorPaul <paul@claws-mail.org>
Thu, 10 Oct 2013 12:26:12 +0000 (13:26 +0100)
committerPaul <paul@claws-mail.org>
Thu, 10 Oct 2013 12:26:12 +0000 (13:26 +0100)
src/common/utils.c

index 0512289..53a9ddb 100644 (file)
@@ -2048,7 +2048,7 @@ const gchar *get_domain_name(void)
 
                if (gethostname(hostname, sizeof(hostname)) != 0) {
                        perror("gethostname");
-                       domain_name = "unknown";
+                       domain_name = "localhost";
                } else {
                        hostname[sizeof(hostname) - 1] = '\0';
                        if ((hp = my_gethostbyname(hostname)) == NULL) {
@@ -2063,7 +2063,7 @@ const gchar *get_domain_name(void)
 
        return domain_name;
 #else
-       return "unknown";
+       return "localhost";
 #endif
 }