Sendmail configuration problems


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sendmail configuration problems
# 1  
Old 12-23-2002
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 PowerEdge 22500 is that /etc/sendmail.cf cannot open "line 88:cannot open /etc/mail/local-host-names: World writable directory" and"line 513: cannot open /etc/mail/trusted-users: World writable directory".
First, I checked the permissions for both files and even gave both of them the "chmod 777 <filename>" command, but that did not do anything. I rebuilt /etc/sendmail.cf a couple of times with the m4 macroprocessor, after checking /etc/mail/sendmail.mc to see if it looked alright, but that was no go. I even changed the name of the files in /etc/sendmail.cf from /etc/mail/local-host-names to /home/jstewart/local-host-names(I did remember to touch those files in /home/jstewart) and the same for /etc/mail/trusted-users.
This is quite frustrating, as many of you can identify with me. Can anyone offer any advice/give me a good website to look up the solution?
Again, Happy,uh Whatever and Happy New Year!!!
# 2  
Old 12-23-2002
If /etc/mail is world-writable, then anyone can remove the file /etc/mail/trusted-users and then install a new file /etc/mail/trusted-users.

In this case "cannot" does not mean that the kernel would disallow the open, it means that sendmail itself is disallowing the operation.

Set the directory to 755 rather than 777. Expect sendmail to complain that you set the files to 777 next. It wants to be sure that the files must have been created by root.
# 3  
Old 12-23-2002
And for a web site that will help you - Sendmail (link to directory permissions) FAQ
# 4  
Old 12-26-2002
After changing the directory permissions to 755, then to 640, and finally, uninstalling and reinstalling Sendmail-8.11.6-15 and trying to start sendmail with permissions at 644, I am still coming up with the same message. However, this time, in addition to writing down the error message, I have also wrote down the error #, which is 451 4.0.0. The whole message reads 451 4.0.0 line 88 Cannot open /etc/mail/local-hosts-name: World writable directory
451 4.0.0 line 513 Cannot open /etc/mail/trusted-users: World writable directory

I have tried directory permissions 755, 640, and 644.

Any other suggestions??
# 5  
Old 12-26-2002
Please post the output from the following commands:

/usr/lib/sendmail -d0.1 -bt < /dev/null
ls -ld /etc/mail
ls -l /etc/mail

The correct settings for directory persmissions on the mail directory were specified by Perderabo and in the link I provided.

For info specific to Redhat:
Redhat Sendmail permissions
Redhat Mail Servers

Last edited by RTM; 12-26-2002 at 12:31 PM..
# 6  
Old 12-26-2002
I went ahead and upgraded the server to RedHat 8.0, and the email seems to work fine now. The default permissions for the files in /etc/mail were as Perderabo and RTM had specified, so that leads to believe that the Sendmail program on 7.3 was corrupt or something(???). I don't know, really.

The only thing I know for sure is that it works now. Thanks for your help anyway, guys.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Sendmail FAX configuration

I've been trying to send FAXs from an HP_UX server using sendmail via an Esker FAX server. However if I try to include FAX configuration details in the receipient address it fails. See following string for general format... (1 Reply)
Discussion started by: JohnMair
1 Replies

2. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

3. HP-UX

Sendmail Configuration

Hi All, Need help !. I am configuring SMTP server details in my sendmail.cf My SMTP server details are like MAC234.ad.compname.com, and i have configured my sendmail.cf with this address. But mail address is something like user1@compname.com. Now when i run the sendmail command, i get... (6 Replies)
Discussion started by: chpsam
6 Replies

4. Shell Programming and Scripting

sendmail configuration.

Hi All, I need to configure mail functionality which enable us to send mail to outside company network. I just came to know that we have to configure outbound mail host/relaying mail in sendmail.cf file. Can someone suggest me on what to change in sendmail.cf, what information is required... (0 Replies)
Discussion started by: ace_friends22
0 Replies

5. Emergency UNIX and Linux Support

Sendmail Configuration

Hi, We have a standalone Solaris 10 Server (no DNS is configured) from which we want email alerts to be triggered when there is any breaches in the disk utilization threshold levels. we would like to achieve this mailing through sendmail. Can any one explain the procedure to do so..??? ... (1 Reply)
Discussion started by: EmbedUX
1 Replies

6. AIX

AIX sendmail configuration

I want to configure sendmail on AIX 4 and 5 to send emails to a windows SMTP proxy server for distribution. Mail would be going from AIX to Windows but any return emails would be sent not AIX but to a default Windows return address. What variables in the AIX sendmail.cf file would need to be... (1 Reply)
Discussion started by: rahe
1 Replies

7. UNIX for Dummies Questions & Answers

Fresh sendmail configuration

I have a requirement to enable sendmail in all the servers in our lab. This is required in lots of cases like e-mail the server owner if any hardware error and if any application problems and so. Here my part is to confirm that it is possible to send e-mail to the system user from the server.e-mail... (2 Replies)
Discussion started by: testbedengr
2 Replies

8. Shell Programming and Scripting

Sendmail Configuration - [Urgent]

I had my admin team to configure the SMTP on my HPUX unix box to send mails. Now they have given me a SMTP ip xx.xx.xx.xx and asked my to use this ip in ur code and not hostname for sending mails. where should I put this SMTP IP in the code or what should i configure in order to send mails. ... (2 Replies)
Discussion started by: Omkumar
2 Replies

9. AIX

sendmail configuration

I am in the process of setting up a new AIX 5.2 machine. I am not normally an AIX admin so please excuse if this is a dumb question.... this being that I need to alter the sendmail config. I can easily diff the default sendmail.cf with an existing server's file and see where to make the changes I... (2 Replies)
Discussion started by: nzaixer
2 Replies

10. HP-UX

Sendmail configuration - help needed

System is running HP-UX11 I need to configure sendmail, to send to a mail server of ours... Any help would be appreciated.... I will be using mailx (2 Replies)
Discussion started by: frustrated1
2 Replies
Login or Register to Ask a Question