Browse Source

Delete invocation of mailq(1) that was present for historical reasons.

On a real mailserver, it's too noisy and may be a privacy concern.
On a machine that's not a mailserver, it's pointless.
Besides, Theo points out that running subsystems that potentially
parse untrusted user data daily, at a predictable time, as root
is not a very good idea in the first place.
Suggested by millert@; gilles@ matthieu@ deraadt@ sthen@ agree
OPENBSD_6_0
schwarze 8 years ago
parent
commit
eaa15c0de5
1 changed files with 1 additions and 8 deletions
  1. +1
    -8
      src/etc/daily

+ 1
- 8
src/etc/daily View File

@ -1,5 +1,5 @@
#
# $OpenBSD: daily,v 1.87 2016/04/01 08:20:27 ajacoutot Exp $
# $OpenBSD: daily,v 1.88 2016/04/29 13:05:33 schwarze Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
# For local additions, create the file /etc/daily.local.
@ -140,13 +140,6 @@ else
dump w | grep -vB1 ^Dump
fi
# The first two regular expressions handle sendmail, the third postfix.
# When the queue is empty, smtpd(8) and exim -bp keep silent.
next_part "mail:"
mailq | grep -v -e "^/var/spool/mqueue is empty$" \
-e "^[[:blank:]]*Total requests: 0$" \
-e "^Mail queue is empty$"
next_part "network:"
if [ "X$VERBOSESTATUS" != X0 ]; then
netstat -ivn


Loading…
Cancel
Save