> In the last day the sendmail has started generating the following
> message in the logs on by RH9 box:
>
> Sep 12 06:01:01 bohemia sendmail[12003]: alias database
> /etc/mail/aliases.db out of date Sep 12 06:01:01 bohemia
> sendmail[12004]: alias database /etc/mail/aliases.db out of date
>
> I am running sendmail-8.12.8-6.90 (from RH up2date service)
>
> Thanks for any help
Run "newaliases"
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
Run "newaliases". Make sure RH does not try to create the aliases.db
file with makemap.
- Sebastian
--
Sebastian Jaenicke Disce aut discede!
whois pgpkey-C81115B1 -h whois.ripe.net|perl -ne's-^certif: *--&&print'
>In the last day the sendmail has started generating the following
>message in the logs on by RH9 box:
>Sep 12 06:01:01 bohemia sendmail[12003]: alias database
>/etc/mail/aliases.db out of date Sep 12 06:01:01 bohemia
>sendmail[12004]: alias database /etc/mail/aliases.db out of date
Whenever you edit "/etc/mail/aliases" you are supposed to
run the command "newaliases".
> In the last day the sendmail has started generating the following
> message in the logs on by RH9 box:
>
> Sep 12 06:01:01 bohemia sendmail[12003]: alias database
> /etc/mail/aliases.db out of date Sep 12 06:01:01 bohemia
> sendmail[12004]: alias database /etc/mail/aliases.db out of date
>
> I am running sendmail-8.12.8-6.90 (from RH up2date service)
>
> Thanks for any help
By the way, running Redhat with it's sendmail RPM the aliases file and
db are in /etc and not in /etc/mail by default!
> Thanks but that generated a new error:
>
> hash map "Alias0": unsafe map file /etc/mail/aliases.db: Permission
> denied
> WARNING: cannot open alias database /etc/mail/aliases
> Cannot create database for alias file /etc/mail/aliases
>
>
> Any more suggestions?
Then this is not default.
But the error message is clear enough, isn't it? Check the permissions
and change it, writable only for root.
On Fri, 12 Sep 2003, Kahn wrote:
> Thanks but that generated a new error:
>
> hash map "Alias0": unsafe map file /etc/mail/aliases.db: Permission
> denied
> WARNING: cannot open alias database /etc/mail/aliases
> Cannot create database for alias file /etc/mail/aliases
>
>
> Any more suggestions?
>
Try (as root):
# cd /etc/mail
# chmod 640 aliases*
If that doesn't work, use
# chmod 600 aliases*
- --
Weldon Whipple <wel...@whipple.org>
http://www.whipple.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
iQCVAwUBP2JZUN+005Ecx7aRAQEJVQQAir4BSS6DGUR79lRczrAlPKelTAoMmNmE
b9rV6w716uD2dU+grtmya1QD+moTqmwENS032vdjRT3wlNCksuROMi9zD8fZUnCo
nezFL48G1b+1wuVqrukd7XUpgbxLXGz3+xEAd654Veivq4Wz2a635Ptq/lmpEL13
paNXu3335qk=
=yseE
-----END PGP SIGNATURE-----
> It is writable as root
>
> -rw-r--r-- 1 root root 1198 Sep 12 00:12 aliases
> -rw-r--r-- 1 smmsp root 12288 Aug 22 13:01 aliases.db
I assume you have a line in your sendmail.mc
define(`confTRUSTED_USER', `smmsp')dnl
Remove that line or at least put a dnl in front of it and make a new
sendmail.cf. After that change the file permissions for all files in
/etc/mail to chown root.root.
>
> I deleted the aliases.db file and then newaliases ran....but I still
> don't know why I was getting the permissions errors as root.
If the error remains after changes please post your sendmail.mc file and
report changes you did to your Redhat system which are no default.
> - Kahn
Alexander
P.S. Please DON'T top post!
> -rw-r--r-- 1 root root 1198 Sep 12 00:12 aliases
> -rw-r--r-- 1 smmsp root 12288 Aug 22 13:01 aliases.db
^^
Really?
> I deleted the aliases.db file and then newaliases ran....but I still
> don't know why I was getting the permissions errors as root.
It is owned by smmsp. WHY?
Do NOT use smmsp for anything but the MSP and its data.
PS: please don't top-post.
--
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?