Displaying 0 — 50 of 360 commits
Pages [1 2 3 4 5 6 … 8]
openbsd/OpenBSD: www mail.html
URL for openbsd-france's mailing list has changed; From Philemon Daubard
openbsd/OpenBSD: src/usr.sbin/smtpd queue.c
smtpd should NOT fatal when it permanently fails a bounce delivery as this
can be a normal situation and will allow a local/authenticated user to
trigger the fatal on purpose ...
ignore permanently failed bounce deliveries since there's not much smtpd
can do anyway, that's what the previous queue code did.
experienced and reported by pirofti@
openbsd/OpenBSD: src/usr.sbin/ypldap aldap.c
fix NULL-deref, ok martinh@
openbsd/OpenBSD: src/share/man/man4 uhid.4
fields are incorrectly named in structure descriptions
"of course" deraadt@
openbsd/OpenBSD: www want.html
I no longer need USB/IrDA dongles, however I could use a faster sparc64
than the sunblade 100 I'm currently using...
openbsd/OpenBSD: src/usr.sbin/smtpd config.c lka.c
when a rule has two conditions (ie: accept for { domain foo, domain bar } )
expand to two rules each having its own condition rather than one rule
with a tail queue of conditions. this simplifies code a bit and removes a
couple hacks.
basic testing by oga and me
openbsd/OpenBSD: src/usr.sbin/smtpd smtpd.h
struct opt as not used anywhere else, kill it, we can reintroduce it later
if we feel a need for it
openbsd/OpenBSD: src/usr.sbin/smtpd config.c parse.y
kill struct opt from struct rule, we don't use it, we don't need it
openbsd/OpenBSD: src/usr.sbin/smtpd smtpd.c
S_ISREG() should be called on st.st_mode not st.st_flags
openbsd/OpenBSD: src/usr.sbin/smtpd aliases.c bounce.c
cleanup-only commit, removes unrequired includes, no functionnal change
openbsd/OpenBSD: src/usr.sbin/smtpd smtpd.c
in recent change, an assignation was removed which would cause a bogus
pointer deref if we actually went through this code path (reload, does
not work yet so it is disabled)
openbsd/OpenBSD: ports/geo/openbsd-developers Makefile, ports/geo/openbsd-developers/files OpenBSD
I left Paris months ago ...
openbsd/OpenBSD: src/usr.sbin/smtpd map_backend.c parse.y
this commit enables "plain" as a backend for maps (that means aliases,
virtual AND secrets), adds a description in smtpd.conf.5 and removes a
mention to special map "aliases" which was removed a while ago.
to use plain maps: map "myaliases" { source plain "/etc/mail/aliases" }
code diff was okayd a while ago by jacekm@
openbsd/OpenBSD: src/usr.sbin/smtpd aliases.c expand.c
initial work at fixing aliases support:
- kill struct alias, struct expandnode is used instead
- introduce map_parse_alias() and map_parse_virtual()
- aliases and virtual code no longer assume db(3) but use the map API which
lets them become backend agnostic AND value-checked. this actually makes
the code simpler by removing all values parsing from aliases.c
- rename K_SECRETS -> K_SECRET, K_ALIASES -> K_ALIAS for consistency the
enum has singular names.
- aliases, virtual and forward now work with an expandtree and deal with
multiple levels of resolving by merging expandtree's
more coming soon ;)
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c map.c
introduce first map parser for maps of kind K_SECRETS !
map_parse_secret() converts a map value into a struct map_secret. lka no
longer needs to do any parsing, it simply calls map_lookup() with kind
K_SECRETS, checks if it returned a !NULL value, and call lka_encode_secret
to safely do the base64 encoding.
openbsd/OpenBSD: src/usr.sbin/smtpd makemap.c
when creating a map, make sure we do not store a key/val separator at the
beginning of the key (ie: "gilles: bleh" should not be stored as
key[gilles] val[ bleh])
openbsd/OpenBSD: src/usr.sbin/smtpd map_backend.c map_parser.c, src/usr.sbin/smtpd/makemap Makefile
map.c is growing big, split it into three different files:
map.c contains the map API calls as usable by smtpd processes,
map_backend.c contains backend implementations and map_parser.c contains
parser implementations used internally by the map API
openbsd/OpenBSD: src/usr.sbin/smtpd smtp_session.c
my evbuffer_readln_crlf() hack can be killed now that nicm@ has brought us
an update to libevent that ships with evbuffer_readln(). beers for nicm@ !
openbsd/OpenBSD: src/usr.sbin/smtpd map.c
change prototypes for map_*_get() functions, we need the get-er function
to fill the size of value for the caller.
have map_lookup() actually lookup the parser in map_parsers table and
call it if it is set, otherwise return raw value which is similar to
current behavior. currently, no map kind has a parser set, so this is
essentially no functionnal change.
fix map_stdio_get(), it was not used yet in -current but i spotted a
bug while enabling it in my sandbox. it returns key and value instead
of key.
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c map.c
map_lookup() takes an additionnal parameter of type enum map_kind which
will be used to select the appropriate map parser. make sure every call
to map_lookup() is updated. map_lookup() currently ignores the value.
openbsd/OpenBSD: src/usr.sbin/smtpd smtpd.h map.c
introduce enum map_kind, the map_parsers array and map_parser_lookup()
which will be used to perform stronger checks on map values. they are
unused yet ...
openbsd/OpenBSD: src/usr.sbin/smtpd map.c
simplify map_lookup() by having the backend lookup done in new
map_backend_lookup() function, no functionnal change, first of
many changes to come in map.c
openbsd/OpenBSD: src/usr.sbin/smtpd parse.y
when a size is declared with a quantifier in smtpd.conf, have parse.y use
scan_scaled(3) to support the quantifiers rather than rolling my own code.
prompted by jacekm@
openbsd/OpenBSD: src/usr.sbin/smtpd parse.y
two lines were missing from previous commit
openbsd/OpenBSD: src/usr.sbin/smtpd smtp_session.c
initial support for ENHANCEDSTATUSCODES, has been sitting in my tree for
a month or so
openbsd/OpenBSD: src/usr.sbin/smtpd parse.y smtp_session.c
basic support for SIZE extension, has been sitting in my tree for a month
or so ...
okayd by jacekm@ a while ago
openbsd/OpenBSD: src/usr.sbin/smtpd mda.c
mda_event() assumed the mbox fp to be a file when it could be a pipe, do
not fatal on read/write errors otherwise a broken pipe in an external mda
will bring smtpd down.
mda_store() assumed write would succeed and fatal otherwise, change code
so that EINTR/EAGAIN trigger a new write while other errors gracefully
return causing the message to be rescheduled later.
these two prevent a fatal() from being hit when execution of a filter or
external mda fails (bug experienced and fix verified by nicm@)
while at it, fix a small bug where logs would not display the recipient
when mail went through a ~/.forward / aliases expansion.
openbsd/OpenBSD: src/usr.sbin/smtpd smtpd.c
typo in warning log
spotted by Seth Wright <seth at crosse.org>
openbsd/OpenBSD: src/usr.sbin/smtpd ruleset.c
the netmask fix I commited a couple days ago lacked the AF_INET6 bits,
this commit fixes pr user/6328
bug reported and fix verified by Martin Hedenfalk <martinh at bzero.se>
openbsd/OpenBSD: src/usr.sbin/smtpd parse.y ruleset.c
- fix netmask matching for AF_INET, it was broken in many ways, problem
was reported by nicm@ which spent a couple hours with me trying to
understand what was causing the bug, and helping me write and test fix.
openbsd/OpenBSD: src/usr.sbin/smtpd map.c
in map_stdio_get() use strdup on the right buffer, not on a pointer that
will be NULL 99% of the times... fixes segv in path that's not enabled
yet
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c
erf, previous fix to lka crash was still using the wrong define ...
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c map.c
the map api becomes backend-agnostic with initial support for db(3) and
stdio(3) backends, though for now we only enable db(3). this is the first
commit of a serie to improve maps and everything related.
idea discussed with and diff okay jacekm@
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c
localpart of a struct path may legally exceed MAXLOGNAME, causing lka to
fatalx() on a lowercase() call in some cases. make sure lka uses a buffer
capable of holding a localpart, and do not attempt getpwnam() if we know
it's going to fail anyway...
issue reported by Ben Lindstrom <mouring at eviladmin.org>
openbsd/OpenBSD: www want.html
i need a few different (cheap ones, all kinds really) usb irda adapters
openbsd/OpenBSD: src/usr.sbin/smtpd control.c parser.c
- teach runner how to remove a message from queue given a message id/uid
and assuming message is not in processing/scheduled state
- teach smtpctl how to request message removal from runner
discussed with todd@, idea ok jacekm@
openbsd/OpenBSD: src/usr.sbin/smtpd smtpd.c
have smtpd errx() at startup if no hostname could be detected either from
a gethostname() call or from a hostname directive in smtpd.conf
discussed with jacekm@, i initially intended to only warn but errx seems to
be a better solution for now
openbsd/OpenBSD: src/usr.sbin/smtpd smtp_session.c
when separating command from parameters in smtp session, the parser tries
to use ':' as a separator then fallbacks to ' ' so that it can detect the
command names that contain more than one words (MAIL FROM and RCPT TO) or
the one word ones (HELO, DATA, ...).
this is incorrect and the parser can get confused if the parameter to any
command contains a ':', for example "HELO [ipv6:...]" cause the parser to
lookup for command "HELO [ipv6".
fix this by using ':' as a delimiter for 'mail from' and 'rcpt to', while
using ' ' as a delimiter for all other commands.
fixes bug 6285/system reported by Lionel Le Folgoc <lionel at lefolgoc.net>
openbsd/OpenBSD: src/usr.sbin/smtpd smtpd.c smtpd.h
kill PATH_RUNQUEUEHIGH and PATH_RUNQUEUELOW, i had great plans for them but
they're still unused months later and there's many ways to achieve having a
set of priorities on envelopes without needing additionnal queues.
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c
- add comments to explain the logic in the aliases expansion loop
- more cosmethic changes to help readability
- fix memory leaks
- if deliverylist is empty, it means something went bad during expansion,
reject recipient
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c
pfff remove a comment i pasted to help me refactor code ;-)
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c
more cleanup, let lka_resolve_path() request forward files and populate
expandtree, this makes a lot of code clearer and removes quite a bit of
complexity from various places.
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c
cosmethic changes, code reordering, no functionnal change
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c
introduce lka_session_fail() which factors a small piece of code used in
three places: set code to 530, send imsg to notify rejection, kill
lkasession
openbsd/OpenBSD: src/usr.sbin/smtpd aliases.c forward.c
now that we don't keep an expand_node in memory for each expansion result,
we don't need to calloc them as they won't be saved in the tree.
openbsd/OpenBSD: src/usr.sbin/smtpd aliases.c expand.c
- add a reference count and flags to struct expand_node
- during expansion, no longer create a new node for each result but try to
lookup for an existing equivalent node and increment its reference count
so that: a) we save on memory, b) we don't need to expand the same users
again and again just because they keep appearing in expansion results.
- while expanding, flag nodes as F_EXPAND_DONE so that we know which nodes
we already processed
- be smarter when expanding, if we have a clue that an iteration has not
brought any new result (because no new nodes were added and all existing
nodes have F_EXPAND_DONE), end expansion and proceed to delivery.
- various small cleanups
discussed with jacekm@ yesterday, rebuild aliases db, make clean
openbsd/OpenBSD: src/usr.sbin/smtpd lka.c
support the userpart+foobar at domainpart syntax which got wiped when i wrote
the virtual domains support as it was in my way. this time, make it work as
it should: userpart+foobar at domainpart becomes:
path->user = userpart+foobar
path->domain = domainpart
path->pw_name = userpart
discussed quickly with jacekm@
openbsd/OpenBSD: src/usr.sbin/smtpd forward.c
forwards_get() also calls alias_to_expand_node()
openbsd/OpenBSD: src/usr.sbin/smtpd aliases.c smtpd.h
add an alias_to_expand_node() function and use it in aliases.c
openbsd/OpenBSD: src/usr.sbin/smtpd expand.c aliases.c, src/usr.sbin/smtpd/makemap Makefile
move expansion code to new expand.c to clearly separate it from aliases
Pages [1 2 3 4 5 6 … 8]