sendmail

Resources

Configuring sendmail on Mac OS X

After setting MAILSERVER=-YES- on /etc/hostconfig, change /System/Library/StartupItems/Sendmail/Sendmail to include:

StartService ()
{
    if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then
        if ! pid=$(GetPID sendmail); then
            ConsoleMessage "Starting mail services"

            queue=/var/spool/mqueue
            rm -f ${queue}/nf* ${queue}/lf*

            chmod g-w / /etc /etc/mail
            chmod 2555 /usr/sbin/sendmail
            chown smmsp.smmsp /var/spool/clientmqueue
            chmod 700 /var/spool/mqueue
            chown root.wheel /etc/mail/submit.cf

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

This page is referenced in: