X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=sbr%2Fmts.c;h=46f5990e655cc5ebcc387cde72c78b6480139838;hb=128545e06224233b7e91fc4c83f8830252fe16c9;hp=cd2a3d8784589062cf80d2a9cea0115628beca76;hpb=c05210483d82bf5f3786725ff80e12444088a701;p=mmh diff --git a/sbr/mts.c b/sbr/mts.c index cd2a3d8..46f5990 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -74,18 +74,15 @@ static char* masquerade = ""; * MTS specific variables */ #if defined(SMTPMTS) -static char *sm_method = "smtp"; -int sm_mts = MTS_SMTP; -char *hostable = nmhetcdir(/hosts); +static char *sm_method = "sendmail"; +int sm_mts = MTS_SENDMAIL; char *sendmail = SENDMAILPATH; #endif /* - * SMTP/POP stuff + * SMTP stuff */ char *clientname = NULL; -char *servers = "localhost \01localnet"; -char *pophost = ""; /* * Global MailDelivery file @@ -124,13 +121,10 @@ static struct bind binds[] = { #if defined(SMTPMTS) { "mts", &sm_method }, - { "hostable", &hostable }, { "sendmail", &sendmail }, #endif { "clientname", &clientname }, - { "servers", &servers }, - { "pophost", &pophost }, { "maildelivery", &maildelivery }, { "everyone", &everyone }, @@ -173,17 +167,6 @@ mts_init (char *name) if (strstr(masquerade, "username_extension") != NULL) username_extension_masquerading = TRUE; - -#ifdef SMTPMTS - if (strcmp(sm_method, "smtp") == 0) - sm_mts = MTS_SMTP; - else if (strcmp(sm_method, "sendmail") == 0) - sm_mts = MTS_SENDMAIL; - else { - advise(NULL, "unsupported \"mts\" value in mts.conf: %s", sm_method); - sm_mts = MTS_SMTP; - } -#endif }