-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Anthony,
Am Tue, 13 Aug 2002 07:45:46 -0400 schrieb "Anthony E. Greene" <[EMAIL PROTECTED]> : >Now that you mention it, I've seen this before too. So I took a look >at the sendmail initscript. The problem is that the section of code >that rebuilds the db files does not get called unless 'make' is >missing, or there is no Makefile. Either of those conditions would >prevent rebuilding the db files, so that can't be right. > >It turns out that there's a test to see if the db files need >rebuilding (make -C /etc/mail -q), but the result of the test is not >checked. Just as a note to this :-) I wrote a little script by myself which rebuilds all db's accordingly. You only have to take care, that _all_ files are in /etc/mail/ (works with symlinks too). <cite make-all-db> for db in genericstable virtusertable mailertable access do echo "makemap hash $db.db < $db" makemap hash $db.db < $db done newaliases </cite> I have some aliases >alias mailrights='chmod go-w / /etc /etc/mail /usr /var /var/spool >/var/spool/mqueue && chown root / /etc/ /etc/mail /usr /var >/var/spool /var/spool/mqueue' >alias mlog='tail -f /var/log/maillog' >alias domail='cd /etc/mail && mailrights && sh make-all-db && >/etc/init.d/sendmail restart && mlog' So if I changed something in my sendmail-environment and I want to make sure that everything is fine I simply hit "domail" as root and that's it. a) I change working directory (CWD) to /etc/mail b) I set file- and dir-security according to http://www.sendmail.org/faq/section3.html#3.33 c) Then I start my little script. d) Afterwards I restart sendmail e) And directly going into the Log to see what happend. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> iQA/AwUBPVkBur0cyHn1aB8jEQKYigCcDgbDzxPfNlzZhsw5WgGva1QoC+EAoOwx WkVTQ9O44h6p+TRW0xSIfQ45 =DlIa -----END PGP SIGNATURE----- kind regards Martin Mewes -- Novacote Hamburg - IT/IS-Department - Germany PGP-key: http://www.mamemu.de/key.asc Key has been sent to: europe.keys.pgp.com -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list