A very basic question posed to the list this morning got me wondering again
about producing a script that would attempt to collect up most of the basic
data about a configuration - not parsting the user's .procmailrc mind you,
but getting user and group info, procmail and formail versions and paths,
sendmail version and path (and Mlocal setting), and permissions on
particular files and directories of import.
An initial version of this shell script is at:
<http://www.professional.org/procmail/procdiag.sh>
Would a few old hands mind fetching that and seeing what might be tweaked
to make it a better diagnostic collector?
Specific things that would be nice to improve upon are a reliable "what OS
is this system running" (right now, uses OSTYPE envioronment variable, and
the first line of 'dmesg' which I know works on BSD and most Linux), and
"which MTA are we really running" (right now, simply assumes sendmail
because that is all I use, and I don't know a reliable way to check - even
telnet localhost 25 is iffy).
Is there a standard utility or a ready-made script that will report file
permissions in numeric format?
Feedback would be appreciated, since I believe this would make extracting
useful config info from users that much easier. Of course, enhancing it to
actually report common "hey, the perms here are all wrong" errors would be
useful too.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail