aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/upas/smtp/mxdial.c1
-rw-r--r--src/cmd/upas/smtp/smtp.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/upas/smtp/mxdial.c b/src/cmd/upas/smtp/mxdial.c
index 60dfac5f..f3a2a209 100644
--- a/src/cmd/upas/smtp/mxdial.c
+++ b/src/cmd/upas/smtp/mxdial.c
@@ -124,6 +124,7 @@ mxlookup(DS *ds, char *domain)
int i, n, nmx;
Ndbtuple *t, *tmx, *tpref, *tip;
+ strcpy(domain, ds->host);
ds->netdir = "/net";
nmx = 0;
if((t = dnsquery(nil, ds->host, "mx")) != nil){
diff --git a/src/cmd/upas/smtp/smtp.c b/src/cmd/upas/smtp/smtp.c
index fd867cd6..893f5789 100644
--- a/src/cmd/upas/smtp/smtp.c
+++ b/src/cmd/upas/smtp/smtp.c
@@ -395,10 +395,10 @@ doauth(char *methods)
if(user != nil)
p = auth_getuserpasswd(nil,
- "proto=pass service=smtp server=%q user=%q", ds.host, user);
+ "proto=pass service=smtp role=client server=%q user=%q", ds.host, user);
else
p = auth_getuserpasswd(nil,
- "proto=pass service=smtp server=%q", ds.host);
+ "proto=pass service=smtp role=client server=%q", ds.host);
if (p == nil)
return Giveup;