summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/util.c
AgeCommit message (Expand)Author
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
2013-12-26bcopy -> memmoveEric Faurot
2013-11-28unsigned char casts for ctypeEric Faurot
2013-11-19Allow '*' in the user part of mailaddresses. By default, potentially dangerousEric Faurot
2013-10-29use "/etc/mail/mailname" instead of "/etc/mailname" and make it a define.Eric Faurot
2013-10-29randomize counter part of generated uidsEric Faurot
2013-10-27use log_* functions instead of err*/warn*Eric Faurot
2013-10-25local enqueuer improvements:Eric Faurot
2013-07-19add '!' in email addresses supported charsetEric Faurot
2013-07-19Introduce expand string modifiersEric Faurot
2013-07-19get rid of sa_set_port() and its awfully contorted implementationEric Faurot
2013-05-24sync with OpenSMTPD 5.3.2Eric Faurot
2013-04-12replace MAX_LINE_SIZE and SMTP_LINE_MAX with SMTPD_MAXLINESIZE forEric Faurot