History log of /openbsd/usr.sbin/smtpd/parser.c (Results 1 – 25 of 43)
Revision Date Author Comments
# d3140113 14-Jun-2021 eric <eric@openbsd.org>

add required headers for smtpd.h and remove unnecessary ones in other files.

ok jung@


# 74c984d4 06-Jan-2020 gilles <gilles@openbsd.org>

provide a better error message for invalid smtpctl commands


# 822a1645 31-Jul-2017 gilles <gilles@openbsd.org>

cmd_dump() is unused

spotted by deraadt


# c09413de 09-Jan-2015 gilles <gilles@openbsd.org>

rename a variable to avoid a warning

spotted by deraadt@


# 5b6a9ce9 04-Feb-2014 eric <eric@openbsd.org>

Allow the admin to pause relaying to a specific domain:
- smtpctl pause mta from <source> for <domain>
- smtpctl resume mta from <source> for <domain>
- smtpctl show mta paused


# 22cff71c 06-Dec-2013 eric <eric@openbsd.org>

fix smtpctl resume route


# d7bcae4d 26-Oct-2013 eric <eric@openbsd.org>

%i -> %d in format strings


# 0fcb81a3 25-Oct-2013 eric <eric@openbsd.org>

Improve reporting in smtpctl and a few fixes.

When sending a request to the scheduler, wait for the success/failure
report from the scheduler. Simplify the code by introducing generic
functions for

Improve reporting in smtpctl and a few fixes.

When sending a request to the scheduler, wait for the success/failure
report from the scheduler. Simplify the code by introducing generic
functions for interruptible iteration over envelopes. Report the total
number of affected envelopes for schedule, pause, resume and remove
envelope operations.

show more ...


# 7a7bc169 19-Jul-2013 eric <eric@openbsd.org>

New implementation for smtpctl and the command line parser. Allows
richer syntax, and makes the code way simpler to follow and extend
with new commands.


# 299c4efe 24-May-2013 eric <eric@openbsd.org>

sync with OpenSMTPD 5.3.2

ok gilles@


# 59a46edc 14-Feb-2013 gilles <gilles@openbsd.org>

- smtpctl trace expand, enables tracing of aliases expansion
- replace "users" keyword with "userbase" when providing alternate userbase
- disambiguise expansion nodes when expanding across domains a

- smtpctl trace expand, enables tracing of aliases expansion
- replace "users" keyword with "userbase" when providing alternate userbase
- disambiguise expansion nodes when expanding across domains and userbases
- allow use of '=' instead of '=>' when declaring a mapping

ok eric@

show more ...


# 0cf935df 28-Jan-2013 gilles <gilles@openbsd.org>

- introduce 'smtpctl trace lookup' to trace lookup process
- improve logging of the transfer process

trace by me, logging by eric


# 65c4fdfb 26-Jan-2013 gilles <gilles@openbsd.org>

Sync with our smtpd repo:

* first bricks of ldap and sqlite support (not finished but both working)
* new table API to replace map API, all lookups are done through tables
* improved handling of tem

Sync with our smtpd repo:

* first bricks of ldap and sqlite support (not finished but both working)
* new table API to replace map API, all lookups are done through tables
* improved handling of temporary errors throughout the daemon
* improved scheduler and mta logic: connection reuse, optimizes batches
* improved queue: more tolerant to admin errors, new layout, less disk-IO
* improved memory usage under high load
* SSL certs/keys isolated to lookup process to avoid facing network
* VIRTUAL support improved, fully virtual setups possible now
* runtime tracing of processes through smtpctl trace
* ssl_privsep.c sync-ed with relayd
* ssl.c no longer contains smtpd specific interfaces
* smtpd-specific ssl bits moved to ssl_smtpd.c
* update mail address in copyright

FLUSH YOUR QUEUE. FLUSH YOUR QUEUE. FLUSH YOUR QUEUE. FLUSH YOUR QUEUE.

smtpd.conf(5) simplified, it will require adaptations

ok eric@

show more ...


# 7bdbba2f 23-Nov-2012 eric <eric@openbsd.org>

knf

ok gilles@


# e9283ba6 14-Oct-2012 gilles <gilles@openbsd.org>

introduce map_file.c which will deprecate map_stdio.c

