summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
AgeCommit message (Collapse)Author
2018-04-09Check for legitimate IPv4, IPv6 addrs before printing.Sunil Nimmagadda
Ryan Kavanagh reported on github that certain domains have misconfigured SPF records. https://github.com/OpenSMTPD/OpenSMTPD/issues/844 Ok millert@ gilles@
2018-03-14bump minor version just to be sure it makes release :-)Gilles Chehade
ok gilles@
2018-03-14newaliases is so 70s, very tied to the 'db' table backend (which has notGilles Chehade
been the default for a long time now) but users still assume this is the way to update aliases within the MTA. when smtpctl is invoked as newaliases, have it notify the daemon that it has had the aliases table updated, no matter what backend it uses, as it will at worst be a noop and at best do what user expected. ok eric@
2018-03-14Message-Id header is not added if sent over submission port because theGilles Chehade
port is stored in the listener structure using the network order. ok eric@
2018-03-14skip spf mechanisms that have been processed already.Eric Faurot
prevent possible loops on badly configured spf records. ok gilles@
2018-03-07rfc4954 provides more than one method to submit the same credentials and inGilles Chehade
a recent cleanup we accidentally removed one of the ways breaking some .net lib apparently, sorry. this commit reintroduces the "pass password in the same line as username" method ok millert@
2018-03-07check for expected record typeOtto Moerbeek
ok deraadt@ mestre@ gilles@
2018-03-04remove unnecessary headerGilles Chehade
2018-02-16bump max line length to 16K for incoming mail.Eric Faurot
SMTP commands are still limited to LINE_MAX. ok gilles@
2018-02-09isolate calls to the rfc2822 parser and handling of "." in smtp_dataline()Eric Faurot
ok gilles@
2018-01-30regroup some commands in a more logical way;Jason McIntyre
ok sunil gilles
2018-01-30don't reject smtp responses containing non-printable chars as longEric Faurot
as the status is valid. use strnvis() for displaying status lines in "smtpctl show queue". ok gilles@ sunil@
2018-01-27Avoid passing NULL to vprintf() by assigning a name to client processes. Whileanton
here rework the switch proc_title(), both clang and gcc will now warn if all possible values are not enumerated. ok gilles@
2018-01-26allow unpriviledged user to run "encrypt" and "spf walk"Eric Faurot
ok todd@, gilles@, sunil@
2018-01-22Add support for 'a:' and 'exists:' mechanisms.Okan Demirmen
ok gilles@
2018-01-15fix parsing of RDATA for TXT recordsEric Faurot
ok gilles@
2018-01-11fix parsing of long TXT records, this prevents 'smtpctl spf walk' fromGilles Chehade
producing bogus entries with some SPF records. ok ajacoutot@
2018-01-06tweak previous;Jason McIntyre
2018-01-06Import gilles@'s standalone spfwalk utility into smtpctl(8) asSunil Nimmagadda
'spf walk' command. Ok gilles@
2018-01-06Move unpack functions into a seperate file.Sunil Nimmagadda
Required for upcoming 'smtpctl spf walk'. Ok eric@ gilles@ millert@
2018-01-03Use crypt_checkpass(3) instead of crypt(3).Sunil Nimmagadda
Based on a diff from Edgar Pettijohn. Ok gilles@ eric@
2018-01-02we haven't updated the version in a while despite many commits which isGilles Chehade
confusing for people running the portable version
2017-11-27Show correct command execution status by checking against updateSunil Nimmagadda
operation return value. Issue reported by 'Zelest' (Jesper Wallin). Suggestions and ok eric@ gilles@.
2017-11-23simplify imsg handler.Eric Faurot
ok sunil@ gilles@
2017-11-21no need to check the sending process in imsg handlers when there is noEric Faurot
ambiguity: just use a single switch. ok gilles@ sunil@
2017-11-18merge the masquerade and missing domain header callbacks into one function.Eric Faurot
ok gilles@
2017-10-20When adding a missing "Date" header, use the same timestamp as the "Received"Eric Faurot
header for consistency. ok gilles@
2017-10-19remove useless initialisationEric Faurot
2017-10-10Use clock_gettime(CLOCK_REALTIME) instead of gettimeofday+TIMEVAL_TO_TIMESPECPhilip Guenther
ok jung@
2017-09-15move the envelope handling code to its own function to clarify theEric Faurot
imsg dispatch function. ok gilles@
2017-09-11remove dead code.Eric Faurot
ok gilles@
2017-09-08remove more filter-related cruftEric Faurot
ok gilles@
2017-09-08use plain values for transaction error codes rather than a bitmask.Eric Faurot
rename ill-named "msgflags" to "error" while there. ok gilles@
2017-09-01more code cleanup after filter removalEric Faurot
ok gilles@
2017-09-01the wait_filter_data session set is now pointlessEric Faurot
2017-08-30unused fileEric Faurot
2017-08-30rename smtp_filter_fd() to smtp_message_fd() and cleanup code.Eric Faurot
ok gilles@
2017-08-30rename functionEric Faurot
2017-08-30remove smtp_filter_*() indirections.Eric Faurot
ok gilles@
2017-08-29Change the table parser logic. If the table is untyped, determineEric Faurot
its type by examining the first entry: if it contains a separator, type is "mapping", otherwise type is "list". All entries are then parsed according to the table type. The "list" type can also be forced by using the "@list" directive in a comment. This allows to define list of entries containing a separator. Also, log parse errors. ok gilles@
2017-08-2865535 is a valid port to listen on.Florian Obser
Off-by-one pointed out by and diff from Kris Katterjohn katterjohn AT gmail, thanks! chris@ pointed out that more than httpd(8) is effected. OK gilles@
2017-08-14remove useless indirection for reading the file contentEric Faurot
ok gilles@
2017-08-13bypass the filter code for incoming smtp sessions.Eric Faurot
experimental support for filters has been removed from the config parser already, and we want to get rid of the remaining code. ok gilles@
2017-08-09add mail.mda MDA in charge of running a third-party MDA, not linked yetGilles Chehade
2017-08-09at the exception of mail.local, smtpd never executes an MDA as root.Gilles Chehade
the check is performed daemon-side before even forking the child process, but let's also check euid in the mda we ship in case someone executes them by hand and needs to see an explicit error message.
2017-08-06a long time ago, we made a change to the format of envelopes and introducedGilles Chehade
a function to upgrade from v1 to v2 on the fly. this was meant to stay just for the transition in one release. 3 years and 8 months later, it's finally time we remove it ;-) ok eric@, sunil@
2017-08-04the PURGE_EVERYTHING flag used to purge config bits was inaccurateGilles Chehade
ok eric@
2017-07-31handle empty output correctly in mda_getlastline()Gilles Chehade
diff from Casper Ti. Vector, ok eric@
2017-07-31cmd_dump() is unusedGilles Chehade
spotted by deraadt
2017-07-27smtpctl(8): Use an int to determine mode instead of __progname.Sunil Nimmagadda
Ok millert@ gilles@