Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit d5308ec3 authored by rswindell's avatar rswindell

Changed "mr" command-line option to specify SMTP server address:port.

Added "md" command-line optiont o specify DNS server address for MX-rec lookup.
parent bc8592eb
......@@ -123,7 +123,8 @@ static const char* usage = "usage: %s [[setting] [...]]\n"
"\n"
"\tms<port> set SMTP server port\n"
"\tmp<port> set POP3 server port\n"
"\tmr<port> set SMTP relay port (and enable SMTP relay)\n"
"\tmr<addr> set SMTP relay server (and enable SMTP relay)\n"
"\tmd<addr> set DNS server address for MX-record lookups\n"
"\tmo<value> set Mail server options value (advanced)\n"
"\tm- disable Mail server (entirely)\n"
"\tmp- disable POP3 server\n"
......@@ -892,9 +893,17 @@ int main(int argc, char** argv)
return(0);
}
break;
case 'R': /* Relay */
mail_startup.relay_port=atoi(arg);
case 'R': /* Relay */
mail_startup.options|=MAIL_OPT_RELAY_TX;
p=strchr(arg,':'); /* port specified */
if(p!=NULL) {
*p=0;
mail_startup.relay_port=atoi(p+1);
}
SAFECOPY(mail_startup.relay_server,arg);
break;
case 'D': /* DNS Server */
SAFECOPY(mail_startup.dns_server,arg);
break;
default:
printf(usage,argv[0]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment