Women in Technology

Hear us Roar



Article:
  Update to Mac OS X Terminal, Part 3
Subject:   A typo?
Date:   2002-06-08 12:35:24
From:   jeffulri
Your article suggests that one, "Save that file and then open /System/Library/StartupItems/Sendmail/Sendmail:


sudo pico /System/Library/StartupItems/Sendmail/Sendmail


Find this line near the end:


/usr/sbin/sendmail -bd -q1h


And add this line after it:


/usr/sbin/sendmail -C /etc/mail/submit.cf -q1h


Save that file and restart your machine to allow the startup script to run."


Thus generating the following Sendmail file


---[Cut Here]---


#!/bin/sh


. /etc/rc.common


##
# Start mail server
##


if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then


ConsoleMessage "Starting mail services"


##
# Remove junk from the outbound mail queue directory and start up
# the sendmail daemon. /usr/spool/mqueue is assumed here even though
# it can be changed in the sendmail configuration file.
##
queue=/var/spool/mqueue
rm -f ${queue}/nf* ${queue}/lf*


/usr/sbin/sendmail -bd -q1h
/usr/sbin/sendmail -C /etc/mail/submit.cf -q1h


fi


---[Cut Here]---


Presumabably, you only wanted us to ADD to that line. Thereby generating the following Sendmail file


---[Cut Here]---


#!/bin/sh


. /etc/rc.common


##
# Start mail server
##


if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then


ConsoleMessage "Starting mail services"


##
# Remove junk from the outbound mail queue directory and start up
# the sendmail daemon. /usr/spool/mqueue is assumed here even though
# it can be changed in the sendmail configuration file.
##
queue=/var/spool/mqueue
rm -f ${queue}/nf* ${queue}/lf*


/usr/sbin/sendmail -C /etc/mail/submit.cf -q1h


fi


---[Cut Here]---


Please clarify and or change your article to correctly reflect your intent.


Also, why are you not appending a & to the line in question, thereby making sendmail a backgournd app, as it should be?

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • A typo?
    2002-06-09 20:44:25  jafager [View]

    > Also, why are you not appending a & to the
    > line in question, thereby making sendmail a
    > backgournd app, as it should be?

    IIRC, sendmail is well-behaved and will background itself.

    jafager
  • Chris Stone photo A typo?
    2002-06-09 14:58:51  Chris Stone | O'Reilly AuthorO'Reilly Blogger [View]

    Actually, I meant what I wrote:

    "Find this line near the end:

    /usr/sbin/sendmail -bd -q1h

    And add this line after it:

    /usr/sbin/sendmail -C /etc/mail/submit.cf -q1h"

    The lines, then, should look like this:

    /usr/sbin/sendmail -bd -q1h
    /usr/sbin/sendmail -C /etc/mail/submit.cf -q1h

    That is, two sendmail instances are to be started.

    Thanks,

    --Chris
    • Not a typo.
      2002-06-10 08:23:19  jeffulri [View]

      Knowing now that this iteration of sendmail uses two processes (instead of the one it used previously), this makes perfect sense. Thanks for the clarification.