Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-03-23 | various minor improvements; ok jacekm gilles | Jason McIntyre | |
2009-03-23 | repair library use. this was detected on the vax, a nice static linking | Theo de Raadt | |
architecture. it was silently creating broken code on other architectures. | |||
2009-03-23 | good god no you do not use LDFLAGS to pull in libraries | Theo de Raadt | |
2009-03-23 | Fixed a leaking of a fd each time a file is delivered to a mbox, which | Tobias Stoeckmann | |
was introduced in revision 1.7. ok and log message by gilles | |||
2009-03-22 | fix a bug in the resolution of forward files which would cause usernames | Gilles 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-22 | trivial message repair, ok jacek@ | Ian Darwin | |
2009-03-20 | initialize variable before using it as a counter in a loop | Gilles Chehade | |
spotted and fix by Matthew Haub <matthew.haub@alumni.adelaide.edu.au> | |||
2009-03-19 | since maps may contain secrets, carry ownership and perms from source file | Jacek Masiulaniec | |
to db file; ok gilles@ | |||
2009-03-19 | make action_type == 0 mean A_INVALID, not A_RELAY; ok gilles@ | Jacek Masiulaniec | |
2009-03-19 | when listen was declared without a port parameter, it would get it wrong | Gilles Chehade | |
because of a missing htons() | |||
2009-03-19 | in the event of a timeout, mxhost is passed to TAILQ_REMOVE before it is | Gilles Chehade | |
initialized. spotted and diff by Matthew Haub <matthew.haub@alumni.adelaide.edu.au> | |||
2009-03-18 | remove debug X-Cipher and turn it into a useful log_info() | Gilles Chehade | |
2009-03-18 | previous commit removed "else" condition | Gilles Chehade | |
2009-03-18 | we can no longer create batches of MDA deliveries, so make sure runner | Gilles Chehade | |
does not do a batch lookup when dealing with a MDA message | |||
2009-03-18 | unbreak make release, spotted by todd and kurt | Jacek Masiulaniec | |
2009-03-18 | in mta, when remote host advertises AUTH, do not attempt to authenticate | Gilles 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-17 | update a bit, but more work is needed on this man page, working on it and | Gilles Chehade | |
will commit an up to date version tomorrow | |||
2009-03-17 | move smtpd.conf to etc/mail/ directory. it is not installed yet by the | Gilles Chehade | |
build | |||
2009-03-16 | change 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-16 | in accept rules, support "for local" as a destination which is an alias to | Gilles 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-16 | update smtpctl.8 with new smtpctl commands | Gilles Chehade | |
2009-03-16 | smtpctl goes to usr.sbin; ok gilles@ | Jacek Masiulaniec | |
2009-03-16 | makemap goes to libexec/smtpd; ok gilles@ | Jacek Masiulaniec | |
2009-03-16 | - mention /etc/mail/virtual in FILES section | Gilles Chehade | |
2009-03-16 | mention /etc/mail/secrets in the FILES section | Gilles Chehade | |
2009-03-16 | this file has been deprecated for a while and will not be updated, so | Gilles Chehade | |
lets just remove it as some people may believe it actually describes the architecture ... | |||
2009-03-15 | since we are going to share code in smtp sessions and mta sessions, we need | Gilles Chehade | |
to also share the statistics structure, still being worked on | |||
2009-03-15 | the mda process no longer uses struct batch as its central structure to | Gilles 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-15 | save 4 bytes per message by moving the datafp field of struct message to | Gilles Chehade | |
struct session where it really belongs. | |||
2009-03-12 | Add 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-11 | getmxbyname() returning a value != 0 does not necessarily means it failed | pea | |
ok gilles@ | |||
2009-03-11 | fix log_info(), while other processes know about message uid, the smtp | Gilles Chehade | |
process only knows about message id bug spotted by pea@ | |||
2009-03-10 | implement basic logging, needs more work; ok gilles@ | Jacek Masiulaniec | |
2009-03-10 | when calling external mda, use restricted environment; ok gilles@ | Jacek Masiulaniec | |
2009-03-10 | run external mda with cwd set to $HOME or /; ok gilles@ | Jacek Masiulaniec | |
2009-03-10 | kill few lines, saving one seteuid(2) call; ok gilles@ | Jacek Masiulaniec | |
2009-03-10 | - Use setsid(2) to create new process group for external mda. | Jacek Masiulaniec | |
- Unignore SIGPIPE, otherwise it remains ignored in forked mda. - Use closefrom(2) to close all descriptors apart from stdin/stdout/stderr. ok gilles@ | |||
2009-03-10 | it's simpler to use pipe(2) than socketpair(2) to communicate with | Jacek Masiulaniec | |
external mda; ok gilles@ | |||
2009-03-10 | fork(2) or socketpair(2) failures are temporary, delivery attempt should be | Jacek Masiulaniec | |
retried later; ok gilles@ | |||
2009-03-10 | ascribe copyright to code taken from OpenSSH, pointed out by deraadt | Jacek Masiulaniec | |
2009-03-09 | run external mda directly, not via sh -c; this steals addargs() API | Jacek Masiulaniec | |
from OpenSSH; ok gilles@ | |||
2009-03-09 | Drop ALIAS_TEXT, plain maps got implemented in a different way; ok gilles@ | Jacek Masiulaniec | |
2009-03-09 | add hunk that should have been included in rev. 1.12, fixes occasional | Jacek Masiulaniec | |
crash; ok gilles@ | |||
2009-03-09 | add basic support for outgoing authentication (AUTH PLAIN over ssl) which | Gilles Chehade | |
can be turned on by adding "enable auth" to a "relay via" rule. this made me rework the mx resolution so that it is done by the mta process and not the runner process anymore. | |||
2009-03-08 | adapt example to reflect a recent change in parse.y | Gilles Chehade | |
2009-03-08 | supporting delivery to a mbox that's not in _PATH_MAILDIR is not supported, | Gilles Chehade | |
if someone comes with good rationale why this is needed, we'll consider it, meanwhile it's more work than it looks like and it brings a lot of pain. discussed with jacekm@ and deraadt@ | |||
2009-03-08 | when operating in enqueue mode, it was easy to make smtpctl fatal() by | Gilles Chehade | |
writing a small app that sent out of order imsg's. prevent this by use of a state machine and read event masking. issue spotted by jacekm@, temporary fix by me. there are ideas around this, but we want to experiment them a bit and they are low priority. | |||
2009-03-08 | shrink struct message a bit by removing a couple fields which are no longer | Gilles Chehade | |
used and by moving the rcpt count in struct session where it really belongs while at it, remove some unused splay tree generation in mfa | |||
2009-03-08 | ~/.forward files handling was fixed recently so that it is the privileged | Gilles Chehade | |
process that does the opening, this commit does some cleanup, and fixes a bug I experienced today which was caused by a use-after-free. I did some testing to make sure a user cannot cause smtpd to deadlock, or loop, with broken setups (self-referencing forwards/aliases, empty files, broken files...), but if you are playing with aliases/forwards PLEASE let me know of any bug you run into. | |||
2009-03-06 | missing prototype | Gilles Chehade | |