summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/util.c
AgeCommit message (Expand)Author
2021-06-14add required headers for smtpd.h and remove unnecessary ones in other files.Eric Faurot
2021-03-31turn log_trace() into a macro to prevent evaluating the format stringEric Faurot
2020-11-29Sync bsnprintf() with ldapd/util.c r1.13Theo Buehler
2020-02-24Cast argument of ctype(3) macros to unsigned char, not int.Todd C. Miller
2019-10-03fix memory leak in error code pathGilles Chehade
2019-09-30Allow maildir and mbox MDAs to tempfail on situations that might beMartijn van Duren
2019-09-29SRS uses base64 encoding for the checksum, however while this is ok when weGilles Chehade
2019-08-28change valid_domainname() to accept a trailing dot.Eric Faurot
2019-08-23martijn@ found a regression so revert to the old behavior for nowEric Faurot
2019-08-23res_hnok() is too lenient wrt to acceptable domain name in mail addresses.Eric Faurot
2019-08-10enforce domain length check in valid_domainpart(), checking it in caller isGilles Chehade
2019-08-10valid_domainpart() uses res_hnok() internally which considers the hostnamesGilles Chehade
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.Theo de Raadt
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-01-30missed in previous revert, function not called anymoreGilles Chehade
2019-01-30don't be too strict with .forward permissions, it's ok to process it if theGilles Chehade
2018-10-31add helper valid_smtp_response() to be used in upcoming commitsGilles Chehade
2018-09-02mailaddr matching was working for the exact and domain match, but not whenGilles Chehade
2018-05-31remove 'where' parameter from all x*() functions in utils.c, it doesn'tGilles Chehade
2018-05-29provide mail user agents with the same environments as PostfixGilles Chehade
2018-04-26sync log.h with other daemonsEric Faurot
2018-01-30don't reject smtp responses containing non-printable chars as longEric Faurot
2017-01-09Stop accessing verbose and debug variables from log.c directly.Reyk Floeter
2017-01-09smtpd joins the 7 other daemons that share the same log.c file.Reyk Floeter
2016-11-30remove unused iobuf helpersEric Faurot
2016-11-17Add io api functions for dealing with buffered data, as wrapper aroundEric Faurot
2016-08-31allow overriding the subaddressing delimiter with subaddressing-delimiterGilles Chehade
2016-05-16replace hardcoded + with TAG_CHARGilles Chehade
2016-03-25Nuke session_socket_blockmode() and session_socket_linger(). UseKenneth R Westerback
2016-01-12Let smtpd start on machines without a FQDN as hostname.Sunil Nimmagadda
2015-12-28remove spaces after '!'Joerg Jung
2015-12-14remove trailing whitespaceJoerg Jung
2015-10-17mailaddr_match() allows comparing two struct mailaddr taking into accountGilles Chehade
2015-10-17our strip() function should use isspace()Gilles Chehade
2015-10-12do not umask() [with the wrong umask] around mkstemp() calls, no matterTheo de Raadt
2015-10-10three conversions of fgetln() to getline()Joerg Jung
2015-10-06fix values passed to umask(), they should be octal.Gilles Chehade
2015-10-06fix reallocarray() constructs to always use temporary variableGilles Chehade
2015-10-05actually use lbuf in getmailname()Stefan Sperling
2015-10-02in secure_file(), make uid checking on .forward files more strict to avoidGilles Chehade
2015-08-16when we switch valid_domainpart() from our own logic to using res_hnok() weGilles Chehade
2015-05-06use res_hnok() to valid domain part in valid_domain()Gilles Chehade
2015-01-20use <limits.h> comprehensively. For now try to push <> includes toTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-05-25use reallocarray.Marc Espie
2014-04-19(void) cast a strlcpy that cannot truncateGilles Chehade
2014-02-04extend allowed charset for email address, escape all potentially dangerous ones.Eric Faurot
2014-02-04add base64_encode/base64_decode helpersEric Faurot
2014-02-04get rid of fdlimit()Eric Faurot
2014-01-08ctype cleanup; ok gillesTheo de Raadt