|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
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 ![]() |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
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? ![]() |
|
#5
|
||||
|
||||
|
Code:
chown -R smmsp:smmsp /etc/mail sorry about the typo in my last bit of code. This will fix the problem. |
|
#6
|
|||
|
|||
|
Hmm.. that still gives me the same "Permission Denied" errors...
I don't know what else it could be ![]() |
|
#7
|
||||
|
||||
|
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. |
|
#8
|
|||
|
|||
|
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 ]
|
|
#9
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Mail Server Help > Sendmail won't start - RH9 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|