1831604 Members
2380 Online
110027 Solutions
New Discussion

Re: sendmail error

 
SOLVED
Go to solution
Sanjiv Sharma_1
Honored Contributor

sendmail error

Hi,

I have a rp8400/hpux 11.11.

When I start the sendmail it gives the following message:

"
WARNING: World writable directory /
WARNING: World writable directory /
WARNING: World writable directory /etc/mail
hash map "Alias0": unsafe map file /etc/mail/aliases.db: World writable director
y
dbm map "Alias0": unsafe map file /etc/mail/aliases: No such file or directory
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases
sendmail"

Sendmail is started and is able to send the mail outside the system but doesn't write the message to /var/mail/username.

What has gone wrong? What needs to be checked?

Thanks,
Everything is possible
3 REPLIES 3
Sergejs Svitnevs
Honored Contributor
Solution

Re: sendmail error

It is very insecure to have a map in a world writable directory.
Try to execute:

# chmod 755 /etc/mail /

Regards,
Sergejs
john korterman
Honored Contributor

Re: sendmail error

Hi,
too many have permissions to write in the root dir and the /etc/mail. Set those back to "normal", e.g.:
# cd /
# ls -ld .
drwxr-xr-x 40 root root 2048 Aug 27 10:34 .
and
# cd /etc/mail
# ls -ld .
dr-xr-xr-x 2 bin bin 1024 Sep 9 11:33 .
#

regards,
John K.
it would be nice if you always got a second chance
Robert-Jan Goossens
Honored Contributor

Re: sendmail error