summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* ignore `mailman', delete `wrapper'bwarsaw2001-12-241-6/+6
|
* MAIL_PROGS: To avoid name clashes with other MLM's, rename the wrapperbwarsaw2001-12-241-2/+2
| | | | program to `mailman'.
* In order to make the list alias -> script mapping more consistent,bwarsaw2001-11-301-4/+4
| | | | | | | | | | | | | | | | | | | we've renamed mailcmd to request and mailowner to owner (through some SF-assisted CVS repo magic). We've also moved scripts/auto to contrib/auto since it's an obsolete way of doing the auto-aliasing in Postfix. We need to update mail-wrapper.c for the new list of acceptable script names. Note that there are still two abberations: - messages posted to just `listname' go to the post script - messages posted to listname-admin go to the bounces script The latter, listname-admin may eventually go away. Note that this requires you to regenerate your aliases!
* VALID_COMMANDS: Add bouncesbwarsaw2001-11-201-0/+1
|
* Removed commented out macros ALIAS_UID, ALIAS_GID, ALIAS_FLAGS.bwarsaw2001-07-181-5/+0
|
* CGI_PROGS: The handle_opts cgi is obsolete.bwarsaw2001-05-311-1/+1
|
* In the definition of LOG_IDENT and SCRIPTDIR, don't try to glue stringtwouters2001-05-292-2/+2
| | | | | | | | literals together with ##. That's not what ## is for; ## is to glue together stringified versions of tokens. The fact that it worked was a bug in GCC. Thanx to Jeff Dairiki for reminding me to take care of this. This fixes SF bug #227694.
* VALID_COMMANDS: Deprecate the `auto' script since there is now abwarsaw2001-05-111-2/+3
| | | | | better way to integrate Mailman and Postfix. Add the `join' and `leave' mail programs.
* Ignore the two new binaries.bwarsaw2001-05-091-0/+2
|
* Add the create and rmlist CGI programs.bwarsaw2001-05-091-1/+1
|
* Ignore the new generated confirm binarybwarsaw2001-04-021-0/+1
|
* Add `confirm' to list of CGI_PROGS to build.bwarsaw2001-03-261-2/+2
|
* VALID_COMMANDS: `auto' is an acceptable command -- this is a scriptbwarsaw2000-12-201-0/+1
| | | | that can be used with the Postfix MTA.
* intermediatebwarsaw2000-12-071-0/+31
|
* intermediatebwarsaw2000-12-071-0/+87
|
* Noam Zeilberger correctly notices that the prototype for vsnprintf()bwarsaw2000-11-092-5/+2
| | | | is incorrect. This closes SF bug #121185
* A couple of notes for laterbwarsaw2000-09-292-0/+10
|
* run_script(): Generalize the filtering out of environment variables.bwarsaw2000-09-271-6/+27
| | | | | | We now discard $PYTHONHOME and $PATH as well as the previously discarded $PYTHONPATH (which we later hand craft). Just a bit of extra paranoia.
* Include @CFLAGS@ on CFLAGS def line so this worksbwarsaw2000-08-061-1/+1
| | | | | | CFLAGS=-Wall ./configure --stuff closes SF bug #110906
* main(): Don't include newline in Usage: error message; this is addedbwarsaw2000-08-021-1/+1
| | | | by fatal() automatically.
* fatal(): Close SF bug #110401 and potential local security hole bybwarsaw2000-08-021-2/+2
| | | | | | formatting user supplied input. Also added newlines to both stderr and syslog output for more consistent formatting. Reported by Stan Bubrouski.
* fatal(): When not running as a CGI (e.g. when running at the mailbwarsaw2000-05-221-0/+5
| | | | | | wrapper), simply print the log_entry information to stderr. Most MTAs will include this in their bounce message, which will be helpful for debugging.
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-216-6/+6
|
* Get the gid_t type from configure.bwarsaw1999-12-123-3/+6
|
* check_caller(): Get the gid_t type from configure. Also use %ld tobwarsaw1999-12-121-4/+4
| | | | print the gid values.
* Invoke Python with -S option, which avoids the "import site". Thisbwarsaw1999-10-291-10/+13
| | | | | speeds up invocation of the executable considerably by eliminating tons of stats and other computation.
* fatal() no longer has "const char*" as third arg prototype. Didn'tbwarsaw1999-07-121-1/+7
| | | | | | | work well with our own vsnprintf(). When the system doesn't have vsnprintf() -- as determined by autoconf -- provide a definition for the one our own vsnprintf.c
* fatal() no longer has "const char*" as third arg prototype. Didn'tbwarsaw1999-07-121-1/+1
| | | | work well with our own vsnprintf().
* Add magic to include our own vsnprintf if the OS is missing one.bwarsaw1999-07-121-5/+10
|
* An implementation of vsnprintf() ripped from GNU screen 3.7.6's misc.cbwarsaw1999-07-121-0/+126
| | | | | | | | | file. Known operating systems missing vsnprintf(): Solaris 2.5 This code is GPL'd but not copyright the FSF. RMS says its okay to use, but should be kept in a separate file permanently. I can only test that it compiles correctly, but cannot test its proper operation on systems that are missing vsnprintf().
* fatal(): Use vsnprintf() to avoid potential buffer overflowbwarsaw1999-07-021-2/+4
| | | | vulnerability (PR#72)
* Undo, previous checkin was a mistake (I'm still only beginning tohmeland1999-06-131-11/+8
| | | | experiment with the addaliases stuff).
* Create(): Do ValidateEmail(admin) before trying to actually createhmeland1999-06-131-8/+11
| | | | | anything, to disallow bin/newlist creating lists with bogus admin addresses.
* More changes to make syslog() work on OSes where it isn't part of thehmeland1999-06-111-1/+2
| | | | | | | standard libraries. This fix has been verified to work on SCO OpenServer 5, which was the OS for which this change was originally needed. The previous attempt at a fix, stolen from GNU sh-utils, proved insufficient.
* Stole GNU sh-utils-1.16 configure.in code to check for syslog()hmeland1999-05-232-1/+5
| | | | | | | | outside of the default libs. Ran autoconf (from autoconf-2.13) to update configure. src/common.[ch] now has #ifdefs around syslog-using code -- thus, Mailman will compile, but _without any syslog calls_ if configure couldn't find syslog().
* run_script(): When filtering out PYTHONPATH from environment, wrongbwarsaw1999-04-091-1/+1
| | | | | indices were used. Found by Alexander (Leo) Bergolth <leo@strike.wu-wien.ac.at>
* Take CGIEXT from configure scriptbwarsaw1999-02-281-1/+1
|
* check_parent(): This wasn't being used anymore, so it has beenbwarsaw1999-02-271-28/+5
| | | | | | removed. We don't limit MTAs to sendmail anyway. main(): Use the proper exitcode when calling fatal().
* main(): Remove setuid() call. We don't use UIDs in anybwarsaw1999-02-271-6/+1
| | | | | | permission/security sense so this is unnecessary. Also, if run_script() returns, use its return value as the exitcode for fatal().
* fatal(): now takes a new second argument which is the integer code tobwarsaw1999-02-271-9/+10
| | | | | | | | | | use in the exit() call. Useful for debugging. check_caller(): Use GID_MISMATCH as fatal exit code. run_script(): If setregid() returns !0, use SETREGID_FAILURE as fatal exit code. Also, it is always an error for execve() to return. Return EXECVE_FAILURE from this function.
* fatal(): now takes a new second argument which is the integer code tobwarsaw1999-02-271-3/+13
| | | | | | | | use in the exit() call. Useful for debugging. Added #defines for use with fatal(). Function declarations should be extern'd.
* Hi, everybody :-)hmeland1999-02-252-3/+3
| | | | | | | The extern declaration of logident belongs in common.h, not common.c. [ Besides, I needed a pretty safe thing to patch for testing that I can actually do CVS checkins properly. Hopefully this turns out right... ]
* (logident): extern needed to reference this global from one of thebwarsaw1999-02-251-0/+3
| | | | wrappers
* main(): Removed the (I think) useless calls to setuid().bwarsaw1999-02-191-4/+0
|
* check_caller(): Call getgid() once and cache its value.bwarsaw1999-02-191-2/+15
| | | | | | | | | | | run_script(): Use setregid() copy the effective gid into the real gid. This works around a problem on some Linux versions where the effective gid was not being inherited across popen() calls. Should not affect other systems. Note: this is wrapped in a HAVE_SETREGID determined by configure. If the same affected machines don't have this call (unlikely?) then they can still be broken.
* VERSION is no longer set in configure because it's too hard tobwarsaw1999-01-151-2/+0
| | | | | | | | | | | | propagate version string changes to the public (you have to autoreconf, then reconfigure and reinstall). Now, VERSION is set directory in Defaults.py.in and the Release.py script updates that file directly. Now we just need to run ./config.status and do a re-install. I hope this will make things easier. I'm also bumping the version to 1.0b8, so I can do a release tomorrow.
* Somewhat kludgy changes to make debugging mismatching CGI gid's easierbwarsaw1999-01-074-1/+36
| | | | | | | | | | | | | | | | | | | | to figure out. common.c now sports a global variable running_as_cgi which, when true causes fatal() to output some mildly more helpful HTML in addition to the syslog entry. Since this usually only occurs when the site admin is installing Mailman, this helpful HTML should give a better clue as to what's going wrong, rather than an unhelpful Web server message and syslog entry alone. Naturally, main() in cgi-wrapper.c sets running_as_cgi to 1; it is initialized to 0 so as to not upset mail-wrapper.c. Finally, because I think this is a kludge, I've wrapped this all in an #ifdef HELPFUL, and set Makefile.in to turn this on by default. My thought is that for some future version, if the site admin specifies --with-cgi-gid to configure, that proves they're somewhat clueful, and we'd default the HELPFUL macro to "off".
* Get rid of $< variables in command lines. They don't work for allbwarsaw1998-12-181-4/+4
| | | | versions of make, and aren't really necessary anyway.
* Make common.o depend on the generated Makefile in this directory.bwarsaw1998-12-161-1/+1
| | | | | | That way, if the admin re-runs configure (or config.status), possibly changing the CGI or Mail GID's, the wrappers will get automatically recompiled.
* make finishbwarsaw1998-10-201-4/+20
|