summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2009-04-24in session_pickup, do not handle S_RCPT state, it must never beJacek Masiulaniec
called in this state; ok gilles@
2009-04-24Allow UDP and/or TCP redirections instead of just TCP.Reyk Floeter
Thanks to Marek Grzybowski for feedback and testing. ok jmc@ (manpage bits)
2009-04-24don't truncate http headers when no separator is given between key andPierre-Yves Ritschard
value. ok & ``makes sense'' reyk@
2009-04-24Make aliases case-insensitive, issue reported by Daniel Ouelett; ok gilles@Jacek Masiulaniec
2009-04-24Enclose common imsg handling code in a function, which additionallyJacek Masiulaniec
does some sanity checking. Fix a bug that could lead to fatal under rare circumstances, exposed by this newly added check; ok gilles@
2009-04-24use same timeout at each session state, and make use ofJacek Masiulaniec
bufferevent_settimeout instead of rolling our own; ok gilles@
2009-04-24kill unnecessary struct message_recipient; ok gilles@Jacek Masiulaniec
2009-04-23Rework the way we handle announced networks. Instead of two freak rde_peersClaudio Jeker
use one that is less freaky. Merge bgpctl and config networks into one tree. First step of a larger change in the RDE and this goes now in to allow to move forward.
2009-04-23allow bgpctl and bgpd.conf to contain 32-bit ASN written in ASPLAINStuart Henderson
format (RFC5396). ok claudio@ henning@
2009-04-23sort "show stats" outputJacek Masiulaniec
2009-04-22fix creating packages with long names in plist; from espie@Christian Weisgerber
2009-04-22ignore replies with timestamps after 2030 to prevent time_t / tv_sec wrapsHenning Brauer
input & ok theo
2009-04-21small corrections to log_warns and fatalsJacek Masiulaniec
2009-04-21Make /usr/sbin/sendmail not fail due to smtpd being down.Jacek Masiulaniec
The approach is to save cmdline + stdin in a file under a newly added directory /var/spool/smtpd/offline (uid 0 gid 0 mode 1777). Next time daemon starts, it uses information in that directory to replay sendmail on user's behalf. ok gilles@
2009-04-21instead of calling getpid() all over the place do it once, claudio okHenning Brauer
2009-04-21correct some fatal(x) calls and error stringsEric Faurot
ok gilles@ jacekm@
2009-04-21ignore pfkey replies not for us and discard themHenning Brauer
From: Matthew Dempsky <matthew@dempsky.org> markus and hshoexer and claudio agree
2009-04-20Allow MAIL FROM only in the S_HELO state, which results in behaviourJacek Masiulaniec
dictated by rfc in "4.1.4 Order of commands". pointed out and initial diff by pea@, ok gilles@
2009-04-20fix previous, evtimer_set should be called only once, in session_init.Jacek Masiulaniec
2009-04-20Rewrite smtp session timeouts; use evtimer_* from event(3) insteadJacek Masiulaniec
of regularly walking session tree in search of idle clients. Gives the smtp process a chance to become idle. As a bonus, add smtp.sessions.timeout counter to "smtpctl show stats". ok gilles@
2009-04-20restore tagged user packages to functionality (for now)Marc Espie
2009-04-19Correct function name in log_warnx().Claudio Jeker
2009-04-19remove class FatPackageLocation. Instead make PackageLocation a hierarchyMarc Espie
so that I can handle installed packages without playing ping-pong with the PackageRepository hierarchy (mostly)
2009-04-19synch with my new style search/location changesMarc Espie
It's likely there will be some fallout, but it's getting a bit too large to keep around. This does kill a few very old oddities as well.
2009-04-19Wrap the EV_READ+EVLOCKED dance in one well documented function.Jacek Masiulaniec
Additionally, check that EVLOCKED is not already set, which would indicate an attempt to send IMSG w/o waiting for reply for some other IMSG sent earlier. ok gilles@
2009-04-19error checking for readdir(2); ok gilles@Jacek Masiulaniec
2009-04-19update protocols for s_client;s -starttls; from bradJason McIntyre
2009-04-18correct function name in fatalJacek Masiulaniec
2009-04-18remove dead code; made possible by previous commit.Jacek Masiulaniec
2009-04-18don't copy DigitalSig to partial packages, it makes no senseMarc Espie
2009-04-17correcto in comment; from Amarendra GodboleJason McIntyre
2009-04-17handle case when no input is provided, fixes confusing error:Jacek Masiulaniec
$ echo -n | sendmail root sendmail: write: connection closed $
2009-04-17close filedescriptors with closefrom(STDERR_FILENO + 1) before executingReyk Floeter
the script to prevent access to internal processes. From jacekm@
2009-04-17keep the parent relations of hosts after reloading the configuration.Reyk Floeter
From Camiel Dobbelaar, closes PR 6066
2009-04-17add "Connection: close" to HTTP check headers to deconfuse HTTP/1.1Reyk Floeter
servers claiming keepalive sessions. From Camiel Dobbelaar
2009-04-16fix a few more typos found by spell(1); rectify a double "with" pointed outIgor Sobrado
by jmc@ while looking at this diff. ok jmc@, reyk@ (for the hostapd part)
2009-04-16Notify the rde when a neighbor goes down.Michele Marchetto
When this happens we have to rebuild the list of downstream interfaces. ok claudio@
2009-04-16Update kernel forwarding informations when a neighbor reports we areMichele Marchetto
its nexthop to a particular multicast source. ok claudio@
2009-04-16Total rewrite of the sendmail interface. Adds support for -t, -v,Jacek Masiulaniec
and -F cmdline args. Also, date and Message-Id headers are added when missing. The main trouble with the current enqueue code is that it requires dealing with problems in the control process that are already solved in the smtp process, ie. duplicating a lot of code which interacts with untrusted clients. This diff solves this by making sendmail obtain a SMTP socket from smtp via smtpd.sock, and using that socket to deliver the message. For smtpd it looks as if connection was made from the network, only difference being the F_MESSAGE_ENQUEUED message flag, handy when differentation between local and remote deliveries is wanted. Most of the features come from the femail program, created by henning@. Additional testing by Nigel J. Taylor. ok gilles@, henning@ happy with smtpd using femail code
2009-04-15don't call setproctitle for parent, at least one process shouldJacek Masiulaniec
display cmdline arguments the daemon was started with; ok gilles@
2009-04-15s/ssmtp/smtps/; ok gilles@Jacek Masiulaniec
2009-04-15fix a bug where after all MX-es were found to be non-contactable,Jacek Masiulaniec
smtpd would treat the delivery as successful; ok gilles@
2009-04-14Fixed a few the-the misspellings in comments. Skipped a bunch in ↵Janne Johansson
binutils,gcc and so on. ok jmc@
2009-04-14Route costs can be safely stored in one byte.Michele Marchetto
While there re order structs fields a little bit. ok claudio@
2009-04-14initial implementation of package signatures, based on x509 certificates andMarc Espie
smime detached signatures.
2009-04-13explicitely say that package signatures contain run time dependenciesIngo Schwarze
only and no pure build dependencies; ok jmc@
2009-04-12restrict YP UID and GID rangesIngo Schwarze
from NetBSD and Debian via ajacoutot@ tweaks and documentation updates by myself with help from jmc@ OK ajacoutot@ jmc@ "move ahead" deraadt@
2009-04-12Code assumed the certificate name to always match the interface name, evenGilles Chehade
when a certificate name was explicitely provided. This would cause imsg to fatal() because with some configurations, it would look for the wrong name in the ssl tree and would fail to find the proper cert. issue spotted by Gregory Edigarov <gregory.edigarov@gmail.com>, I found the fix just a few minutes ago when I succeeded to reproduce the issue...
2009-04-12When runner_check_loop() detects a mail loop, remove the envelope. This isGilles Chehade
only half of the problem solved, we need to generate a mailer daemon too. This fixes a bug in my smtpd where it would try to schedule a message, detect that it is a loop and not schedule it, then trying again at next queue walk ...
2009-04-12when an error occurs while delivering a message with an empty envelope as aGilles Chehade
sender, do not try to generate a mailer daemon message for it. fixes a crash experienced by sthen@ that I could reproduce