summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtp_session.c
AgeCommit message (Expand)Author
2009-05-14use the nitems() macro where appropriateEric Faurot
2009-05-14correct function name in fatalJacek Masiulaniec
2009-05-10use both read and write timeout arguments in the bufferevent_settimeoutJacek Masiulaniec
2009-05-10use rfc number 4954 in auth_plain handler name, rfc 4616 is impliedJacek Masiulaniec
2009-05-10assert copyright; ok gilles@Jacek Masiulaniec
2009-05-10RFC 4954 says the response to "AUTH PLAIN" must be "334 ", not "334";Jacek Masiulaniec
2009-05-09correct AUTH PLAIN rfc number, no functional change.Jacek Masiulaniec
2009-05-09give few states more meaningful names; ok gilles@Jacek Masiulaniec
2009-05-09fix function names in log_debugJacek Masiulaniec
2009-04-28don't use strlcpy before calling a function that uses strlcpyJacek Masiulaniec
2009-04-28make S_DATAREQUEST state similar to S_{MAIL,RCPT}REQUEST; ok gilles@Jacek Masiulaniec
2009-04-27kill 2-line session_msg_submit, used just once; ok gilles@ long ago.Jacek Masiulaniec
2009-04-27session_cleanup call in MAIL FROM handler may be removed as aJacek Masiulaniec
2009-04-27Disable EV_READ when setting F_QUIT flag up. Malicious client mayJacek Masiulaniec
2009-04-24in session_pickup, do not handle S_RCPT state, it must never beJacek Masiulaniec
2009-04-24Enclose common imsg handling code in a function, which additionallyJacek Masiulaniec
2009-04-24use same timeout at each session state, and make use ofJacek Masiulaniec
2009-04-24kill unnecessary struct message_recipient; ok gilles@Jacek Masiulaniec
2009-04-20Allow MAIL FROM only in the S_HELO state, which results in behaviourJacek Masiulaniec
2009-04-20fix previous, evtimer_set should be called only once, in session_init.Jacek Masiulaniec
2009-04-20Rewrite smtp session timeouts; use evtimer_* from event(3) insteadJacek Masiulaniec
2009-04-19Wrap the EV_READ+EVLOCKED dance in one well documented function.Jacek Masiulaniec
2009-04-16Total rewrite of the sendmail interface. Adds support for -t, -v,Jacek Masiulaniec
2009-04-09fixes for smtp auth LOGIN, inspired from smtp auth PLAIN fixesTodd T. Fries
2009-04-09change syntax of the "listen on" and "relay via" directives:Jacek Masiulaniec
2009-03-15since we are going to share code in smtp sessions and mta sessions, we needGilles Chehade
2009-03-15save 4 bytes per message by moving the datafp field of struct message toGilles Chehade
2009-03-11fix log_info(), while other processes know about message uid, the smtpGilles Chehade
2009-03-10implement basic logging, needs more work; ok gilles@Jacek Masiulaniec
2009-03-08shrink struct message a bit by removing a couple fields which are no longerGilles Chehade
2009-02-22put repeated inet_ntop calls into new func ss_to_text, which usesJacek Masiulaniec
2009-02-19don't let libevent buffer long lines forever; ok gilles@Jacek Masiulaniec
2009-02-18previous commit was incomplete, this fixes ssmtpGilles Chehade
2009-02-18smtp_accept() now requests from lka that it performs the hostname lookupGilles Chehade
2009-02-17after a message has been commited to queue, do not incondtionnally clearGilles Chehade
2009-02-13Ensure ss is never dereferenced when NULL. Can't happen with current code,Jacek Masiulaniec
2009-01-30when decreasing ssl related counters, make sure the session was flagged asGilles Chehade
2009-01-30improve statistics for smtp process. not only collect the current sessionsGilles Chehade
2009-01-30clear the F_EVLOCK flag earlier to prevent the error event handler fromGilles Chehade
2009-01-30bump descriptors limit to the max and set the maximum connections count toGilles Chehade
2009-01-30fix a very annoying events masking issue which would cause a fatal() to beGilles Chehade
2009-01-29Implement "smtpctl show stats"; ok gilles@Jacek Masiulaniec
2009-01-29missing prototype for session_respond() in mta, move session_respond()'sGilles Chehade
2009-01-29- remove debug messageGilles Chehade
2009-01-29Received header line was incomplete for mail submitted through the enqueuerGilles Chehade
2009-01-28reuse recipient_to_path; ok gilles@Jacek Masiulaniec
2009-01-28Make races between queue and runner impossible by implementing the policy:Jacek Masiulaniec
2009-01-28add a struct path to struct message so that we can keep track of the RCPTGilles Chehade
2009-01-12dot escaping, as required by rfc; ok gilles@Jacek Masiulaniec
2009-01-04aliases/forwards expansion was not done correctly and a race couldGilles Chehade