#
510586ac |
| 20-Jan-2024 |
claudio <claudio@openbsd.org> |
Use imsg_get_fd() to access the fd passed via imsgs.
Most of the conversion is simple there is just log_imsg() that can no longer display the fd since imsg_get_fd() can only be called once. OK op@
|
#
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@
|
#
5b133f3f |
| 08-Mar-2023 |
guenther <guenther@openbsd.org> |
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ 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@
|
#
1a5b831a |
| 31-Dec-2020 |
martijn <martijn@openbsd.org> |
Rename the pony process to dispatcher and klondike to crypto.
From gilles@ OK millert@ giovanni@
|
#
99399201 |
| 23-Sep-2020 |
martijn <martijn@openbsd.org> |
Revert agentx support for now, we're too close to release.
requested by deraadt@
|
#
770825c6 |
| 23-Sep-2020 |
martijn <martijn@openbsd.org> |
Add support for agentx to smtpd.
This is based around NETWORK-SERVICES-MIB from RFC2788 and MTA-MIB from RFC2789, but does not export the full spec. Hopefully this will expand in the future.
People
Add support for agentx to smtpd.
This is based around NETWORK-SERVICES-MIB from RFC2788 and MTA-MIB from RFC2789, but does not export the full spec. Hopefully this will expand in the future.
People who want to use this against net-snmp (currently the only option known to me at the time of writing) may want to add -I -mta_sendmail to the flags, so net-snmp doesn't throw garbage into the mib-2.28 subtree.
show more ...
|
#
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@
|
#
fb531d31 |
| 27-Jan-2018 |
anton <anton@openbsd.org> |
Avoid passing NULL to vprintf() by assigning a name to client processes. While here rework the switch proc_title(), both clang and gcc will now warn if all possible values are not enumerated.
ok gil
Avoid passing NULL to vprintf() by assigning a name to client processes. While here rework the switch proc_title(), both clang and gcc will now warn if all possible values are not enumerated.
ok gilles@
show more ...
|
#
bbe9c651 |
| 27-Nov-2017 |
sunil <sunil@openbsd.org> |
Show correct command execution status by checking against update operation return value.
Issue reported by 'Zelest' (Jesper Wallin). Suggestions and ok eric@ gilles@.
|
#
25d8b68d |
| 23-Nov-2017 |
eric <eric@openbsd.org> |
simplify imsg handler.
ok sunil@ gilles@
|
#
f24248b7 |
| 09-Jan-2017 |
reyk <reyk@openbsd.org> |
smtpd joins the 7 other daemons that share the same log.c file.
The only major difference was the "log_trace" concept that is only used by smtpd - move it from log.c into util.c and make it a local
smtpd joins the 7 other daemons that share the same log.c file.
The only major difference was the "log_trace" concept that is only used by smtpd - move it from log.c into util.c and make it a local concept. This also needed to rename the global "verbose" variable to "tracing" in a few places.
OK krw@ gilles@ eric@
show more ...
|
#
43962b9c |
| 08-Sep-2016 |
eric <eric@openbsd.org> |
Streamline the daemon shutdown sequence.
Only the parent process handles SIGTERM and SIGINT. Upon receiving one of those, it closes all imsg sockets and waitpid() for the children. It fatal()s if o
Streamline the daemon shutdown sequence.
Only the parent process handles SIGTERM and SIGINT. Upon receiving one of those, it closes all imsg sockets and waitpid() for the children. It fatal()s if one of the sockets is closed unexpectedly. Other processes exit() "normally" when one of the imsg sockets is closed.
ok gilles@ sunil@
show more ...
|
#
f94528c3 |
| 04-Sep-2016 |
eric <eric@openbsd.org> |
The smtpd processes are not expected to ever leave their event loop. So stop pretending that the *_shutdown() functions could ever be called in this context, and just fatal() if event_dispatch() retu
The smtpd processes are not expected to ever leave their event loop. So stop pretending that the *_shutdown() functions could ever be called in this context, and just fatal() if event_dispatch() returns.
ok gilles@ sunil@ giovanni@
show more ...
|
#
4dcd8201 |
| 04-Sep-2016 |
eric <eric@openbsd.org> |
Remove the "smtpctl stop" command. The daemon is stopped with kill(1).
ok gilles@
|
#
c2798399 |
| 01-Sep-2016 |
eric <eric@openbsd.org> |
remove noop function
ok sunil@
|
#
b88ab68d |
| 28-May-2016 |
eric <eric@openbsd.org> |
Implement the fork+exec pattern in smtpd.
The parent process forks child processes and re-exec each of them with an additional "-x <proc>" argument. During the early setup phase, the parent process
Implement the fork+exec pattern in smtpd.
The parent process forks child processes and re-exec each of them with an additional "-x <proc>" argument. During the early setup phase, the parent process sends ipc socket pairs to interconnect the child processes as needed, and it passes the queue encryption key to the queue if necessary. When this is done, all processes have their environment set as in the fork-only case, and they can start doing their work as before.
ok gilles@ jung@
show more ...
|
#
907c4b99 |
| 25-Mar-2016 |
krw <krw@openbsd.org> |
Nuke session_socket_blockmode() and session_socket_linger(). Use the identical io_set_blocking() and io_set_linger().
Since both are always called to turn off blocking or lingering, nuke the paramet
Nuke session_socket_blockmode() and session_socket_linger(). Use the identical io_set_blocking() and io_set_linger().
Since both are always called to turn off blocking or lingering, nuke the parameter and associated enum in favour of "just doing the right thing".
While passing remove the unneeded last parameter to the remaining fcntl(F_GETFL).
Finally, rename the functions to io_set_nonblocking() and io_set_nolinger() for clarity.
No functional change.
Started with a sweep of fcntl() usage inspired by guenther@.
ok gilles@
show more ...
|
#
ac61da4a |
| 09-Feb-2016 |
gilles <gilles@openbsd.org> |
rename variable sun to s_un to ease portability
diff from Freddy DISSAUX, ok gilles@, jung@, sunil@, millert@
|
#
bc1ed85b |
| 02-Feb-2016 |
sunil <sunil@openbsd.org> |
Check imsg data size before use.
Ok eric@ millert@
|
#
e459d0ce |
| 28-Dec-2015 |
jung <jung@openbsd.org> |
remove spaces after '!'
no binary change
ok millert
|
#
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 ...
|