Discussion Locked

NEWALIASES command not working

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

RHL9

Logged-in as ROOT. After typing the "newaliases" command, I get the following error. Re-booting the server loads updated ALIASES file OK:

hash map "Alias0": unsafe map file /etc/aliases.db: Permission denied
WARNING: cannot open alias database /etc/aliases
Cannot create database for alias file /etc/aliases

10 replies

by ajt74

Create text file 'aliases' file in /etc/mail/.

To create the ?aliases database map?, use the following command:
[root@]# makemap hash /etc/mail/aliases.db < /etc/mail/aliases

Restart sendmail after creating aliases.db file.

by ajt74

Make sure before restarting sendmail you apply
[root@] newaliases command

by nico baggus

Your error message is now different from the
earlier ones, '/etc/aliases should not be
executable...'

what is the 'ls -l /etc/aliases' for you file,
check that with the intended bit in the article
referenced in answer 2....?

I bet you have some x's in them that should not
be there...? Just as it should not be world
writable...

Kind regards,
Nico

This discussion is closed to new replies.