LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-13-2009, 11:57 AM   #1
hawk__0
Member
 
Registered: Nov 2008
Posts: 105

Rep: Reputation: 15
Sendmail Unknown Host and world writable issue


Can't start sendmail without the following errors:
Code:
 /etc/init.d/sendmail start
 * Starting Mail Transport Agent (MTA) sendmail                                 hostname: Unknown host
451 4.0.0 /etc/mail/sendmail.cf: line 106: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
                                                                         [ OK ]
As you can see, /etc/mail/sendmail.cf IS writable...
Code:
/etc/mail# ls -la
total 244
drwxr-sr-x   7 smmta smmsp  4096 2009-10-13 09:47 .
drwxr-xr-x 127 root  root  12288 2009-10-13 09:53 ..
-rw-------   1 root  root   4302 2009-10-13 09:40 access
-rw-r-----   1 smmta smmsp 12288 2009-10-13 09:40 access.db
-rw-r--r--   1 root  root    281 2008-12-06 14:15 address.resolve
lrwxrwxrwx   1 root  smmsp    10 2009-09-23 12:54 aliases -> ../aliases
-rw-r-----   1 smmta smmsp 12288 2009-09-23 12:55 aliases.db
-rw-r--r--   1 root  root   3222 2009-09-23 12:54 databases
-rw-r--r--   1 root  root   5657 2008-12-06 14:18 helpfile
-rw-r--r--   1 root  smmsp    24 2009-09-23 12:54 local-host-names
drwxr-sr-x   2 smmta smmsp  4096 2009-09-23 12:54 m4
-rwxr-xr--   1 root  smmsp  9998 2009-09-23 12:54 Makefile
drwxr-xr-x   2 root  root   4096 2009-09-23 12:54 peers
drwxr-xr-x   2 root  smmsp  4096 2008-12-06 14:15 sasl
-rw-r--r--   1 root  smmsp 64454 2009-10-13 09:47 sendmail.cf
-rw-r--r--   1 root  smmsp   269 2009-09-23 12:54 sendmail.cf.errors
-rw-r--r--   1 root  root  12236 2009-09-23 12:54 sendmail.conf
-rw-r--r--   1 root  smmsp  4218 2009-09-23 12:54 sendmail.mc
-rw-r--r--   1 root  root    149 2008-12-06 14:15 service.switch
-rw-r--r--   1 root  root    180 2008-12-06 14:15 service.switch-nodns
drwxr-sr-x   2 smmta smmsp  4096 2009-09-23 12:54 smrsh
-rw-r--r--   1 root  smmsp 43986 2009-09-23 12:54 submit.cf
-rw-r--r--   1 root  smmsp  2374 2009-09-23 12:54 submit.mc
drwxr-xr-x   2 smmta smmsp  4096 2009-09-23 12:54 tls
-rw-r--r--   1 root  smmsp     0 2009-09-23 12:54 trusted-users
 
Old 10-13-2009, 12:31 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

To get rid of the unknown host warning add a name for your box in /etc/hosts.
Regarding the world writable issue, you have to make sure, that /etc and /etc/mail are not world writable.
If you want, you can bypass the warning using the DontBlameSendmail option, but I suggest you to try to find the real cause of the problem.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Error 550 Host Unknown MarcusG Linux - Networking 7 01-21-2020 06:38 AM
Host Unknown Error:Sendmail varun2109 Linux - Server 2 09-08-2009 11:49 PM
sendmail error 550 - Host Unknown jaguarfam Linux - Newbie 2 06-08-2009 08:33 AM
Sendmail issue: Unrecognized host name storemike Linux - Software 0 09-13-2004 12:50 PM
sendmail world writable directory jbrearley Linux - Software 0 07-01-2004 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration