summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
AgeCommit message (Collapse)Author
2018-11-16add missing imsg namesEric Faurot
2018-11-16when using smtps, tls initialisation must occur after FILTER_CONNECTEDEric Faurot
has been evaluated. ok gilles@
2018-11-12simplify code for resolver_getnaimeinfo()Eric Faurot
ok gilles@
2018-11-11Fix resolver_getaddrinfo(): use NULL strings in underlying messagesEric Faurot
where appropriate and add missing check before freeaddrinfo(). This code path is currently unused.
2018-11-11accept NULL as a valid string in the proc message formating api.Eric Faurot
ok gilles@
2018-11-08introduce smtp-in keyword in grammar so we can report smtp-in and smtp-outGilles Chehade
events with less ambiguity ok eric@
2018-11-08when reporting tx events, report tx idGilles Chehade
when reporting tx commit, report data size report tx-envelope events
2018-11-08add protocol version to report lines and reorder timestampGilles Chehade
2018-11-07report "." as a protocol-client event, it is the commit command, not reallyGilles Chehade
part of DATA
2018-11-03hostnames are case-sensitive of course...Gilles Chehade
2018-11-03we no longer need smtpf_session.cGilles Chehade
2018-11-03s->filter_phase and s->filter_param must be assigned earlierGilles Chehade
2018-11-03only apply filter rules to filtered interfacesGilles Chehade
2018-11-03check-rdns builtin filter, to be improvedGilles Chehade
2018-11-03bring plumbing for proc filtersGilles Chehade
ok millert@, eric@, jung@
2018-11-03bring plumbing for builtin filtersGilles Chehade
ok millert@, eric@, jung@
2018-11-03remove log_debugGilles Chehade
2018-11-02report rDNS in link connect eventGilles Chehade
2018-11-02smtp_report_link_connect() should be called from smtp_connected()Gilles Chehade
2018-11-02when reporting smtp-in link-connect event, report src and dest port tooGilles Chehade
2018-11-02pass struct sockaddr_storage instead of ss_to_text() in reportingGilles Chehade
2018-11-02report connection event earlierGilles Chehade
2018-11-02in-smtp -> smtp-in in reporting protocolGilles Chehade
2018-11-02add REG_NOSUB to flags in regcompileGilles Chehade
suggested by jung@
2018-11-01log_warn() -> log_warnx() and only display warning that running commandsGilles Chehade
from aliases is dangerous if expand node is EXPAND_FILTER
2018-11-01teach smtp process how to report smtp events to lka and teach lka how toGilles Chehade
report these events to a proc ok millert@
2018-11-01introduce K_REGEX table type and table_regex_match(), unused for nowGilles Chehade
ok eric@
2018-11-01allow smtpd to fork processes at startup and maintain a socketpair withGilles Chehade
them. ok jung@, eric@
2018-11-01- odd condition/test in PF lexerAlexandr Nedvedicky
(and other lexers too) This commit rectifies earlier change: in the lex... even inside quotes, a \ followed by space or tab should expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). OK deraadt@, OK millert@
2018-10-31smtp_tx_mail_from() and smtp_tx_rcpt_to() should take a const char *lineGilles Chehade
2018-10-31set a banner_sent flag in a session when banner was sent, this is noop asGilles Chehade
of now but will reduce an upcoming diff
2018-10-31add helper valid_smtp_response() to be used in upcoming commitsGilles Chehade
2018-10-31in rule_to_text(), use "tls" not "starttls"Gilles Chehade
2018-10-31log tls events as "tls" not "starttls" it has confused peopleGilles Chehade
2018-10-30in mda.c, when reading the last line of an mda, we should never have a \nGilles Chehade
in the buffer, however better be safe than sorry, add VIS_NL to strnvis() flags because a \n would corrupt an envelope. while debugging an issue from Jason Donenfeld, this appears as a safety-net ok eric@
2018-10-24missing headerGilles Chehade
2018-10-24replace EFTYPE with EINVAL which is a both a better errno AND more portableGilles Chehade
ok eric@
2018-10-21do not consider connect() errors as permfail in the lmtp mdaGilles Chehade
issue spotted and fix tested by Atanas Vladimirov <vlado@bsdbg.net>
2018-10-15in spfwalk, search both A and AAAA records when "a" is used in an spf txtGilles Chehade
record. spotted, reported and diff by Tim Kuijsten <info@netsend.nl>
2018-10-08typo; ok jmc@ deraadt@miko
2018-10-03remove unused filesEric Faurot
2018-10-03correctly handle "+a:..." entriesEric Faurot
from gilles@ ok otto@ gilles@
2018-09-26treat NOTIMP as NO_DATA in response to MX query: fallback to hostname lookupEric Faurot
instead of bouncing the mail. ok gilles@
2018-09-24Allow to use the "tls" keyword on any relay action to force TLS, withEric Faurot
strict certificate validation. The "no-verify" becomes optional. ok gilles@ millert@ semarie@
2018-09-20properly handle credentials and fix auth in smtp(1)Eric Faurot
ok gilles@
2018-09-20fix indentationEric Faurot
2018-09-19rename the ill-named "flags" member to "as_host" in domain structure.Eric Faurot
remove yet another useless relay flag while there. ok gilles@
2018-09-18ellapsed -> elapsed; ok jmc@miko
2018-09-17simplify code path for backup relay and remove useless flagEric Faurot
ok gilles@
2018-09-10tweak the table commands somewhat; ok gillesJason McIntyre