summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
AgeCommit message (Collapse)Author
2018-09-07replace malloc()+strlcpy() with strndup() in cmdline_symset().miko
"looks good" gilles@ halex@
2018-09-05rename flagEric Faurot
ok gilles@
2018-09-05rename token to match naming conventionGilles Chehade
ok eric@
2018-09-05some text improvements from matt schwartz; ok gillesJason McIntyre
2018-09-05do not use the literal string "label" as our example label; ok gillesJason McIntyre
2018-09-05rework the text about "label" somewhat for clarity; ok ericJason McIntyre
2018-09-04remove useless session flagEric Faurot
ok gilles@
2018-09-04upon mda failure, smtpd would assume tempfail and retry. this is at oddsGilles Chehade
with the other MTA which assume a permfail unless the exit status is one of a specific set. make smtpd honour the same exit statuses as postfix. note that all errors that occur before the user mda is executed (fork, pipe and related) are still considered tempfail, only errors coming from the mda itself are handled as permfail. this commit is a temporary solution as i believe the SIGCHLD handler is way more complex than it should be and we'll simplify it after 6.4 is out. ok eric@
2018-09-04remove unused flagsEric Faurot
2018-09-03simplify the smtp_command() function by splitting cmd handlers intoGilles Chehade
two sets of functions smtp_check_<verb> and smtp_proceed_<verb>. we use the check functions to validate that verb is acceptable at this point of a session and proceed to actually move the session forward ok eric@
2018-09-03bump max line sizeGilles Chehade
ok eric@
2018-09-03document "wrapper" in the local section; from matt schwartzJason McIntyre
ok gilles while here, fix some spelling at eol whitespace introduced in previous;
2018-09-03use new smarthost syntax in log messageEric Faurot
2018-09-03Update and document syntax for smarthost string in smtpd.conf:Eric Faurot
- the +auth specifier is removed: it is implied by the presence of an auth label in the rest of the string - secure:// is removed: use smtp+tls:// or smtps:// - tls:// is replaced by smtp+tls:// - smtp:// becomes SMTP with opportunistic STARTTLS - smtp+tls:// becomes SMTP with mandatory STARTTLS Adjust your config file accordingly. ok gilles@
2018-09-02mailaddr matching was working for the exact and domain match, but not whenGilles Chehade
only a user-part was supplied. ok millert@ and eric@
2018-09-01properly deal with MAILER-DAEMON sender in LMTPGilles Chehade
reported and fix tested by Mark Kane
2018-09-01clarify the forward-only delivery actionGilles Chehade
2018-09-01sync fatalx() message between smtp_client_{state,response}; ok stsp@ gilles@miko
2018-08-31switch to improved incoming message parser:Eric Faurot
- simpler interface not using callbacks - no hard-coded line length - avoid unnecessary string copy ok gilles@
2018-08-30fix use-after-freeEric Faurot
spotted by jsg@ input from jsg@ miko@
2018-08-29clean up the imsg structure for getnameinfo lookup results.Eric Faurot
fix a crash with ill-configured reverse address. found by jturner@ ok jturner@ gilles@
2018-08-25remove unused headerGilles Chehade
from Freddy Dissaux
2018-08-23import alternative message parser (not used yet).Eric Faurot
2018-08-22Fix a crash when relaying with authentication but auth table is not set.Eric Faurot
found by and ok stsp@
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@