Jacob (Mettavihari)

On Thu, 6 May 1999, Ray Olszewski wrote:

> At least it is approximately like that. To get it right, I'd need to know
> the IP numbering schemes for all of the interfaces and networks.


Gateway 204.143.107.33
|
------------------------------------------------------- the Lan of my ISP
                      | My lan card                 |
                   --------                       --------
                  |metta.lk|  204.143.107.46     |   DNS  | 204.143.107.34
                   --------                       --------
                      |
                PPP connection on my server.  #172.16.1.10:172.16.1.11
                           172.16.1.10
                             |
                             |
                           172.16.1.11
 PPP connection by the dialin clients IP provided by my server

       |         
 --------------  
| Col7.metta.lk| 
| 172.16.1.1   |  
 -------------


on "Col7.metta.lk" the files look like this
============================================
HOSTNAME
--------
Col7.metta.lk

/etc/hosts
----------
204.143.107.46  dhamma  dhammma
127.0.0.1       localhost       localhost.localdomain
172.16.1.1      Col7.metta.lk   Narada

/etc/conf.resolv
----------------
search metta.lk 
nameserver 204.143.107.34  # my ISP's DNS
nameserver 204.143.96.17   # another alternative DNS

If the files above are ok
then how does this file "Col7.metta.lk.m4"
look for my sendmail configuration file.

    dnl #------------------ SAMPLE SENDMAIL.M4 FILE ------------------
    dnl #
    dnl # (the string 'dnl' is the m4 equivalent of commenting out a line)
    dnl #
    dnl # you generally don't want to override LIBDIR from the compiled in paths
    dnl #define(LIBDIR,/usr/local/lib/mail)dnl    # where all support files go
    dnl ###define(LOCAL_MAILER_DEF, mailers.linux)dnl    # mailer for local delivery
    define(LOCAL_MAILER_DEF, DELIVER)dnl       # mailer for local delivery
    dnl ###define(POSTMASTERBOUNCE)dnl         # postmaster gets bounces
    define(POSTMASTERBOUNCE, postmstr)dnl                   # postmaster gets bounces
    define(PSEUDODOMAINS, BITNET UUCP)dnl         # don't try DNS on these
    dnl #
    dnl #-------------------------------------------------------------
    dnl #
    dnl # names we're known by
    dnl ### define(PSEUDONYMS, myhostname.subdomain.domain myhostname.UUCP)
    define(PSEUDONYMS, Col7.metta.lk)
    dnl #
    dnl # our primary name
    dnl ###define(HOSTNAME, myhostname.subdomain.domain)
    define(HOSTNAME, Col7.metta.lk)
    dnl #
    dnl # our uucp name
    dnl ###define(UUCPNAME, myhostname)dnl
    dnl #
    dnl #-------------------------------------------------------------
    dnl #
    define(UUCPNODES, |uuname|sort|uniq)dnl       # our uucp neighbors
    define(BANGIMPLIESUUCP)dnl                    # make certain that uucp
    define(BANGONLYUUCP)dnl                       #  mail is treated correctly
    define(DEFAULT_MAILER, TCP-A)dnl              ### taken from N.A.G.
    dnl ###define(RELAY_HOST, my_uucp_neighbor)dnl ### our smart relay host N.A.G
    dnl ###define(RELAY_MAILER, UUCP-A)dnl         ### we reach moria via uucp N.A.G
    dnl #
    dnl #--------------------------------------------------------------------
    dnl #
    dnl # the various dbm lookup tables
    dnl #
    define(ALIASES, LIBDIR/aliases)dnl            # system aliases
    define(DOMAINTABLE, LIBDIR/domaintable)dnl    # domainize hosts
    define(PATHTABLE, LIBDIR/pathtable)dnl        # paths database
    define(GENERICFROM, LIBDIR/generics)dnl       # generic from addresses
    define(MAILERTABLE, LIBDIR/mailertable)dnl    # mailers per host or domain
    define(UUCPXTABLE, LIBDIR/uucpxtable)dnl      # paths to hosts we feed
    define(UUCPRELAYS, LIBDIR/uucprelays)dnl      # short-circuit paths
    dnl #
    dnl #--------------------------------------------------------------------
    dnl #
    dnl # include the 'real' code that makes it all work
    dnl # (provided with the source code)
    dnl #
    include(Sendmail.mc)dnl                         # REQUIRED ENTRY !!!
    dnl #
    dnl #------------ END OF SAMPLE SENDMAIL.M4 FILE -------


Reply via email to