Women in Technology

Hear us Roar



Article:
  Configuring sendmail on Jaguar
Subject:   Sendmail still complaining about world writable, localhost refuses port 25 connection
Date:   2002-10-07 15:41:29
From:   anonymous2
I'm running sendmail under 10.2 behind a firewall with a lame ISP. That being said I'm having problems with config.mc. My config.mc file looks like this:


VERSIONID(`$Id: generic-darwin.mc,v 1.3 2002/04/12 18:41:47 bbraun Exp $')
OSTYPE(darwin)dnl
DOMAIN(generic)dnl
undefine(`ALIAS_FILE')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')
define(`confDOMAIN_NAME', `$w.blackbox42.no-ip.org')
define(`SMART_HOST' `mail.mindspring.com')
FEATURE(`smrsh',`/usr/libexec/smrsh')
FEATURE(local_procmail)
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`access_db')dnl
MAILER(smtp)
MAILER(procmail)


Every time I run the update script I receive this error:


/etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory


This also happens if I start sendmail on it's own:


blackbox# /usr/sbin/sendmail -OdontBlameSendmail=GroupWritableDirPathSafe -bd -q1h
451 4.0.0 /etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory


My alias file:


blackbox# cat access
# sample access file
192.168.1.12 RELAY
127.0.0.1 RELAY


Tail of my log file:


Oct 7 18:26:15 bluebox sendmail[1648]: g96H24cR000611: to=test@aol.com, ctladdr=www (70/70), delay=1+05:24:11, xdelay=00:00:00, mailer=relay, pri=1830092, relay=localhost, dsn=4.0.0, stat=Deferred: Connection refused by localhost
Oct 7 18:26:15 bluebox sendmail[1648]: g95JxNnM011994: to=messiah@datavortex.net, ctladdr=www (70/70), delay=2+02:26:52, xdelay=00:00:00, mailer=relay, pri=1830109, relay=localhost, dsn=4.0.0, stat=Deferred: Connection refused by localhost
Oct 7 18:30:02 bluebox sendmail[1650]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
Oct 7 18:30:02 bluebox sendmail[1650]: gethostbyaddr(192.168.1.12) failed: 3


The main problems I see are sendmail ignoring it's valum and not finding it's host name. Any clue as to what is causing this?

Full Threads Oldest First

Showing messages 1 through 6 of 6.

  • Sendmail still complaining about world writable, localhost refuses port 25 connection
    2003-10-30 05:24:58  anonymous2 [View]

    Hi there
    I am experiencing the exact same problem.
    I have the dont_blame parameter set, I also modified the sendmail startup file with the appropriate parameter, and I just get the exact same message as you:
    /etc/mail/sendmail.cf: line 108: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
    I made sure that all the directories had correct permissions for groups, but I remain stuck....

    Could you get this solved finally? If yes, how?
    Tx and cheers
    bc@ensuran.org
  • Sendmail still complaining about world writable, localhost refuses port 25 connection
    2003-05-13 08:04:52  anonymous2 [View]

    You have to check the permissions on / and all the subdirectories like /etc, /etc/mail for write permissions. If there is no write permission on / or /etc then give the write permissions and check.

    This will set the permissions for every directory sendmail needs to be
    non-group writable:

    sudo chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue /private


    Check all these permissions are same as below.

    drwxr-xr-x 45 root   sys     3584 Feb 3 10:24 etc
    drwxr-xr-x  2 root   mail     512 Feb 3 11:54 mail
    -rw-r--r--  1 root   bin     153 Sep 30 10:24 Mail.rc
    -rw-r--r--  1 root   bin     1201 Sep 30 10:24 aliases
    -rw-r--r--  1 root   mail      0 Oct 10 04:58 aliases.dir
    -rw-r--r--  1 root   mail    1024 Oct 10 04:58 aliases.pag
    -rw-r--r--  1 root   bin     5266 Sep 27 19:07 helpfile
    -rw-r--r--  1 root   bin      0 Sep 24 2001 local-host-names
    -rw-r--r--  1 root   bin     1829 Sep 30 10:19 mailx.rc
    -r--r--r--  1 root   bin    34924 Sep 30 10:24 main.cf
    -r--r--r--  1 root   bin    35625 Oct 1 05:09 sendmail.cf
    -r--r--r--  1 root   other   35625 Oct 1 05:09
    sendmail.cf.pre110615-05
    lrwxrwxrwx  1 root   root      8 Sep 30 10:24 sendmail.hf ->
    helpfile
    -r--r--r--  1 root   bin    35625 Sep 30 10:24 subsidiary.cf
    -rw-r--r--  1 root   bin      5 Sep 24 2001 trusted-users
    • Sendmail still complaining about world writable, localhost refuses port 25 connection
      2005-12-22 06:18:12  microbix [View]

      edit manually file sendmail.cf

      nano -w /etc/mail/sendmail.cf

      replace line Fw/etc/mail/local-host-names with line
      Fw-o /etc/mail/local-host-names
      identically (if you got the same error for trusted-users)

      Ft/etc/mail/trusted-users
      with line Ft-o /etc/mail/trusted-users
      i spent 4 hours to see that. if you rebuild sendmail.cf from sendmail.mc you can modify the last file (sendmail.mc) to suit your needs

      i recommend to you to use webmin (install with yum) for simpler sendmail administration
      • Sendmail still complaining about world writable, localhost refuses port 25 connection
        2010-07-01 09:19:22  Harshad Mahajan [View]

        Thanks a lot.

        It worked for me as well.

      • Sendmail still complaining about world writable, localhost refuses port 25 connection
        2006-03-13 13:01:25  rtantti [View]

        This worked!!! Thanks.
    • Sendmail still complaining about world writable, localhost refuses port 25 connection
      2003-07-11 13:06:35  anonymous2 [View]

      > sudo chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue /private

      I understood that the purpose of:

      define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')

      Was so that changed to the filesystem permissions were not nessacary. I've followed the tutorial here:

      http://www.macdevcenter.com/pub/a/mac/2002/09/10/sendmail.html

      and I'm having the same result. Even though the dont_blame option is set sendmail still refuses to start.