summaryrefslogtreecommitdiffstats
path: root/libexec/mail.local (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for world-writable mail spools.millert2020-05-272-89/+17
| | | | | They won't work any more due to pledge restrictions so just print an error and exit if the spool is world-writable. OK beck@
* Use sysexits.h exit values to distinguish between tempfail and permfail.millert2020-02-093-46/+54
| | | | | | Unix MTAs use the exit value of the MDA (here mail.local) to determine whether or not a failure to deliver mail should be considered to be a temporary or permanent failure. OK semarie@ beck@
* Remove backward compatibility for obsolete -H flag.millert2020-02-071-14/+5
| | | | The -H flag was deprecated in 1998. OK jung@
* Allow mail.local to be run as non-root.millert2020-02-023-12/+71
| | | | | | | If mail.local is invoked by a non-root user, open a pipe to lockspool(1) for file locking. It is only possible to delivery to a pre-existing mail spool when running mail.local as non-root. OK gilles@ deraadt@
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-6/+6
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Remove NULL-checks before free(). ok tb@mmcc2015-12-121-3/+2
|
* Add support for IPv6 by using getaddrinfo(). Our inetd.conf shipsmillert2015-07-061-19/+30
| | | | with an IPv6 comsat example but it would never get used. OK deraadt@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-162-7/+9
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* less sendmail;jmc2014-09-161-3/+2
|
* make this page slightly less sendmail centric; ok gillesjmc2014-03-251-13/+14
|
* Close file descriptor before next try getting a good one.tobias2014-01-171-1/+2
| | | | ok millert@
* Back out rev 1.2 and use mkstemp(), not mktemp(). OK deraadt@millert2011-01-101-2/+4
|
* add EXIT STATUS for /usr/libexec;jmc2010-09-031-4/+4
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-272-20/+2
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* replace standardized text concerning the exit values of applicationssobrado2009-01-191-5/+3
| | | | with the right mdoc macros.
* sort flags on both the synopsis and usage.sobrado2008-05-262-11/+10
| | | | ok jmc@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* delete case for ?; cdp_xe@gmx.netderaadt2006-05-131-3/+2
|
* minor lint cleaning; ok millertderaadt2006-04-013-13/+15
|
* #include <sys/signal.h> not neededmillert2006-01-021-3/+2
|
* Fix case where input file lacks newline before EOF; Andrey Matveevmillert2005-05-291-3/+3
|
* spacingderaadt2004-08-081-3/+3
|
* Grammar nit.tom2004-05-201-2/+2
| | | | ok david@
* add missing includesdavid2003-07-101-2/+3
| | | | ok deraadt@ tedu@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-024-25/+9
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* KNFderaadt2002-07-032-22/+12
|
* minor KNFderaadt2002-06-021-3/+3
|
* 'S' required in OpenBSD (LOCAL_MAILER_FLAGS). From lazy form@.mpech2002-03-271-2/+2
| | | | millert@ ok
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-19/+4
|
* Call S_ISLNK with correct variable; Peter Philippmillert2002-02-171-3/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-9/+9
|
* err() -> merr(), and reorder some bugs noted by giannici@neomedia.it; millert helpedderaadt2001-08-183-35/+35
|
* correct type on last arg to execl(); nordin@cse.ogi.eduderaadt2001-07-091-3/+3
|
* $OpenBSD$niklas2001-01-282-2/+3
|
* Change all option list specifications to ".Bl -tag -width Ds". Most manaaron2000-11-091-2/+2
| | | | | pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
* libexec man page fleshing. again, bored on the plane home.aaron2000-10-301-42/+53
|
* /etc/sendmail.cf -> /etc/mail/sendmail.cfbrad2000-08-161-3/+3
| | | | | -- PR# 1364, From: sigh@kuzirabekon.econ.nagasaki-u.ac.jp
* Use fgetln(3) instead of fgets(3) when reading in the message. Thismillert2000-04-211-16/+26
| | | | | way the From line escaping gets done correctly even for really long lines.
* Xr repairderaadt2000-03-291-2/+1
|
* - remove all trailing whitespaceaaron1999-07-091-4/+4
| | | | | | | | | | * except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
* more macro conversionaaron1999-07-041-2/+2
|
* fix more comma splices that involve misuse of conjunctive adverbspjanzen1999-03-111-2/+2
|
* Correct documentation on how mail.local does its locking.csapuntz1999-01-111-12/+13
|
* As prommised, mail.local is no longer setuid.millert1998-08-171-3/+1
|
* go back to using mktemp, not mkstemp in baditem(); theomillert1998-08-151-5/+3
|
* Break out locking code into its own file so it can be shared with lockspool.millert1998-08-156-221/+263
| | | | Call lockspool when invoked with -H flag for backward compatibility.
* readlink(path, buf, sizeof buf-1). Never forget that -1.deraadt1998-05-181-2/+2
|
* Xr biff 1millert1998-02-241-1/+2
|
* 1) Mode X's for mkstempmillert1998-02-242-13/+58
| | | | | 2) Document problems with using quotas on /var/mail and tell how to make sendmail do the right thing.
* Grammar and clarifications.gene1998-02-061-10/+11
|