Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 25th, 2004, 08:15 AM
dricci dricci is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 6 dricci User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Sendmail won't start - RH9

Hi,

I finally figured out how to upgrade Sendmail via RPM to the latest version on my RH9 server. Before that, I was having trouble and getting nowhere due to dependency problems. I even tried installing QMail from source (and failed miserably). So I deleted all the QMail files I added, and renamed sendmail.old back to sendmail in /usr/sbin/, and played around with the sendmail RPM and other packages that would satisify the dependencies until it all installed without a hitch. Now, I'm getting the following errors when trying to /etc/rc.d/init.d/sendmail start

Code:
[root@dricci dricci]# /etc/rc.d/init.d/sendmail start
Starting sendmail: makemap: error opening type hash map /etc/mail/virtusertable: Permission denied
makemap: error opening type hash map /etc/mail/access: Permission denied
makemap: error opening type hash map /etc/mail/domaintable: Permission denied
makemap: error opening type hash map /etc/mail/mailertable: Permission denied
451 4.0.0 /etc/mail/sendmail.cf: line 185: fileclass: cannot open '/etc/mail/generics-domains': No such file or directory
451 4.0.0 /etc/mail/sendmail.cf: line 640: fileclass: cannot open '/etc/mail/trusted-users': No such file or directory
WARNING: Xmimedefang: local socket name /var/spool/MIMEDefang/mimedefang.sock missing
                                                           [FAILED]


Does anyone know how to fix the files it's having trouble with? I just want to get my e-mail server set up, didn't think trying to configure a linux server would be this hard

Thanks!

Reply With Quote
  #2  
Old July 25th, 2004, 08:22 AM
dricci dricci is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 6 dricci User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Eekk. okay an update. In webmin, I just rebuilt the M4/Sendmail configuration, and it seems to start now, but I'm still getting a few errors...

Code:
[root@dricci dricci]# /etc/rc.d/init.d/sendmail start
Starting sendmail: makemap: error opening type hash map /etc/mail/virtusertable: Permission denied
makemap: error opening type hash map /etc/mail/access: Permission denied
makemap: error opening type hash map /etc/mail/domaintable: Permission denied
makemap: error opening type hash map /etc/mail/mailertable: Permission denied
                                                           [  OK  ]


Any idea how I can fix the permissions to a way sendmail would like them? Sorry, I'm new at this, in case you can't tell

Reply With Quote
  #3  
Old July 25th, 2004, 11:41 AM
obi_wonton's Avatar
obi_wonton obi_wonton is offline
(not) Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: Toronto, CANADA
Posts: 598 obi_wonton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 4 m 13 sec
Reputation Power: 5
you will have to chown all the files to whatever sendmail runs as. Find out which user runs sendmail, then type the following command as root (switch 'user' for actual user running sendmail):
Code:
chown user:user /etc/mail 
__________________
May the source be with you - obi_wonton

Reply With Quote
  #4  
Old July 26th, 2004, 03:51 AM
dricci dricci is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 6 dricci User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, thanks for the reply.

It looks like sendmail runs as "smmsp" so I tried changing the owner of the said files to that, but unfortunatly it has the same error. I also tried root, with the same result.

Anyone have any other ideas of what it might need?

Reply With Quote
  #5  
Old July 26th, 2004, 11:55 AM
obi_wonton's Avatar
obi_wonton obi_wonton is offline
(not) Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: Toronto, CANADA
Posts: 598 obi_wonton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 4 m 13 sec
Reputation Power: 5
Code:
chown -R smmsp:smmsp /etc/mail

sorry about the typo in my last bit of code. This will fix the problem.

Reply With Quote
  #6  
Old July 27th, 2004, 01:21 AM
dricci dricci is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 6 dricci User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmm.. that still gives me the same "Permission Denied" errors...

I don't know what else it could be

Reply With Quote
  #7  
Old July 27th, 2004, 09:39 AM
obi_wonton's Avatar
obi_wonton obi_wonton is offline
(not) Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: Toronto, CANADA
Posts: 598 obi_wonton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 4 m 13 sec
Reputation Power: 5
There are only a few possible answers.
1. you don't own the file
go into the /etc/mail directory
type 'ls -l'
you should see the sendmail username in the second and third columns for all the files

2. the wrong permissions are set on the file
sendmail may need 'execute' permissions for the file that have not been set, but I'm not sure on this one
chmod'ing the entire directory 'u+rwx' would tell you if there is a problem there.

Reply With Quote
  #8  
Old July 27th, 2004, 12:10 PM
dricci dricci is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 6 dricci User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmm.. nope, doesn't seen to be need (or want) the files to be executable... Before I changed anything I ls -l'ed the directory and everything was set to smmsp. Now I'm really confused

Code:
Starting sendmail: makemap: error opening type hash map /etc/mail/virtusertable: Executable files not allowed
makemap: error opening type hash map /etc/mail/access: Executable files not allowed
makemap: error opening type hash map /etc/mail/domaintable: Executable files not allowed
makemap: error opening type hash map /etc/mail/mailertable: Executable files not allowed
                                                           [  OK  ]

Reply With Quote
  #9  
Old July 27th, 2004, 12:43 PM
obi_wonton's Avatar
obi_wonton obi_wonton is offline
(not) Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: Toronto, CANADA
Posts: 598 obi_wonton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 4 m 13 sec
Reputation Power: 5
LOL what a mess

If the error message meant what it said, that had to have been the problem... maybe an error in your config file or something? Try a google search for that error message
i.e.

/etc/mailertable sendmail "permission denied"

maybe somewhere out there on the 'net it will tell you what the real problem is.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Sendmail won't start - RH9


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT