summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/log.c
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-05-31 23:38:57 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-05-31 23:38:57 +0000
commitd307483c8c212fa059ff0cd0e59abc3e3d3b2ca3 (patch)
tree39d8b72f5535369d2504027c31822e039f4f731a /usr.sbin/smtpd/log.c
parent591293015f3e6c1412e51ad20d7817e6987a652f (diff)
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.
Diffstat (limited to 'usr.sbin/smtpd/log.c')
-rw-r--r--usr.sbin/smtpd/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/log.c b/usr.sbin/smtpd/log.c
index 47f0e6e2291..50986b6d2c2 100644
--- a/usr.sbin/smtpd/log.c
+++ b/usr.sbin/smtpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.5 2010/05/19 20:57:10 gilles Exp $ */
+/* $OpenBSD: log.c,v 1.6 2010/05/31 23:38:56 jacekm Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -51,7 +51,7 @@ log_init(int n_debug)
verbose = n_debug;
if (!debug)
- openlog(__progname, LOG_PID | LOG_NDELAY, LOG_MAIL);
+ openlog(__progname, LOG_NDELAY, LOG_MAIL);
tzset();
}