Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error when try to send mail

Status
Not open for further replies.

herzel

IS-IT--Management
Mar 5, 2003
73
IL


Hello to all
I have an AIX4.3.3 ML 9 installed, and all seem to work fine
In the last few weeks I noticed in the backup log the following error:
dbm map "Alias0": unsafe map file /etc/aliases
I investigate the error and find out I cannot send mail between users. When I try to send mail with the mail command I receive the above message
Does any one saw this message?
Shell I restart the sendmail daemon and how?
Any help will be appreciate
 
Hi herzel

I never saw that message...but I can give you few tips for resolution

step1:check for sendmail subsystem is up and running
#lssrc -s sendmail
if it is active...please stop it as shown in step 2

Also u can check with :#ps -ef|grep sendmail..
out put is:sendmail accepting connections on port 25(default)

step 2:stopsrc -s sendmail

also check /etc/sendmail.pid file
It has two lines as before stopping sendmail after starting sendmail as shown step 3...This file will be overwritten with new entries
<sendmail pid>(numeric)
/usr/lib/sendmail -bd -q 30m

ps -ef|grep -v grep|grep sendmail
You will get blank output as sendmail process is stopped

step 3:startsrc -s sendmail -a &quot;-bd -q 30m&quot;

here if 30m refers to check mail for evey 3o min...u can give any num of min..

step 4:ps -ef|grep sendmail
or lssrc -s sendmail (this will show u it is active)

Also u can check now /etc/sendmail.pid for new entries.

Now u successfully stopped and started sendmail...If this
doesn't address the issue...I will give some more steps for resolution


sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi sushveer

Thank you for the replay. I tried the steps you advise me but with no help. I still have the same problem even I did refresh the sendmail daemon.
Do you have another advise?
 
More than likely this indicates a permissions problem with the /etc directory /etc/aliases or /etc/mail/aliases.
ls -ld /etc should show permissions:
drwxr-xr-x 36 root system 5120 Jul 17 11:00 /etc
If this is drwxrwxrwx you would get the message:
chmod 755 /etc should fix this.
$ ls -l /etc/mail/aliases
-rw-r--r-- 1 root system 1024 Nov 20 2002 /etc/mail/aliases
$ ls -l /etc/aliases
lrwxrwxrwx 1 root system 17 Nov 20 2002 /etc/aliases -> /etc/mail/aliases
-- I am taking these from an AIXC 5.2 system, but should give you an idea
 
hi,
is this machine conf.ed as nis server or client ?

It seems that your system resolves alias (hosts? network?..)
using nis, seeing the keyword &quot;map&quot;

bye
 
Hi all
A lot of thanks to all that replied. The reply of jwtesch was the correct one it was really permission problem. I hope this thread will help others too.
And again a lot of thanks especially to jwtesch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top