summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtp_session.c
AgeCommit message (Expand)Author
2009-08-12Fix unwanted rejects by parsing (and ignoring) AUTH=<...> MAILJacek Masiulaniec
2009-08-08import some changes from portable smtpd to reduce the delta between both.Gilles Chehade
2009-08-07smtp_session: ssl/ssl.h -> openssl/ssl.hGilles Chehade
2009-08-07we were linking to libkeynote to use kn_base64_encode/decode, but honestlyGilles Chehade
2009-08-06in smtp_session, fix logging so that when we accepted an empty envelope forGilles Chehade
2009-08-01when receiving characters with the most significant bit set over a sessionGilles Chehade
2009-07-19fix fwrite return code checking.Jacek Masiulaniec
2009-06-06Sync with relayd:Pierre-Yves Ritschard
2009-06-05make smtpd's imsg lib ready, just like relayd and ospfd.Pierre-Yves Ritschard
2009-06-01display ssl negociation information in the received line of incomingGilles Chehade
2009-05-31when entering mta_connect() reset session fd to -1Gilles Chehade
2009-05-30fix a bug where sessions_active counter, used to compute accept limits, wasGilles Chehade
2009-05-28Log the incoming message size; ok gilles@Jacek Masiulaniec
2009-05-28Log the "for <foo@bar.com>" part in the Received field; ok gilles@Jacek Masiulaniec
2009-05-27Insert Received: at receive time instead of delivery time; ok gilles@Jacek Masiulaniec
2009-05-27After a successful AUTH command completes, reject any further AUTH commands.Jacek Masiulaniec
2009-05-27request flood mitigation:Jacek Masiulaniec
2009-05-25Recent event masking scheme change turned the S_GREETED and S_HELO casesJacek Masiulaniec
2009-05-24Parent process shouldn't be base64-decoding untrusted strings, moveJacek Masiulaniec
2009-05-24Implement pipelining detection inside session_readline, makes the callingJacek Masiulaniec
2009-05-24Instead of keeping stats private to each process, and querying everyJacek Masiulaniec
2009-05-20Delay enabling of EV_READ until S_INIT (smtps) or S_TLS (starttls).Jacek Masiulaniec
2009-05-20first step towards configuration reload in smtpd, smtpctl reload will parseGilles Chehade
2009-05-19Accept STARTTLS only after EHLO; ok gilles@Jacek Masiulaniec
2009-05-19- Don't advertise nor accept STARTTLS command when session is secure.Jacek Masiulaniec
2009-05-18Complete rework of bufferevent event masking allowing for moreJacek Masiulaniec
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