The idea is to have a file-backed map but to have smtpd(8) cache the maps
so that it cannot be partially read if edited while mail is received.

introduce map_file.c which will deprecate map_stdio.c

The idea is to have a file-backed map but to have smtpd(8) cache the maps
so that it cannot be partially read if edited while mail is received. The
file is read and converted to a static map (map_static.c), changes aren't
visible to smtpd until an explicit: smtpctl update map which reads file,
builds a new static map and invalidates the former.

partial-read issue discussed with beck@ and halex@
idea to convert internally to a static map by eric@

diff ok eric@ and chl@

show more ...


# d5e710d9 10-Oct-2012 gilles <gilles@openbsd.org>

teach smtpctl how to display envelopes and messages using their id.
this allows an admin to inspect the queue without having to manually
extract bucket and find the path to an envelope or message.

d

teach smtpctl how to display envelopes and messages using their id.
this allows an admin to inspect the queue without having to manually
extract bucket and find the path to an envelope or message.

diff by Sunil Nimmagadda <sunil@poolp.org>

ok eric@, chl@ and I

show more ...


# 9e4f546e 30-Aug-2012 gilles <gilles@openbsd.org>

- rename show_envelope() to show_queue_envelope()
- remove SHOW_RUNQUEUE it was a noop since runqueues have been removed
years ago from smtpd


# d2241734 19-Aug-2012 chl <chl@openbsd.org>

coding style: replace all occurences of u_int* with uint*

ok eric@


# cf589cbb 13-May-2012 nicm <nicm@openbsd.org>

Remove sizes entry so it doesn't appear as a valid command in the
"smtpctl show" output, and use errx rather than err for the unknown
message error.

ok gilles


# caba6926 12-Jan-2012 eric <eric@openbsd.org>

Remove dead code for config reloading for now. It is not functionnal
and confusing.

ok gilles@


# aad75dc8 26-Oct-2011 gilles <gilles@openbsd.org>

- fix smtpctl pause/resume so the ramqueue scheduling is done correctly
- rename IMSG and smtpctl pause/resume parameters
- update man page

tested by me, ok chl@, eric@


# b6ae19f3 23-Oct-2011 gilles <gilles@openbsd.org>

- smtpctl schedule no longer works, instead, use 'smtpctl schedule-id <id>'
- introduce 'smtpctl schedule-all'

ok eric@


# 1d6166bf 16-Aug-2011 gilles <gilles@openbsd.org>

smtpctl show sizes, displays the size of queue-related structures, useful
for developers to see the impact of structure changes on memory and disk
usage, and useful for users to better understand 'sm

smtpctl show sizes, displays the size of queue-related structures, useful
for developers to see the impact of structure changes on memory and disk
usage, and useful for users to better understand 'smtpctl show stats'

show more ...


# ed5c65a8 21-Jul-2011 gilles <gilles@openbsd.org>

- update smtpctl.8 to reflect reality
- bring back 'smtpctl schedule' and 'smtpctl remove' to life

Things you should know:

The ramqueue data structure is not finished yet and lacks an envelope tree

- update smtpctl.8 to reflect reality
- bring back 'smtpctl schedule' and 'smtpctl remove' to life

Things you should know:

The ramqueue data structure is not finished yet and lacks an envelope tree
for evpid lookups. I wanted to wait until I'm done but too many people are
affected by not being able to reschedule envelopes, this is a quick fix.

So right now there's an O(rrible) complexity as both commands will perform
a (possibly aborted) queue scan leading to O(n). I will make that O(log n)
soon.

Also, smtpctl remove no longer supports removing an entire message, I will
fix that very soon too.

show more ...


# d14a0a43 13-Apr-2011 gilles <gilles@openbsd.org>

following an idea from jacekm@, smtpd now uses a ram-queue instead of doing
a continuous walk on the disk-queue. the implementation differs from what
jacekm@ commited (and I backed out) a while ago i

following an idea from jacekm@, smtpd now uses a ram-queue instead of doing
a continuous walk on the disk-queue. the implementation differs from what
jacekm@ commited (and I backed out) a while ago in that it uses a queue and
a host tree required for upcoming features.

code will be improved in tree, it requires changes to be done in queue and
bounce API, I just wanted to commit a working version first ...

tested by todd@ and I

show more ...


12