# HG changeset patch # User markus schnalke # Date 1291752547 10800 # Node ID 4869321aa7bf5ac79a03d237503bafc3f846f7bc # Parent 853b85616c98cd9f0473f57a5ec0c0c7a20fe8aa recognize the program name `newaliases' too We still simply exit in this mode, but now we can create a link called `newaliases' to masqmail instead of needing a script to call `masqmail -bi'. `ln /bin/true /usr/bin/newaliases' would be a fancy way too, but letting the MTA handle it is probably the safer approach. diff -r 853b85616c98 -r 4869321aa7bf src/masqmail.c --- a/src/masqmail.c Tue Dec 07 14:19:04 2010 -0300 +++ b/src/masqmail.c Tue Dec 07 17:09:07 2010 -0300 @@ -460,16 +460,19 @@ } else if (strcmp(progname, "mailrm") == 0) { mta_mode = MODE_MCMD; M_cmd = "rm"; - } else if (strcmp(progname, "runq") == 0) { - mta_mode = MODE_RUNQUEUE; - do_runq = TRUE; + } else if (strcmp(progname, "newaliases") == 0) { + mta_mode = MODE_BI; } else if (strcmp(progname, "rmail") == 0) { /* the `rmail' alias should probably be removed now that we have the rmail script. But let's keep it for some while for compatibility. 2010-06-19 */ mta_mode = MODE_ACCEPT; opt_i = TRUE; - } else if (strcmp(progname, "smtpd") == 0 || strcmp(progname, "in.smtpd") == 0) { + } else if (strcmp(progname, "runq") == 0) { + mta_mode = MODE_RUNQUEUE; + do_runq = TRUE; + } else if (strcmp(progname, "smtpd") == 0 + || strcmp(progname, "in.smtpd") == 0) { mta_mode = MODE_SMTP; }