summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
AgeCommit message (Collapse)Author
2018-07-25Implement a generic interface to forward resolver queries to the lkaEric Faurot
process. Use it for the reverse lookups required by smtp and mta. Until now, DNS-related lookups were implemented using ad-hoc IMSGs between the lka and other processes. It turns out to be confusing and difficult to maintain/extend. So we want to replace this with a better set of IMSGs matching the standard resolver interface. ok gilles@
2018-07-25qmail advertizes a size of 0 as "no limit on data", fix SIZE handling inGilles Chehade
mta_session.c spotted by deraadt@ and benno@
2018-07-25delivery to a filename should be in mbox format otherwise it will lack theGilles Chehade
^From separator and corrupt files ok eric@
2018-07-20Now that aliases in smtpd.conf default to plain text files and notTodd C. Miller
db files we don't want to tell people to run makemap instead of newaliases. OK deraadt@ jmc@
2018-07-15remove unused variableGilles Chehade
2018-07-11Do for most running out of memory err() what was done for most runningKenneth R Westerback
out of memory log_warn(). i.e. ("%s", __func__) instead of manual function names and redundant verbiage about which wrapper detected the out of memory condition. ok henning@
2018-07-09No need to mention which memory allocation entry point failed (malloc,Kenneth R Westerback
calloc or strdup), we just need to log that we ran out of memory in a particular function. Recommended by florian@ and deraadt@ ok benno@ henning@ tb@
2018-07-08when rejecting a recipient due to any kind of error related to .forward andGilles Chehade
aliases/virtual expansion, provide a more explicit status in the session. ok millert@
2018-07-08remove 'event=' from logs it doesn't carry any informationGilles Chehade
suggested by eric@, ok millert@
2018-07-07make it more obvious that there was a problem with a .forward file:Gilles Chehade
424 4.2.4 Mailing list expansion problem 524 5.2.4 Mailing list expansion problem postmaster still has to look to logs to understand the real issue but at least it doesn't go unnoticed anymore. ok eric@
2018-07-05further tweak the introductory text; ok gillesJason McIntyre
2018-07-04"proto" is optional; from matthew martinJason McIntyre
ok gilles
2018-07-03unbreak newaliases.mortimer
ok millert@
2018-06-28Don't ignore -n; OK gilles@Tim van der Molen
2018-06-21- various tweaks to try to make DESCRIPTION read betterJason McIntyre
- try to avoid muddling "reserved words" and "keywords" ok gilles
2018-06-18simplify parse_config() further so it no longer has any side effect outsideGilles Chehade
of parse.y, there's still work to be done but it's now able to run twice if we want (we don't) without failing due to some global side-effect. ok millert@
2018-06-18split smtp_accept() in two parts: the accept part, the session init part,Gilles Chehade
while at it allow smtp_session() to receive a pre-allocated struct io ok millert@ diff contributed by Antoine Kaufmann
2018-06-18upfront, explain action/match, since it is central to how the new config works;Jason McIntyre
help/ok gilles
2018-06-16rework the table API so that it takes a struct smtpd * context in parameterGilles Chehade
of functions creating, looking up or destroying tables. this is a first step in cleaning up parse.y so it doesn't have side effects outside of parse_config(), bringing nothing but making code cleaner. ok millert@
2018-06-15the %{sender} variable should expand to the MAIL FROM address, so in theGilles Chehade
case of a mailer daemon, this is an empty string, not '@' introduce %{mbox.from} which is the From separator line representation of a sender, usually an email address or MAILER-DAEMON if sender is empty ok eric@
2018-06-13various clarifications for the auth/ca/pki/cert stuff;Jason McIntyre
ok gilles, who obtains The Order Of Patience
2018-06-09parse SIZE advertisementEric Faurot
2018-06-07remove unused flags and obsolete commentsEric Faurot
ok gilles@
2018-06-07use RELAY_* flags where appropriateEric Faurot
ok gilles@
2018-06-07simplify the codepath for backup relay setupEric Faurot
ok gilles@
2018-06-06code cleanupEric Faurot
ok gilles@ semarie@
2018-06-06remove fields that are found in struct dispatcher from struct relayhostEric Faurot
ok gilles@
2018-06-05remove struct relayhost from struct envelope.Eric Faurot
ok gilles@
2018-06-05document "match tag"; ok gillesJason McIntyre
2018-06-04honor SIZE extension when advertised by peerGilles Chehade
ok millert@
2018-06-04for "match", document that envelopes that do not match anything are rejected,Jason McIntyre
and that rules are evaluated sequentially, first match wins; ok gilles
2018-06-04tweak previous;Jason McIntyre
2018-06-04add support for mda wrappers allowing postmaster to define command wrappersGilles Chehade
that will be executed (with recipient privileges) before calling the users' mail delivery agent ok eric@
2018-06-04tweak the text of the relaying example: make it clear that the exampleJason McIntyre
allows delivery as well as relaying (for authenticated users), and that passing to an external mda is possible, but not required; ok gilles
2018-06-04"match auth" matches transactions that *have been* authenticated;Jason McIntyre
ok gilles
2018-06-03split forkmda() in two:Gilles Chehade
- forkmda() creates the process that will be used for the delivery and does the switching of privileges then calls mda_unpriv() - mda_unpriv() runs with privileges of the recipient, it expands variables, sets up environment and executes the mda ok millert@ and eric@
2018-06-02restore one set of quotes i shouldn;t have removed;Jason McIntyre
from ingo feinerer
2018-06-01reorder pki grammar, no functional changeGilles Chehade
2018-06-01instead of using 'set queue XXX' 'set mta XXX' 'set mda XXX' to set optionGilles Chehade
XXX on the relevant component, just drop the keyword 'set', it does not do anything useful and makes config directives longer. while at it, instead of having 'limit' as a main keyword, make it an option on components. and also while at it, do cleanup parse.y a bit ok millert@
2018-06-01when peer advertises SIZE, keep track of it in the sessionGilles Chehade
this will later allow _not_ sending messages when we know they will be rejected at commit time ok eric@
2018-06-01document that keywords have to be quoted when used additionally as argumentJason McIntyre
names, and remove any unneccessary quoting from the existing examples; ok gilles
2018-06-01Require a valid certificate by default when relaying through a smarthost.Eric Faurot
Add "tls no-verify" relay option to disable it. suggested and initial diff by semarie@. ok gilles@
2018-05-31remove 'where' parameter from all x*() functions in utils.c, it doesn'tGilles Chehade
really help us with anything, propagate the change in codebase ok millert@
2018-05-31- Replace virtual(5) reference by table(5) as virtual table format isGilles Chehade
documentation in table(5) man page under "Aliasing tables" section. - Add "auth <table>" documentation. Example at end of the man page uses it, so it should be documented. diff from Sebastien Marie
2018-05-31simplifyEric Faurot
ok gilles@
2018-05-30cosmethic change, shuffle smtpd specific grammar bits _after_ the ones thatGilles Chehade
make sense to others
2018-05-30when path is too long, display it in error messageGilles Chehade
suggested by millert@
2018-05-30consistent casing;Jason McIntyre
2018-05-30tweak previous;Jason McIntyre
2018-05-30teach mail.maildir how to junk mails if -j option is set and X-Spam isGilles Chehade
positive, this can be enabled with the 'junk' option in maildir action ok eric@