summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2009-01-29bring initial support for SSL in the mta part of smtpd, allowing for:Gilles Chehade
accept for domain "openbsd.org" relay via ssmtp "mx1.example.org" to ensure that deliveries for whatever@openbsd.org goes through an SSL session to mx1.example.org
2009-01-29Common queue walking code for smtpd and smtpctl. Kills majority of showqueue.c,Jacek Masiulaniec
the remaining code was moved to queue_shared.c; ok gilles@
2009-01-29Hard-code the Link State ID of Intra-Area-Prefix LSAs referencing NetworkStefan Sperling
LSAs to zero. We were using the interface index, which is not quite right for this type of LSA. This is part of a greater scheme: Intra-Area-Prefix LSAs referencing Router LSAs (not yet implemented) will initially have their Link State ID hard-coded to one. Then, as soon as we implement fragmentation of Intra-Area-Prefix LSAs, Link State IDs for both types of Intra-Area-Prefix LSA will have to be generated dynamically in a non-overlapping fashion. discussed with claudio@
2009-01-29Improve debugging message in orig_intra_lsa_net().Stefan Sperling
Print not just the area, but also the interface to the link the LSA is generated for. ok claudio@
2009-01-29Make anonymous binds work properly.aschrijver
2009-01-29No need to use RB_FIND here, RB_INSERT does that job for us.Oleg Safiullin
ok aschrijver@
2009-01-29Round brackets are not required. Back out previous commit.Michele Marchetto
2009-01-29- remove a very annoying debug printf()Gilles Chehade
2009-01-29In tcpdump some printf() had an additional \n at the end. RemovingAlexander Bluhm
that new line restores the one-line -> one-packet semantics. ok hshoexer@, henning@, markus@
2009-01-29log warning when can't read drift file; allows detection ofKevin Steves
corrupt contents. ok henning@
2009-01-28fix missing prototype and format related warningsGilles Chehade
2009-01-28now that mta uses a struct session, it can also use session_respond() justGilles Chehade
as smtp_session.c does, so move all of the evbuffer_add_printf() calls out of the way and replace them with session_respond() call.
2009-01-28mta session state belongs to struct session, not struct batch, remove theGilles Chehade
state field from struct batch and propagate the change
2009-01-28everything we need for the event handling dance is in struct session, theGilles Chehade
write handler has been changed to set the bufferevent that's in there rather than the one in struct batch. since struct batch is no longer doing anything useful for events handling, we can remove many fields of it.
2009-01-28Add 'show database intra' command, which displays Intra-Area-Prefix LSAs.Stefan Sperling
ok claudio@
2009-01-28Teach ospf6d to originate Intra-Area-Prefix LSAs, which associate a listStefan Sperling
of IPv6 prefixes with a Network LSA (there's another type of this LSA which associates prefixes with a Router LSA -- this remains to be done). Add what is necessary to allow ospf6ctl to read the new LSA type via IMSG. ok claudio@
2009-01-28Add brackets around return values.Michele Marchetto
2009-01-28since we're expanding "relay via ssl foobar.org" into two mxhosts (one withGilles Chehade
F_SSMTP on port 465 and one with F_STARTTLS on port 25) both mxhosts should only retain the flag that they will use ("via ssl" means the mxhost before expansion has both flags set). this will make mta_connect() simpler when we bring ssl support in the way.
2009-01-28first steps towards better mta code. currently mta uses struct batch toGilles Chehade
store a lot of its session related code, but this is just not right and this commit starts making mta code aware of struct session. This will ease the implementation of ssl sessions in mta. while at it, make mta autodetect port to use if it isn't provided in a rule but can be derived from a parameter (i.e: "relay via ssmtp ...").
2009-01-28cleanup; ok gilles@Jacek Masiulaniec
2009-01-28when pausing listeners, do not simply disable their events as newGilles Chehade
clients would still be able to connect. instead, at pause time we close and remove the listeners, and at resume time we request the parent to reconfigure all listeners. discussed with pyr@
2009-01-28reuse recipient_to_path; ok gilles@Jacek Masiulaniec
2009-01-28relayhost flags were not properly copied to the relayhost array of theGilles Chehade
batch we're handing over to mta. this prevented mta from knowing if a session has to be established over ssl or not.
2009-01-28Print the right header for Intra-Area-Prefix LSAs when showing the database.Stefan Sperling
2009-01-28Make races between queue and runner impossible by implementing the policy:Jacek Masiulaniec
1) queue never reads /queue. 2) queue writes to /queue only at message injection time. 3) runner does all reading, and all writing apart from 2). ok gilles@
2009-01-28if recipient was provided as a username, append the local hostname, thisGilles Chehade
unbreaks: $ echo foo | mail gilles send-mail: invalid recipient address.
2009-01-28Add wake to the build. ok claudio.Marc Balmer
2009-01-28minor improvement to usage()Igor Sobrado
ok mbalmer@
2009-01-28it's -> itsIan Darwin
2009-01-28wake is a command to send wake on lan frames over an ethernet to wake on lanMarc Balmer
capable machines, remote powering them up. ok claudio, sthen, "I like this a lot" & ok dlg
2009-01-28bring loop detection support. we handle this with a qmail-like approach whichGilles Chehade
consists of checking headers for a custom header, but we also count how many hops the mail went through and use a hard limit (currently set to 100 as was recommanded by RFC) as a safe-guard. idea discussed with jacekm@, qmail approach suggested by claudio@ a long time ago
2009-01-28move some functions from queue.c to queue_shared.c as they are not onlyGilles Chehade
used by queue process but also by runner, while at it change the prototype of queue_open_message_file() so it takes the message id and not a batch, runner process requires the decriptor before it even starts building a batch.
2009-01-28in safe_fclose, ensure file is closed upon return, and additionallyJacek Masiulaniec
signify temp failure to the caller if ferror is true; ok gilles@
2009-01-28">From" escaping and \n appending is not needed for maildir; ok gilles@Jacek Masiulaniec
2009-01-28add a struct path to struct message so that we can keep track of the RCPTGilles Chehade
provided recipient even after aliases/forwards expansion, we'll need this for loop detection. message id and uid being MAXPATHLEN long is a waste, define MAX_ID_SIZE which is currently set to 64 (but can probably be further reduced) and make sure that structures and the few strlcpy's use the right define. original idea by jacekm@ a while ago
2009-01-28Correct dup to dupstr.aschrijver
2009-01-28a bit of enqueue cleanup, and while at it set the sender local address toGilles Chehade
::1 (fallback to 127.0.0.1) before sending the enqueue request.
2009-01-28- remove debug messagesGilles Chehade
2009-01-27instead of relying on socket permissions to allow or disallow imsg's thatGilles Chehade
come from the external process (smtpctl/send-mail/etc...), make the socket world-writeable and request credentials with getpeereid(). discussed with pyr@ who was happy to hand me over UNP opened at the "passing credentials through a unix socket" page, but hopefully saved by dlg@ who knew about getpeereid() :-) cvs: ---------------------------------------------------------------------- cvs: eNTER lOG. lINES BEGINNING WITH `cvs:' ARE REMOVED AUTOMATICALLY cvs: cvs: cOMMITTING IN . cvs: cvs: mODIFIED fILES: cvs: CONTROL.C PARSE.Y SMTP.C SMTPD.C SMTPD.H STORE.C
2009-01-27keep namespace clean.Pierre-Yves Ritschard
discussed w/ aschrijver@
2009-01-27follow the naming convention of other files, discussed with jacekm@Gilles Chehade
2009-01-27first bricks of enqueue code which allows smtpctl to submit mail to queueGilles Chehade
without "talking" smtp to listeners. currently, a big part of the server side code is done (and requires a cleanup), next step is to get it usable properly from a mail user agent.
2009-01-27Propagate the neighbour's interface ID, as received in hello packets,Stefan Sperling
to the RDE. ok claudio@
2009-01-27Add space after keywords.aschrijver
2009-01-27err, actually session_set_path was moved to utils.c because it was used byGilles Chehade
the enqueue code i'm working on, but this is no longer necessary since the enqueue code uses recipient_to_path. revert part of previous commit
2009-01-27*** empty log message ***Gilles Chehade
2009-01-27Oops, fix the error handling. Found by blambert@aschrijver
2009-01-27fix printf format specification to print max len 4 for refid,Kevin Steves
which may not be null terminated; ok henning@
2009-01-27the data member of ibuf was not set to the environment in control_accept()Gilles Chehade
which caused th ev_arg member of struct event to be reset after the first call to control_dispatch_ext (causing a null deref at second call). this has been driving me nuts for at least an hour ...
2009-01-27Fix another double free in the filter parser.aschrijver