2
2
* Exim - an Internet mail transport agent *
3
3
*************************************************/
5
/* Copyright (c) University of Cambridge 1995 - 2012 */
5
/* Copyright (c) University of Cambridge 1995 - 2014 */
6
6
/* See the file NOTICE for conditions of use and distribution. */
8
8
/* Functions concerned with running Exim as a daemon */
1128
1128
list = daemon_smtp_port;
1130
while ((s = string_nextinlist(&list,&sep,big_buffer,big_buffer_size)) != NULL)
1130
while ((s = string_nextinlist(&list,&sep,big_buffer,big_buffer_size)))
1132
1132
default_smtp_port = store_get((pct+1) * sizeof(int));
1133
1133
list = daemon_smtp_port;
1136
(s = string_nextinlist(&list,&sep,big_buffer,big_buffer_size)) != NULL;
1136
(s = string_nextinlist(&list,&sep,big_buffer,big_buffer_size));
1139
1139
if (isdigit(*s))
1148
1148
struct servent *smtp_service = getservbyname(CS s, "tcp");
1149
if (smtp_service == NULL)
1150
1150
log_write(0, LOG_PANIC_DIE|LOG_CONFIG, "TCP port \"%s\" not found", s);
1151
1151
default_smtp_port[pct] = ntohs(smtp_service->s_port);
1154
1154
default_smtp_port[pct] = 0;
1156
/* Check the list of TLS-on-connect ports and do name lookups if needed */
1158
list = tls_in.on_connect_ports;
1160
while ((s = string_nextinlist(&list, &sep, big_buffer, big_buffer_size)))
1163
list = tls_in.on_connect_ports;
1164
tls_in.on_connect_ports = NULL;
1166
while ((s = string_nextinlist(&list, &sep, big_buffer, big_buffer_size)))
1170
struct servent *smtp_service = getservbyname(CS s, "tcp");
1172
log_write(0, LOG_PANIC_DIE|LOG_CONFIG, "TCP port \"%s\" not found", s);
1173
s= string_sprintf("%d", (int)ntohs(smtp_service->s_port));
1175
tls_in.on_connect_ports = string_append_listele(tls_in.on_connect_ports,
1156
1181
/* Create the list of local interfaces, possibly with ports included. This
1157
1182
list may contain references to 0.0.0.0 and ::0 as wildcards. These special
1158
1183
values are converted below. */