freebsd-skq/etc
brian 845566c7e8 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
..
bluetooth Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
defaults Another prism2 card (not sure what, if anything, is needed for >=5) 2005-01-11 00:40:00 +00:00
etc.alpha
etc.amd64
etc.arm Add ttyu0 as a serial console, as we're using the uart(4) driver on arm. 2004-09-24 12:51:15 +00:00
etc.i386
etc.ia64 turn off getty(8) on ttyv[0-7]. We don't support syscons on ia64 and 2004-10-17 22:20:39 +00:00
etc.powerpc PowerPC ttys file. 2004-02-04 01:44:34 +00:00
etc.sparc64 Catch up with the new device name of sab(4). The entries for tty[a,b] 2004-12-04 14:03:45 +00:00
isdn Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
mail Add user _pflogd. 2004-06-30 16:47:08 +00:00
mtree Unbreak the install. 2005-01-10 09:04:13 +00:00
namedb Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
pam.d Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
periodic Adjust the mail reject output so that it gives an abreviated reason for the 2005-01-11 02:08:53 +00:00
ppp Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456]. 2004-11-19 17:12:56 +00:00
rc.d Use "KEYWORD: shutdown" so shutdown commands will actually be executed. 2004-12-20 18:34:10 +00:00
root - Use absolute path for hostname(1) 2004-04-01 19:28:00 +00:00
sendmail
amd.map
apmd.conf
auth.conf
crontab
csh.cshrc
csh.login Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
csh.logout
devd.conf When ukbd0 arrives, attach to /dev/ukbd0 rather then /dev/kbd1 since 2005-01-08 06:00:24 +00:00
devfs.conf Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
dhclient.conf
disktab Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
fbtab
ftpusers Add user _pflogd. 2004-06-30 16:47:08 +00:00
gettytab Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
group Add "privsep" user/group _pflogd:_pflogd (64:64) to make pflogd(8) work 2004-06-23 01:32:28 +00:00
hosts
hosts.allow Use RFC 3849 address for examples. 2004-08-03 08:58:34 +00:00
hosts.equiv
hosts.lpd
inetd.conf Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
login.access Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
login.conf Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
mac.conf
Makefile NOCRYPT -> NO_CRYPT 2004-12-21 10:16:04 +00:00
man.alias
master.passwd UUCP's uucico(8) has not been in the base system for some time now, 2004-08-01 21:33:47 +00:00
minfree
motd
netconfig
netstart Run /etc/rc.d/routing at the appropriate time. 2004-02-10 19:10:34 +00:00
network.subr 'all' argument for list_net_interfaces() is now unused, remove it. 2004-12-05 21:45:36 +00:00
networks
newsyslog.conf Style: 2004-04-03 17:52:29 +00:00
nls.alias
nsmb.conf
opieaccess
pccard_ether Correct syntactical weirdness in a call to /etc/rc.d/dhclient. Fixes: 2005-01-04 16:52:15 +00:00
pf.conf Bring in some examples (and create space for future work here): 2004-09-14 01:07:19 +00:00
pf.os Update the passive OS fingerprint database from OpenBSD. 2004-09-14 00:30:14 +00:00
phones
printcap Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
profile Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
protocols Link pf to the build and install: 2004-03-08 22:03:29 +00:00
rc Remove an unused variable. 2004-10-08 14:23:49 +00:00
rc.bsdextended Give users the ability to load a mac_bsdextended(4) ruleset on boot (defaults 2004-09-29 00:12:28 +00:00
rc.firewall
rc.firewall6 Use RFC 3849 address for examples. 2004-08-03 08:58:34 +00:00
rc.initdiskless Use utils from /rescue vs. /stand. Also use pax rather than cpio & gzip. 2004-12-12 08:04:26 +00:00
rc.resume
rc.sendmail
rc.shutdown Improve the RC framework for the clean booting/shutdown of Jails: 2004-12-14 14:36:35 +00:00
rc.subr Cosmetic typo in check_pidfile() 2005-01-09 23:46:37 +00:00
rc.suspend
remote Reflect sio driver device name change cuaa -> cuad 2004-10-13 08:32:34 +00:00
rpc Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
services Add 3653/tcp and 3653/udp, since they were specifically requested. 2004-08-16 11:52:22 +00:00
shells
sysctl.conf
syslog.conf
termcap.small Removed whitespace at BOF, EOL & EOF. 2004-06-06 11:46:29 +00:00
usbd.conf Move the purely device-name based entries for mice and ethernet 2004-11-28 23:16:00 +00:00