Problems with sendmail on AIX


 
Thread Tools Search this Thread
Operating Systems AIX Problems with sendmail on AIX
# 1  
Old 05-04-2010
Problems with sendmail on AIX

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

Code:
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)


Last edited by Scott; 05-04-2010 at 12:18 PM.. Reason: Added code tags
# 2  
Old 05-04-2010
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
Code:
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
Code:
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
Code:
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?
Code:
hostname

I hope this helps in some way.
# 3  
Old 05-05-2010
Sendmail problems

Quote:
Originally Posted by juredd1
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?

I see the message on the screen, after running newaliases

What are you doing to generate this error?

I just executed newaliases, but a didn`t make any changes in aliases file.

The
Code:
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
Code:
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
Code:
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?

yes, it does exist!!, i dont know why this error!!


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?
Code:
hostname

I executed hostname, and it gave me, the hostname (BAANPRO), so i dont know whats happening here :S

I need some help!!!! please!

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??
# 4  
Old 05-05-2010
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;

Code:
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.

Code:
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;

Code:
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

Code:
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

Code:
/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?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Problems host name lookup failure sendmail

Hi I have a problem in sendmail Freebsd when sending emails to yahoo as an example, I get: Sep 5 10:05:43 local50 sm-mta: STARTTLS=client, error: connect failed=-1, SSL_error=1, errno=0, retry=-1 Sep 5 10:05:43 local50 sm-mta: STARTTLS=client: 43926:error:1407742E:SSL... (3 Replies)
Discussion started by: rickyarge92
3 Replies

2. HP-UX

Sendmail problems

I running sendmail as user smmsp I have create user,group with same name Sendmail start ok,but when i try to send email outside of localhost give me this error Jan 3 20:46:59 hpux2 sm-mta: t03JkwJb020892: t03JkxJb020893: DSN: Insufficient permissionI give those permissions chmod 2755 ... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

3. UNIX for Dummies Questions & Answers

Problems with Sendmail AUTH and TLS

Greetings. I desperately need help to get my sendmail configuration working again. I followed this guide: Unmemorable Memories » Blog Archive » Enabling SMTP-AUTH for Sendmail on Debian Linux 3.1 to enable TLS and AUTH in sendmail and now I get an error I just cannot find any information... (1 Reply)
Discussion started by: Mr.Glaurung
1 Replies

4. UNIX for Dummies Questions & Answers

Sendmail dir permission problems.

I accidently deleted the queue directory and now i'm receiving this error when I try to send email with sendmail. :~# mailq MSP Queue status... /var/spool/mqueue-client (1 request) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- s495xA7J002673 ... (1 Reply)
Discussion started by: galford
1 Replies

5. UNIX for Dummies Questions & Answers

Sendmail problems

Hello, This is my first post, so hello! I'm trying to gather a copy all the mail that goes through my sendmail into a named pipees so I can gather statistics and what not. I believe a copy of all mail is stored in var/spool/mail? I tried to replace the mail directory with a named pipe... (5 Replies)
Discussion started by: dadoprso
5 Replies

6. Shell Programming and Scripting

Command line problems with sendmail

I cannot get this shell script to work. The path to sendmail is correct... #!/bin/bash echo -e "Subject: email subject\n\nemailbody" | /usr/sbin/sendmail -F fromemail@somedomain.com -t recipientemail@somedomain.com (1 Reply)
Discussion started by: limmer
1 Replies

7. UNIX for Advanced & Expert Users

Sendmail problems -- with sending mail

Hello, I am C. and I would like to send mail with Sendmail to my hotmail-account. But this doesn't work, the mail always returns in the file: /var/spool/mail/root. Probably there is something wrong with my SmartHost. I configured it like: define ( 'SMART_HOST','smtp.direct-adsl.be') -->... (1 Reply)
Discussion started by: caroline
1 Replies

8. UNIX for Dummies Questions & Answers

Sendmail problems

Hi, I have some problems w/ the sendmail. I see that messages are queued in the /var/spool/mqueue and they are never sent to the recipients. This problem just suddenly started without any modifications in the current configuration. I already started and stop the sendmail and it did not help.... (1 Reply)
Discussion started by: ktanya
1 Replies

9. UNIX for Dummies Questions & Answers

sendmail problems - no man pages

Hi all, I have a virtual dedicated unix server somewhere (not sure we can put names, so ain't putting it yet :p) anyway, I have problems using sendmail, but before I am asking for help, I don't get ANY manpages for sendmail on my machine. I would like to try and solve this on my own (the... (2 Replies)
Discussion started by: saariko
2 Replies

10. UNIX for Dummies Questions & Answers

Sendmail configuration problems

First of all, Happy Holidays,Merry Xmas, Happy Hanakah, Happy Kwanzaa, Happy Mid Winter Festival, etc.(Forgive me if I left your holiday out) Anyway, here is my situation. I am setting up an email server at the job, and Sendmail is not cooperating. The error that I get on my RedHat 7.3 Dell... (5 Replies)
Discussion started by: Jody
5 Replies
Login or Register to Ask a Question