Here's the setup:
o the mail machine is a gateway connecting our lan of UNIX
machines to the outside world.
o we can mail out just peachy.
o when I try to send email to a machine inside the LAN,
whether from outside or inside, it gives me an error.
Here's my configuration file for routing (I figure this is where
things are going wrong):
inet_addrs:
driver=gethostbyaddr, transport=smtp;
check_for_local, fail_if_error
inet_hosts:
driver=gethostbyname, transport=smtp;
smart_host:
driver=smarthost, transport=smtp;
path=mail.vt.edu
I created this by running smailconfig and generating the basic file
set up for an internet machine. But because the DNS doesn't know
about the host names for our internal machines, I thought that
the gethostbyname driver would work. It did in the earlier version
of Smail. (3.2-3, I think)
We have the hosts listed in /etc/hosts.
When I try to send a message, I get:
06/04/1998 16:15:57: [m0yhgQV-0002CbC] Failed TO:fu...@alanis.aerosft.com
DIRECTOR:aliases ERROR:(ERR101) unknown host
06/04/1998 16:15:57: [m0yhgQV-0002CbC] mail moved to
/var/spool/smail/error/0yhgQV-0002CbC
could somebody please help me set this thing up. I'm at wits end.
:) gethostbyname should work, yes?
--
The truth is out there. I just forget where I put it.
Hello Chris,
try to add the following lines to the match-inet-hosts-section:
domain = <yourdomain_name>,
only_local_domain
Please let me know if this works.
Regards
Gerd