Re: Disabling sendmail for local delivery


Subject: Re: Disabling sendmail for local delivery
From: Paul J. Lucas (pauljlucas@mac.com)
Date: Thu May 03 2001 - 09:09:36 MDT


On Mon, 30 Apr 2001, Gawain Reifsnyder wrote:

> We've got a colocated YDL web server which often needs to send mail output
> from cron jobs and PHP scripts. However, we're using our ISP for our mail
> services.

        Meaning what, exactly? Your box doesn't need any other to send
        or receive mail.

> Since our webserver thinks *it* should receive mail for say,
> joeuser@ourdomain.com, mail sent to that user from a script fails with a
> "mail loops back to me" message.
>
> How do I configure sendmail to ignore mail sent to the local domain(s)?

        In /etc/mail/access:

                localhost.localdomain OK
                localhost OK

        In /etc/sendmail.cw:

                ourdomain.com

        In your sendmail.mc config file (the thing you use to generate
        your sendmail.cf file), you need to have:

                FEATURE(`access_db')
                FEATURE(`always_add_domain')
                FEATURE(`use_cw_file')

        Then rebuild your sendmail.cf file.

        - Paul



This archive was generated by hypermail 2a24 : Thu May 03 2001 - 08:14:38 MDT