upas/smtp: allow remote port to be set to something other than smtp (e.g. ssmtp)
This commit is contained in:
parent
e181b7e405
commit
259a31e59b
1 changed files with 2 additions and 1 deletions
|
@ -48,6 +48,8 @@ dialstringparse(char *str, DS *ds)
|
||||||
ds->service = strchr(ds->host, '!');
|
ds->service = strchr(ds->host, '!');
|
||||||
if(ds->service)
|
if(ds->service)
|
||||||
*ds->service++ = 0;
|
*ds->service++ = 0;
|
||||||
|
else
|
||||||
|
ds->service = "smtp";
|
||||||
if(*ds->host == '$')
|
if(*ds->host == '$')
|
||||||
expand(ds);
|
expand(ds);
|
||||||
}
|
}
|
||||||
|
@ -293,7 +295,6 @@ mxdial0(char *addr, char *ddomain, char *gdomain, Mxtab *mx)
|
||||||
|
|
||||||
dprint("mxdial(%s, %s, %s, mx)\n", addr, ddomain, gdomain);
|
dprint("mxdial(%s, %s, %s, mx)\n", addr, ddomain, gdomain);
|
||||||
memset(mx, 0, sizeof *mx);
|
memset(mx, 0, sizeof *mx);
|
||||||
addr = netmkaddr(addr, 0, "smtp");
|
|
||||||
d = mx->ds;
|
d = mx->ds;
|
||||||
dialstringparse(addr, d + 0);
|
dialstringparse(addr, d + 0);
|
||||||
nd = 1;
|
nd = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue