#
0dcffd0d |
| 31-May-2023 |
op <op@openbsd.org> |
add missing include of time.h
spotted after a report on OpenSMTPD-portable. While here include sys/time.h in smtpd.h, as noted in event_init(3), since it includes event.h.
ok millert@
|
#
d3140113 |
| 14-Jun-2021 |
eric <eric@openbsd.org> |
add required headers for smtpd.h and remove unnecessary ones in other files.
ok jung@
|
#
ff01b044 |
| 26-May-2021 |
eric <eric@openbsd.org> |
replaces calls to err(3)/errx(3) with fatal()/fatalx() from log.c for code that runs in the daemon.
ok florian@ millert@
|
#
1d4bec26 |
| 25-Feb-2020 |
millert <millert@openbsd.org> |
fsqueue_envelope_dump() returns 0 on temporary failure, not -1. We should only exit the loop that creates the queue file if we successfully created the file or we've exceeded the max number of tries.
fsqueue_envelope_dump() returns 0 on temporary failure, not -1. We should only exit the loop that creates the queue file if we successfully created the file or we've exceeded the max number of tries. From gilles@ based on feedback from Qualys.
show more ...
|
#
df69c215 |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
show more ...
|
#
ef80df5c |
| 30-Dec-2018 |
guenther <guenther@openbsd.org> |
Delete unnecessary <libgen.h> #includes
ok deraadt@
|
#
118c16f3 |
| 31-May-2018 |
gilles <gilles@openbsd.org> |
remove 'where' parameter from all x*() functions in utils.c, it doesn't really help us with anything, propagate the change in codebase
ok millert@
|
#
ef15259e |
| 14-May-2018 |
gilles <gilles@openbsd.org> |
kill corrupt / uncorrupt queue mechanism as it has never been usable and it will be made irrelevant when the new config comes up soon
ok eric@
|
#
e2ccb567 |
| 10-Oct-2017 |
guenther <guenther@openbsd.org> |
Use clock_gettime(CLOCK_REALTIME) instead of gettimeofday+TIMEVAL_TO_TIMESPEC
ok jung@
|
#
1f369c52 |
| 30-Dec-2015 |
jung <jung@openbsd.org> |
d_namlen is not portable, there is no reason to keep a delta with -portable and it is not even "optimizing" things, this is a startup loop which will not bring any benefit at runtime. thus, change it
d_namlen is not portable, there is no reason to keep a delta with -portable and it is not even "optimizing" things, this is a startup loop which will not bring any benefit at runtime. thus, change it and reduce diff to -portable.
ok gilles sunil
show more ...
|
#
e459d0ce |
| 28-Dec-2015 |
jung <jung@openbsd.org> |
remove spaces after '!'
no binary change
ok millert
|
#
c7e9e42d |
| 14-Dec-2015 |
jung <jung@openbsd.org> |
remove trailing whitespace
ok sunil gilles
|
#
d05af802 |
| 05-Nov-2015 |
sunil <sunil@openbsd.org> |
Implement smtpctl uncorrupt <msgid>
"uncorrupt" moves envelopes from corrupt bucket back to the queue for further discovery by the daemon.
After correcting the corrupt envelopes, admin could now...
Implement smtpctl uncorrupt <msgid>
"uncorrupt" moves envelopes from corrupt bucket back to the queue for further discovery by the daemon.
After correcting the corrupt envelopes, admin could now...
# smtpctl uncorrupt msgid # smtpctl discover msgid
to schedule the messages.
Ok gilles@
show more ...
|
#
a9835440 |
| 29-Oct-2015 |
sunil <sunil@openbsd.org> |
Implement smtpctl discover <evpid|msgid>.
discover subcommand schedules envelopes manually moved to the queue. It triggers a queue walk searching for envelopes with the given id, schedules them and
Implement smtpctl discover <evpid|msgid>.
discover subcommand schedules envelopes manually moved to the queue. It triggers a queue walk searching for envelopes with the given id, schedules them and informs the user number of envelopes scheduled. Admins no longer would need to restart the daemon to discover manually moved messages.
Ok gilles@
show more ...
|
#
df67ff3e |
| 12-Oct-2015 |
gilles <gilles@openbsd.org> |
do not call sync() when committing a message, it's not helping in any way
|
#
953aae25 |
| 20-Jan-2015 |
deraadt <deraadt@openbsd.org> |
use <limits.h> comprehensively. For now try to push <> includes to each .c file, and out of the .h files. To avoid overinclude. ok gilles, in principle. If this has been done right, -portable shou
use <limits.h> comprehensively. For now try to push <> includes to each .c file, and out of the .h files. To avoid overinclude. ok gilles, in principle. If this has been done right, -portable should become easier to maintain.
show more ...
|
#
b9fc9a72 |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
show more ...
|
#
98f67d16 |
| 08-Jul-2014 |
eric <eric@openbsd.org> |
various queue improvements:
- add a "close" hook to the backend API. - improve the sync() pattern in queue_fs: only sync at commit time and not for every envelope creation - various fixes to the e
various queue improvements:
- add a "close" hook to the backend API. - improve the sync() pattern in queue_fs: only sync at commit time and not for every envelope creation - various fixes to the experimental external queue API.
show more ...
|
#
b5be0396 |
| 19-Apr-2014 |
gilles <gilles@openbsd.org> |
(void) cast strlcpy/strlcat/snprintf that cannot truncate
|
#
c1392a69 |
| 26-Dec-2013 |
eric <eric@openbsd.org> |
bcopy -> memmove bzero -> memset
|
#
273ff801 |
| 06-Nov-2013 |
eric <eric@openbsd.org> |
fix assertion that could lead to orphaned messages left in the queue after all envelopes are gone.
|
#
d7bcae4d |
| 26-Oct-2013 |
eric <eric@openbsd.org> |
%i -> %d in format strings
|
#
3f70ecaf |
| 19-Jul-2013 |
eric <eric@openbsd.org> |
Assorted queue improvements: - cleanup the internal queue backend API and get rid of the QOP_* thing. - implement a queue_proc backend - rename queue_fsqueue.c to queue_fs - enable support for queue
Assorted queue improvements: - cleanup the internal queue backend API and get rid of the QOP_* thing. - implement a queue_proc backend - rename queue_fsqueue.c to queue_fs - enable support for queue encryption - add an envelope cache - better logging and error reporting
show more ...
|