summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/log.c
diff options
context:
space:
mode:
authorjacekm <jacekm@openbsd.org>2010-05-31 23:38:56 +0000
committerjacekm <jacekm@openbsd.org>2010-05-31 23:38:56 +0000
commit362d6eb9adf469e94cb84d7a17919b9a099fb2bb (patch)
tree9d14308a676448d266b8edd7673a2c328a327da7 /usr.sbin/smtpd/log.c
parentimsg_compose_event() return value was never checked. Make it fatal() if needed. (diff)
downloadwireguard-openbsd-362d6eb9adf469e94cb84d7a17919b9a099fb2bb.tar.xz
wireguard-openbsd-362d6eb9adf469e94cb84d7a17919b9a099fb2bb.zip
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();
}