Women in Technology

Hear us Roar



Article:
  Configuring sendmail on Jaguar
Subject:   Sendmail still complaining about world writable, localhost refuses port 25 connection
Date:   2003-05-13 08:04:52
From:   anonymous2
Response to: Sendmail still complaining about world writable, localhost refuses port 25 connection

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

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • 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.