summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2009-03-23Fixed a leaking of a fd each time a file is delivered to a mbox, whichTobias Stoeckmann
was introduced in revision 1.7. ok and log message by gilles
2009-03-22fix a bug in the resolution of forward files which would cause usernamesGilles Chehade
not to be taken into account if they had no ~/.forward file AND were the result of an alias expansion that expanded to more than one username. while at it, I spotted another bug where I would check T_MDA_MESSAGE on the flags field instead of the type field. the bug could cause two MDA message to end up in the same batch which is no longer valid.
2009-03-22make transparent-as yes|no settable peer neighbor with the global settingHenning Brauer
acting as default. per-neighbor requested by arnold nipper @ decix, ok claudio
2009-03-22trivial message repair, ok jacek@Ian Darwin
2009-03-20- grammar tweakJasper Lievisse Adriaanse
ok jcm@
2009-03-20initialize variable before using it as a counter in a loopGilles Chehade
spotted and fix by Matthew Haub <matthew.haub@alumni.adelaide.edu.au>
2009-03-19since maps may contain secrets, carry ownership and perms from source fileJacek Masiulaniec
to db file; ok gilles@
2009-03-19make action_type == 0 mean A_INVALID, not A_RELAY; ok gilles@Jacek Masiulaniec
2009-03-19First big chunk of mrt rewrite. Simplifies code hopefully and fixes tableClaudio Jeker
dumps that were wrong because of the 4byte AS support. Dumps I took seemed to work so far. "Put it in" henning@
2009-03-19Implement a attr_writebuf() function that works on a struct buf instead ofClaudio Jeker
a pre allocated piece of memory. Will be used by newer mrt code. OK henning@
2009-03-19when listen was declared without a port parameter, it would get it wrongGilles Chehade
because of a missing htons()
2009-03-19in the event of a timeout, mxhost is passed to TAILQ_REMOVE before it isGilles Chehade
initialized. spotted and diff by Matthew Haub <matthew.haub@alumni.adelaide.edu.au>
2009-03-18remove debug X-Cipher and turn it into a useful log_info()Gilles Chehade
2009-03-18Correctly check the peer group for mrt dumps. Without this all non-groupedClaudio Jeker
peers ended up in most mrt dumps. Also switch the if-statements to a hopefully easier to read version. Another mrt fix from my flight home. OK henning@
2009-03-18Correctly check for MRT_TABLE_DUMP_MP and don't send the config to the SE.Claudio Jeker
Make mrt table-mp dumps actually work. Found on the plane from NRT to ZRH. OK henning@
2009-03-18Introduce local_as in the peer config. This allows per peer local AS andClaudio Jeker
simplifies some code because it is possible to get the local AS from the peer struct. Local AS needs more patching to work correctly though. OK henning@
2009-03-18short_as is always initialised to the 16bit AS that is used. So no needClaudio Jeker
use conf->as as source for > 16bit AS numbers. OK henning.
2009-03-18previous commit removed "else" conditionGilles Chehade
2009-03-18we can no longer create batches of MDA deliveries, so make sure runnerGilles Chehade
does not do a batch lookup when dealing with a MDA message
2009-03-18unbreak make release, spotted by todd and kurtJacek Masiulaniec
2009-03-18in mta, when remote host advertises AUTH, do not attempt to authenticateGilles Chehade
unless we do have F_AUTH set on the mxhost (which means we explicitely mentionned authentication in config) and we did find credentials in the secrets map. issue and initial diff from Rivo Nurges <rix@estpak.ee>
2009-03-17update a bit, but more work is needed on this man page, working on it andGilles Chehade
will commit an up to date version tomorrow
2009-03-17enable smtpd in the buildGilles Chehade
"please enable it" deraadt@
2009-03-17move smtpd.conf to etc/mail/ directory. it is not installed yet by theGilles Chehade
build
2009-03-16change smtpd.conf to what it will be by default:Gilles Chehade
- only listen on lo0 - support aliases - accept mail for "localhost" and the system hostname - accept relaying mail for all domains
2009-03-16in accept rules, support "for local" as a destination which is an alias toGilles Chehade
"localhost" and system hostname. this allows us to ship with a config file that goes: accept for local deliver to mbox , and which will allow us to have mail working sanely out of the box.
2009-03-16update smtpctl.8 with new smtpctl commandsGilles Chehade
2009-03-16makemap symlink should be in /usr/sbin; ok gilles@Jacek Masiulaniec
2009-03-16smtpctl goes to usr.sbin; ok gilles@Jacek Masiulaniec
2009-03-16makemap goes to libexec/smtpd; ok gilles@Jacek Masiulaniec
2009-03-16- mention /etc/mail/virtual in FILES sectionGilles Chehade
2009-03-16mention /etc/mail/secrets in the FILES sectionGilles Chehade
2009-03-16this file has been deprecated for a while and will not be updated, soGilles Chehade
lets just remove it as some people may believe it actually describes the architecture ...
2009-03-16run makemap through mailwrapper(8), to avoid conflict betweenJacek Masiulaniec
sendmail and smtpd. ok gilles@, "Go go go!" todd@
2009-03-15since we are going to share code in smtp sessions and mta sessions, we needGilles Chehade
to also share the statistics structure, still being worked on
2009-03-15the mda process no longer uses struct batch as its central structure toGilles Chehade
deal with deliveries, it now uses struct session just like mta and smtp processes. we now keep the mbox and message descriptors in the session, saving space in struct message which is now as small as we can make it. While at it, plugged a memory leak and did some cosmethic changes This was the last planned change to our struct message which means that later changes will no longer require a queue flush before rebuild.
2009-03-15save 4 bytes per message by moving the datafp field of struct message toGilles Chehade
struct session where it really belongs.
2009-03-14Initial support for pruning. When every single interface is removed from theMichele Marchetto
downstream list for a particular source send a prune to the upstream router. input and ok claudio@
2009-03-13No need for a line break, makes code a bit more compact.Claudio Jeker
2009-03-13Next step in mrt cleanup. Switch buf_write to a smarter version of itself.Claudio Jeker
Doing more the stuff msgbuf_write does and switch the only user -- mrt -- over to use this simpler way of writing out stuff.
2009-03-13Move mrt code over to use the msgbuf way of queuing buffers instead of rollingClaudio Jeker
an own version. More cleanup to come.
2009-03-13Sync buffer API with the one from ospfd. The dynamic buffers will make otherClaudio Jeker
code much easier to write. OK henning@ some time ago.
2009-03-13More paranoia when parsing empty updates. Make sure they are really empty andClaudio Jeker
don't come with some additional stuff attached to them. OK henning@
2009-03-13Correctly encode MP unreach NLRI so that IPv6 prefixes get removed correctly.Claudio Jeker
One bug was hiding another bug and only foundry based routers where unhappy about these bad updates. Found by Arnoud Vermeer and Elisa Jasinska at ams-ix. OK henning@
2009-03-13When commiting the buf_left() change adding len to the check was dropped andClaudio Jeker
so a warning later on could be hit in some cases. Found by dlg@ OK dlg@
2009-03-12Add new function time_to_text to correctly display the date.pea
Use it to display the date in received from header and when we store headers. ok jacekm@
2009-03-12lsa_self() did too many things at once, and had too much logicStefan Sperling
buried inside of it that its caller relied on. So split it up as follows: lsa_self() Check whether an LSA is self-originated. lsa_flush() Flush an LSA from the LSDB. lsa_reflood() Prepare an LSA for reflooding (actual reflooding currently requires sending an imsg which must be done by the caller). ok claudio@
2009-03-11getmxbyname() returning a value != 0 does not necessarily means it failedpea
ok gilles@
2009-03-11fix log_info(), while other processes know about message uid, the smtpGilles Chehade
process only knows about message id bug spotted by pea@
2009-03-10implement basic logging, needs more work; ok gilles@Jacek Masiulaniec