Problems with sendmail on AIX

hi, i got this error, i have no idea where to start.. anyone please???

Warning: .cf file is out of date: sendmail AIX5.3/8.13.4 supports version 10, .c
f file is version 9
WARNING: local host name (BAANPRO) is not qualified; see cf/README: WHO AM I?
Running /var/spool/mqueue/o3CBj3np1138768 (sequence 1 of 2)
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
root... WARNING: cannot open alias database /etc/mail/aliases; reading text vers
ion
Running /var/spool/mqueue/o3CBr1JP925722 (sequence 2 of 2)

I am no sendmail expert but since you have not received a response yet I will ask a couple questions and make a couple comments.

Where are you seeing this error.....maillog?

What are you doing to generate this error?

The

Warning: .cf file is out of date:

message in my environment is related to the sendmail.cf not matching up to my .mc file. In my environment that is acceptable because the sendmail.cf file was built on a different server and then copied to this server. I see this message when running /usr/sbin/newaliases.

The

hash map "Alias0": unsafe map file /etc/mail/aliases.db:

message would lead me to believe that you just need to change the permissions to 644 so the others field does not have write privileges.

The

dbm map "Alias0": unsafe map file /etc/mail/aliases:

message looks obvious in it states that the file does not exist. That may not be the case though, does that file exist?

As for the local host name WARNING I am not sure. Just guessing that the hostname is not listed in the /etc/hosts file with the full domain attached to it.

What does the command below return?

hostname

I hope this helps in some way.

I'm not receiving any mail, after the execution of any cron, and /var/spool/mqueue is getting full frecuently

---------- Post updated at 08:37 AM ---------- Previous update was at 08:15 AM ----------

How can i regenerate .cf file again?? anyone can explain it to me, like a 5 years old child??

Was this working at some point and then stopped working? Where there any changes made around the time you noticed the problem?

I was able to duplicate the Warning message as related to the hostname. I resolved my problem by putting a domain line in my /etc/resolv.conf file. So my resolv.conf file looks somthing like;

nameserver 0.0.0.0
nameserver 0.0.0.0
domain mtn.dew.com 

Change the domain value to the domain of the machine you are on and replace the 0's with the IP address of the nameserver. You could also change the hostname on the server to show the fully qualified name by entering.

chdev -l inet0 -a hostname=hostname.domain

and verify in the /etc/hosts file that you have the "IP, fully qualified name, alias" such as;

0.0.0.0 foobar.mtn.dew.com foobar

For the rebuild of the .cf file. If you have a sendmail.mc file you can build a .cf file off of the .mc file by entering

m4 sendmail.mc > /etc/sendmail.cf

If you do not have a sendmail.mc file I don't know the answer. Google it or hopefully someone on the list will know. Sorry I am just not going to get off track any more than I have already.

I was not able to duplicate the aliases file error but found this link where someone seen the same error. I was not able to duplicate the problem by breaking what he fixed on my system but maybe it will help you.

SUMMARY: I'm getting this error: dbm map "Alias0": unsafe map file aliases

Also running the command at the top of the article

/usr/lib/sendmail -bi -d44.4

might show you any permission problems you have.

If the permissions were wrong on the aliases.db file did changing that to 644 get rid of that error?