summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/util.c
AgeCommit message (Expand)Author
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
2013-02-05- handle getaddrinfo() error as LKA_TEMPFAILGilles Chehade
2013-01-31assorted fixes spotted by Coverity.Eric Faurot
2013-01-26Sync with our smtpd repo:Gilles Chehade
2012-11-23knfEric Faurot
2012-11-12Cleanups and improvements:Eric Faurot
2012-10-10teach smtpctl how to display envelopes and messages using their id.Gilles Chehade
2012-10-07convert iobuf_queue()'s to iobuf_fqueue(). (idea from gilles@)Charles Longeau
2012-10-04change to from=<...>, to=<...> instead of to=<...> for loggingTodd T. Fries
2012-09-26Stop using the delivery_data union (field "to") in delivery_mda.Eric Faurot
2012-09-26log final user and method used for local deliveries.Eric Faurot
2012-09-25need inttypes.hEric Faurot
2012-09-21Add a log_envelope() function that log envelope status in a uniform way.Eric Faurot
2012-09-21Move ruleset_match() prototype to smtpd.h and make the envelope const.Eric Faurot
2012-09-20constify parameters that are supposed to be const.Eric Faurot
2012-09-18- add xmemdup() helper.Eric Faurot