SUMMARY: Re: Sendmail configuration - help!

From: Sanjay Gowda (sgowda@idt.com)
Date: Thu Sep 05 1996 - 13:20:49 CDT


Hello Everybody,

I would like to thank the following people for replying
to my sendmail configuration questions.

   John Justin Hough <john@oncology.uthscsa.edu>
   Patrick O'Brien <pobrien@draco.harvard.edu>
   John Benjamins <johnb@Soliton.COM>
   Max Heise <hei@nepustil.net>

Their replies helped me set up the proper m4 macros
and the local delivery problem that I was having was
fixed as soon as I added all the local hosts (for which
our mail server should accept delivery for) to
/etc/sendmail.cw file.

The only change that I made to my m4 macros (they are
in my original question attached in the end) was that
I moved MASQUERADE(...) from sendmail-8.7.5/cf/cf/idt.mc
to sendmail-8.7.5/cf/domain/oregon.idt.com.m4, and
removed DOMAIN(generic) from the idt.mc file and moved
DOMAIN(oregon.idt.com) line from oregon.idt.com.m4 to idt.mc.

I was able to create a working sendmail.cf file and
am currently testing it out. Seems to be working
with no problems as yet.

Thank you all for your time and consideration.

Sincerely,

Sanjay

My questions:
>
> Hi!
>
> I still haven't received any replies to this question. Please
> can somebody/anybody who is familiar with m4 macros help me out?
> This server will be our main mail server for this domain.
> Also, if you any suggestions on security, etc, please
> let me know.
>
> Problem: I can send mail via our California's mail relay.
> I can send mail to local host (the mail server that I am
> setting up).
> I CANNOT send mail to other hosts in the same domain.
> Instead it goes to the central mail relay which has
> no idea of the hosts here in the local domain.
>
> Thanks.
>
> Sanjay
>
> My original question(s) :-)
> ---------------------------
>
> Hi Everybody,
>
> I was successful in compiling sendmail 8.7.5 on a Solaris 2.5 server.
> I am having some trouble in setting up the m4 macros. If anybody has
> any suggestions, helpful hints, I would appreciate it. Please let me
> explain it a bit.
>
> I am hoping to set it up as follows:
> -----------------------------------
> If it receives mail for a local user or a user to a local host
> (with the same domainname), deliver it locally instead of routing it
> through our central mail relay - "mail.idt.com".
>
> Everything else, make it go through the mail relay.
>
> Looks very simple and should be easy!
>
> The mail server is: "catwoman.oregon.idt.com".
>
> So all hosts which the DNS server returns as host1.oregon.idt.com,
> host2.oregon.idt.com, should be considered local hosts.
>
> Our local domainname is: oregon.idt.com (Masquerade as).
>
> Here are the m4 macros that I am using to create sendmail.cf file:
>
> I have created two m4 macro files:
>
> sendmail-8.7.5/cf/cf/idt.mc
> ---------------------------
> VERSIONID(`@(#)generic-solaris2.mc 8.2 (Berkeley) 8/6/95')
> OSTYPE(solaris2)dnl
> DOMAIN(generic)dnl
> MASQUERADE_AS(oregon.idt.com)
> define(`LOCAL_RELAY',catwoman)
> define(`SMART_HOST',smtp:mail.idt.com)
> MAILER(local)dnl
> MAILER(smtp)dnl
>
> sendmail-8.7.5/cf/domain/oregon.idt.com.m4
> ------------------------------------------
> divert(0)
> VERSIONID(`@(#)generic.m4 8.2 (Berkeley) 4/21/95')
> DOMAIN(oregon.idt.com)dnl
> define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')dnl
> define(`confCW_FILE', `-o /etc/sendmail.cw')dnl
> FEATURE(redirect)dnl
> FEATURE(use_cw_file)dnl
>
> And I run m4 as follows:
>
> export CFDIR=/home/sgowda/zip/mail/sendmail-8.7.5/cf
> m4 -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 cf/idt.mc > sendmail.cf
>
> The problem I am having is: Whenever I send mail to a local
> host other than the mail host(catwoman.oregon.idt.com), it
> goes to the mail relay (which by the way, has no clue of
> the hosts in our local domain). So, if I send mail to a local
> host say, hawkeye.oregon.idt.com, sendmail will route the mail
> thru our mail relay, mail.idt.com, and it never reaches the person
> at hawkeye, since the relay does not any clue of our local hosts.
>
> With the above setup, I have no problems sending mail to users
> on catwoman.oregon.idt.com and over the Internet.
>
> Can someone tell me what I am doing wrong here? I would also welcome
> any suggestions, hints, tips that you can give me before I install
> the binary.
>
> Thank you.
>
> Sanjay
>
> PS: In order to change the location of sendmail.cf in the sendmail
> binary, I was NOT successful in setting _PATH_SENDMAILCF and
> _PATH_SENDMAILPID in pathnames.h. After I hardcoded it in conf.c,
> gcc compiled it without any complaints!
>
> --

-- 
-----------------------------------------------------------------------
Sanjay K Gowda                                    sgowda@idt.com
System Administrator                              503-681-6382
Integrated Device Technology                      Hillsboro, Oregon 
          http://www.thebbslist.com/free-page/sgowda.html
-----------------------------------------------------------------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:09 CDT