[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

smart-hosting w/ exim w/o dns - solved

    Hey people. 

    I asked a while back about smart-hosting all mail from my desktop box to
my firewall/router which is only known by it's internal IP and a hostname in
/etc/hosts. It failed to work because exim kept doing DNS lookups on my router
which has no DNS entry. 

    The fix was to change one token in the route. 

  driver = domainlist
  transport = remote_smtp
  route_list = "* rabbit byname"


    Note the route_list above. Previously, after running eximconfig and
selecting the smarthost option, the "byname" above was "bydns_a". By changing
it to "byname", exim performs a standard gethostbyname() system call, which
thanks to my /etc/nsswitch.conf results in checking /etc/hosts first, finds
the "rabbit" hostname, and all is well. 



Michael P. Soulier <msoulier@mcss.mcmaster.ca>, GnuPG pub key: 5BC8BE08
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to Unix

Attachment: pgp6um_5IJPfQ.pgp
Description: PGP signature

Reply to: