summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtp_session.c
AgeCommit message (Expand)Author
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
2009-01-01remove unnecessary includes; ok gilles@Jacek Masiulaniec
2008-12-22cleanupJacek Masiulaniec
2008-12-22To reset state, it's enough to set s->s_state = S_HELO, rcptcountJacek Masiulaniec
2008-12-21fix session flags resetting; ok gilles@Jacek Masiulaniec
2008-12-21- missing prototype + smtp.c was misusing session_auth_pickup()Gilles Chehade
2008-12-21- AUTH PLAIN may receive credentials as a parameter to AUTH or on aGilles Chehade
2008-12-20- import first bricks of SMTP AUTH support. currently only AUTH PLAIN isGilles Chehade
2008-12-18Introduce safe_fclose, which tries to push file to the disk asJacek Masiulaniec
2008-12-18Declarations for functions used only in smtp_session.c were movedJacek Masiulaniec
2008-12-18Check fwrite return code at DATA stage.Jacek Masiulaniec
2008-12-18Cleanup /incoming before handling each MAIL FROM.Jacek Masiulaniec
2008-12-13IMSG_* namespace cleanup.Jacek Masiulaniec
2008-12-07Disable EV_READ when sending IMSG_PARENT_AUTHENTICATE.Jacek Masiulaniec
2008-12-07Replace evbuffer_add_printf calls with wrapper function, session_respond,Jacek Masiulaniec
2008-12-07Don't check / reset s->s_msg.datafp where its state is obviously known.Jacek Masiulaniec
2008-12-06In session_destroy, use "if (s->s_state >= S_MAIL)", and notJacek Masiulaniec
2008-12-06Don't include <err.h> where log.c API must be used.Jacek Masiulaniec
2008-12-06NULL-ify s_msg.datafp upon fclose unconditionally.Jacek Masiulaniec
2008-12-06evbuffer_readline already strips <CRLF> so that callers don't have to.Jacek Masiulaniec
2008-12-05- cosmethic, no functionnal changeGilles Chehade
2008-12-04- in session_read(), set EV_WRITE if we are going to send a "transactionGilles Chehade
2008-12-04- when in state S_DATACONTENT, do not disable EV_READ if the last line weGilles Chehade
2008-12-04- when doing the session timeout lookup, do not remove the last sessionGilles Chehade
2008-12-04- fix event masking for DATA and make DATA look more like MAIL and RCPTGilles Chehade
2008-12-03- fix event masking issues in smtp process which could lead to a fatal() ifGilles Chehade