Commit Graph

19 Commits

Author SHA1 Message Date
Brian Somers
b389bf7570 Oops, the < in arg1=< is optional - treat it as such! 2005-01-11 10:54:38 +00:00
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
Brian Somers
ea7e63ea87 Collapse "fgrep | egrep | sed" down to a single sed.
This also trims extraneous commas from domain names.

MFC after:	7 days
2005-01-11 01:47:44 +00:00
Ruslan Ermilov
9ef295f29e Use %e in the date(1) format string to eliminate the sed(1) command. 2003-11-07 21:55:35 +00:00
Giorgos Keramidas
0333ea509d Avoid using perl in the periodic & security scripts. This brings the
base system one step closer to being totally perl-free.

Approved by:	re (jhb)
2002-12-07 23:37:44 +00:00
Brian Somers
ee9336d9b7 Handle .bz2 files created by newsyslog
PR:			37529
Partially submitted by:	Peter Hollaubek <fifteen@inext.hu>
MFC after:		1 week
2002-04-30 17:07:32 +00:00
Brian Somers
0655ee8d72 Case is irrelevant when sorting mail redirects
PR:		21600
Submitted by:	David Wolfskill <dhw@whistle.com>
2000-10-02 21:54:38 +00:00
Brian Somers
9ed55d1192 Another overhaul of the periodic stuff.
All periodic sub-scripts <larf> now have their return codes interpreted
by periodic(8).  Output may be masked based on variable values in
periodic.conf.

It's also now possible to email periodic output to arbitrary addresses,
or to send it to a log file, examples of which can be found in
newsyslog.conf.

The upshot of it all should be no discernable changes to the default
behaviour of periodic(8).

PR:	21250
2000-09-14 17:19:15 +00:00
Brian Somers
3a5cb44818 Correct dodgy wild card expansion
PR:	20514
2000-08-10 10:58:44 +00:00
Brian Somers
2d60050a94 Add $daily_status_mail_rejects_logs, defaulting to 3 to control
how many /var/log/maillog* files to check

PR:	19587
2000-06-30 09:41:16 +00:00
Brian Somers
f3e285ba7d Introduce /etc/defaults/periodic.conf, similar in concept to rc.conf.
The only change in the default functionality should be that
the output reports are slightly more verbose WRT files deleted.

Not objected to by: freebsd-arch
2000-06-23 01:18:31 +00:00
Peter Wemm
9b7a44a60e $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
Wolfram Schneider
b2ba580390 Count _all_ rejects, not made by check_mail and check_relay only.
There can be private rules which produce rejects.
Pointed out by: áÎÄÒÅÊ þÅÒÎÏ×
1998-02-09 11:28:59 +00:00
Wolfram Schneider
a4f897aa96 Count hosts and sort by score. 1998-02-05 15:38:17 +00:00
Wolfram Schneider
011e8ccf1f Replace sed(1) with perl(1). The 4.4BSD sed programm is
200 times slower than perl or SunOS 5.5.1 sed.
1998-02-05 15:33:54 +00:00
Brian Somers
87c2f276be Remove ``start='' used when testing :-( 1998-01-26 02:26:29 +00:00
Brian Somers
c5227e754c Just list one of each domain that was rejected
(although only by Scheck_relay or Scheck_mail).
Suggested by: ache
1998-01-23 01:58:18 +00:00
Andrey A. Chernov
41051eb9e7 Do not run by default. Can grow your root mailbox up to 2Mb per day
since SPAMmers like to retry often
1998-01-18 12:06:40 +00:00
Brian Somers
ac4c6ef8a9 Check for rejected mail
Not commented on by: freebsd-hackers
1997-11-22 04:02:51 +00:00