summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/mda.c
AgeCommit message (Expand)Author
2021-05-26replaces calls to err(3)/errx(3) with fatal()/fatalx() from log.cEric Faurot
2019-10-03no need to set n to 0 right before assigning it ret value from io_printf()Gilles Chehade
2019-10-03make it obvious we don't care about text_to_mailaddr() return values, we'veGilles Chehade
2019-08-10improve level of details when logging mda errors that happen while we're inGilles Chehade
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-01-05we assumed that there was no such thing as an "mda session" so the logsGilles Chehade
2018-12-27extract subaddress from last resolved node, not from dest or rcpt addressGilles Chehade
2018-10-30in mda.c, when reading the last line of an mda, we should never have a \nGilles Chehade
2018-09-04upon mda failure, smtpd would assume tempfail and retry. this is at oddsGilles Chehade
2018-07-08remove 'event=' from logs it doesn't carry any informationGilles Chehade
2018-05-31remove 'where' parameter from all x*() functions in utils.c, it doesn'tGilles Chehade
2018-05-24switch smtpd to new grammarGilles Chehade
2018-04-28remove left-over comma from log messageGilles Chehade
2018-04-25Return-Path should be in brackets as per RFC5322Gilles Chehade
2017-11-21no need to check the sending process in imsg handlers when there is noEric Faurot
2017-07-31handle empty output correctly in mda_getlastline()Gilles Chehade
2016-11-30hide internal io flags and rename IO_PAUSE_{IN,OUT} to IO_{IN,OUT}Eric Faurot
2016-11-30make struct io opaque:Eric Faurot
2016-11-24add an io_error() accessor to avoid dereferencing the io struct directly.Eric Faurot
2016-11-21replace calls to iobuf_*() functions with the corresponding io_*() wrappers.Eric Faurot
2016-11-20add dedicated functions to set fd and callback on a struct io.Eric Faurot
2016-11-16pass the user pointer as parameter to the io callback instead of havingEric Faurot
2016-09-01zap dead codeEric Faurot
2016-05-22start work on improving the log format, this is work in progress but it'llGilles Chehade
2016-03-25Nuke session_socket_blockmode() and session_socket_linger(). UseKenneth R Westerback
2016-02-02Check imsg data size before use.Sunil Nimmagadda
2016-01-08Add missing space in "Delivered-to:%s\n" header.Christopher Zimmermann
2015-12-14Wrap long lines.Sunil Nimmagadda
2015-11-30handle "mda command too long" as a tempfailGilles Chehade
2015-11-30While delivering to lmtp or mda, accept optional "as user" parameterSunil Nimmagadda
2015-10-27add a rcpt-to parameter to be able to use the original (probably expanded)Joerg Jung
2015-10-26avoid a potential double freeJonathan Gray
2015-10-11Convert some fgetln to getline.Sunil Nimmagadda
2015-01-20use <limits.h> comprehensively. For now try to push <> includes toTheo de Raadt
2015-01-05some third-party mda require a prepended From separator line, so remove theGilles Chehade
2014-07-08fix typos.Igor Sobrado
2014-04-30when using maildir, do not create automatically create folders to match tagGilles Chehade
2014-04-19(void) cast snprintf calls that cannot truncate or for which earlier checksGilles Chehade
2014-04-19add missing checks to strlcpy() when copying envelope "destination" bufferGilles Chehade
2014-04-04Merge the mda, mta and smtp processes into a single unprivilegedEric Faurot
2014-02-04Add support for DSN and Enhanced Status CodeEric Faurot
2014-02-04internal improvements and cleanupsEric Faurot
2013-12-26bcopy -> memmoveEric Faurot
2013-11-28unsigned char casts for ctypeEric Faurot
2013-11-20Rework the mda and scheduler to use the holdq mechanism instead ofEric Faurot
2013-10-28bzero() some structs before using them, to be safe.Eric Faurot
2013-10-27Create the control socket in the parent process to abort early ifEric Faurot
2013-10-26%i -> %d in format stringsEric Faurot
2013-07-19scheduler improvements:Eric Faurot
2013-07-19Get rid of env->sc_pw and env->sc_pwqueue. Early queue initializationEric Faurot