sendmail relay rule.

From: ayamada (ar1m1tsu_y4m4d4@hotmail.com)
Date: Thu Nov 11 2004 - 21:57:12 EST


Hello,

I am setting up Sendmail 8.12.10 on Solaris9.
There are following three relay rules which I wnat to define.

ex)my domain is example.com
1. messages to localhost -> relays to localhost.
2. messages to the other hosts (hosts1.example.com, hosts1.example.com,
hosts1.example.com, ,,,,,,,,)
    ->relays directory to the other hosts.
3. other messages -> relay to the smtp gateway. (smart host)

Now I have problem with the second rule. When I use fqdn for the recipient
address (root@host1.example.com)
it is relayed to the host1 fine though, when I use hostname (root@host1) the
messages is relayed to the smtp
gateway (mailgw)

My question is how can I relay messages to the particular host when I use
the hostname for the domain?
I am trying to get the information on this ,,,,,,,,,,,the web, readme, books
and so on. But I can not find the solution.
Can someone help me, PLEASE!!

-The set up I have done.

============sendmail.mc==================
#

divert(0)dnl
VERSIONID(`@(#)subsidiary.mc 1.10 (Sun) 12/14/00')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
FEATURE(always_add_domain)dnl
FEATURE(`mailertable',`dbm -o /etc/mail/mailertable')dnl
FEATURE(`nocanonify')dnl
define(`SMART_HOST', `[mailgw]:[mailgw1]:[mailgw2]')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
~
=======================================

============mailertable==================
example.com smtp:%1.tky.cib
=======================================
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:42 EDT