-# $queue_size
-#
-exim -bd -DSERVER=server -oX PORT_D
+# daemon: re-exec on SIGHUP
+exim -DSERVER=server -bd -oX PORT_D -oP DIR/spool/exim-daemon.pid
****
-#
-exim a@test.ex
+millisleep 500
+sudo perl
+open(PID, "DIR/spool/exim-daemon.pid");
+chomp($daemon_pid = <PID>);
+close(PID);
+system("kill -HUP $daemon_pid");
****
-exim a@test.ex
-****
-exim a@test.ex
-Subject: msg 3
-****
-sleep 4
-exim a@test.ex
-Subject: msg 4
-****
-#
+sleep 1
killdaemon
-no_msglog_check