aboutsummaryrefslogtreecommitdiff
path: root/mailutils/sendmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailutils/sendmail.c')
-rw-r--r--mailutils/sendmail.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c
index aa381c60f..c426e9d85 100644
--- a/mailutils/sendmail.c
+++ b/mailutils/sendmail.c
@@ -118,7 +118,7 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv)
118 char *opt_from; 118 char *opt_from;
119 char *s; 119 char *s;
120 llist_t *list = NULL; 120 llist_t *list = NULL;
121 char *domain = sane_address(safe_getdomainname()); 121 char *host = sane_address(safe_gethostname());
122 unsigned nheaders = 0; 122 unsigned nheaders = 0;
123 int code; 123 int code;
124 124
@@ -222,8 +222,9 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv)
222 } 222 }
223 223
224 // we should start with modern EHLO 224 // we should start with modern EHLO
225 if (250 != smtp_checkp("EHLO %s", domain, -1)) 225 if (250 != smtp_checkp("EHLO %s", host, -1))
226 smtp_checkp("HELO %s", domain, 250); 226 smtp_checkp("HELO %s", host, 250);
227 free(host);
227 228
228 // perform authentication 229 // perform authentication
229 if (opts & OPT_a) { 230 if (opts & OPT_a) {