CVSROOT: /cvs Module name: src Changes by: jac...@cvs.openbsd.org 2010/05/31 17:38:56
Modified files: usr.sbin/smtpd : aliases.c client.c control.c enqueue.c expand.c lka.c log.c map.c mda.c mfa.c mta.c parse.y parser.c parser.h queue.c smtp.c smtp_session.c smtpctl.8 smtpctl.c smtpd.c smtpd.h ssl.c util.c usr.sbin/smtpd/smtpctl: Makefile usr.sbin/smtpd/smtpd: Makefile Added files: usr.sbin/smtpd : queue_backend.c queue_backend.h Removed files: usr.sbin/smtpd : bounce.c queue_shared.c runner.c Log message: Rewrite entire queue code. Major goals: 1) Fix bad performance caused by the runner process doing full queue read in 1s intervals. My Soekris can now happily accept >50 msg/s while having multi-thousand queue; before, one hundred queue would bring the system to its knees. 2) Introduce Qmail-like scheduler that doesn't write as much to the disk so that it needs less code for servicing error conditions, which in some places can be tricky to get right. 3) Introduce separation between the scheduler and the backend; these two queue aspects shouldn't be too tied too each other. This means that eg. storing queue in SQL requires rewrite of just queue_backend.c. 4) Make on-disk queue format architecture independent, and more easily extensible, to reduce number of flag days in the future. Minor goals: ENOSPC no longer prevents delivery attempts, fixed session limiting for relayed mail, improved batching of "relay via" mails, human-readable mailq output, "show queue raw" command, clearer logging, sending of single bounce about multiple recipients, exact delay= computation, zero delay between deliveries while within session limit (currently 1s delay between re-scheduling is enforced), mta no longer requests content fd, corrected session limit for bounce submissions, tiny <100B queue files instead of multi-KB, detect loops before accepting mail, reduce traffic on imsg channels by killing enormous struct submit_status.