freebsd-dev/etc/periodic/daily
Brian Somers cd3384a7ec Adjust the mail reject output so that it gives an abreviated reason for the
reject.  For example:

Checking for rejected mail hosts:
  48 getherbalnow.info (451... resolve)
  46 absorb.com (451... resolve)
   4 tgmart01.codns.com (553... exist)
   3 kali.com.cn (451... resolve)
   2 genie.com (451... resolve)
   1 zv.qy (553... exist)
   1 zd.hinet.hr (553... exist)
   ....

The bit in parenthesis is the reject code and the last word on the line -
enough to give the admin a better chance of seeing real problems (hopefully!).

While I'm here, remove the "<" at the start of rejects coming from "from"
addresses without a name@ part.

I had to rewrite the patch given by the submitter as this script has been
sed'ified (used to be perl) and I think the reject code is useful....

PR:		17377
Idea from:	root at ns dot internet dot dk
MFC after:	7 days
2005-01-11 02:08:53 +00:00
..
100.clean-disks Fixed typo. 2001-04-25 12:11:54 +00:00
110.clean-tmps Don't remove empty dirs if their names are in $daily_clean_tmps_ignore 2004-02-28 04:58:40 +00:00
120.clean-preserve Another overhaul of the periodic stuff. 2000-09-14 17:19:15 +00:00
130.clean-msgs Another overhaul of the periodic stuff. 2000-09-14 17:19:15 +00:00
140.clean-rwho Another overhaul of the periodic stuff. 2000-09-14 17:19:15 +00:00
150.clean-hoststat Use hoststat/purgestat instead of sendmail -bh/-bH so the calls can 2004-01-02 18:50:22 +00:00
200.backup-passwd After further discussion on -CURRENT, some people (jhb) do not like 2001-11-14 09:30:01 +00:00
210.backup-aliases Another overhaul of the periodic stuff. 2000-09-14 17:19:15 +00:00
300.calendar Another overhaul of the periodic stuff. 2000-09-14 17:19:15 +00:00
310.accounting Default daily_accounting_flags to -q. I thought this was a typo in the 2001-05-30 20:23:43 +00:00
330.news Another overhaul of the periodic stuff. 2000-09-14 17:19:15 +00:00
400.status-disks Set rc=1 rather than 0 so that setting daily_show_success=YES masks 2002-02-13 19:10:07 +00:00
405.status-ata-raid Add status checking of ATA raid to the daily periodic scripts. 2003-10-27 20:14:53 +00:00
420.status-network Another overhaul of the periodic stuff. 2000-09-14 17:19:15 +00:00
430.status-rwho Another overhaul of the periodic stuff. 2000-09-14 17:19:15 +00:00
440.status-mailq Avoid using perl in the periodic & security scripts. This brings the 2002-12-07 23:37:44 +00:00
450.status-security Return 3 unless $daily_status_security_enable != YES. 2002-05-17 11:31:45 +00:00
460.status-mail-rejects Adjust the mail reject output so that it gives an abreviated reason for the 2005-01-11 02:08:53 +00:00
470.status-named Use %e in the date(1) format string to eliminate the sed(1) command. 2003-11-07 21:55:35 +00:00
500.queuerun Update mail queue related periodic scripts to account for sendmail 8.12's 2002-04-10 03:58:40 +00:00
999.local Small adjustment to whitespace in output 2001-06-01 16:40:57 +00:00
Makefile Add status checking of ATA raid to the daily periodic scripts. 2003-10-27 20:14:53 +00:00