[exim] exim 3.35 -- local network routing

Página Inicial
Delete this message
Reply to this message
Autor: Matej Cepl
Data:  
Para: exim-users
Assunto: [exim] exim 3.35 -- local network routing
Hi,

I have here a home network consisting of three computers -- two workstations
(one named blahoslav other kosatec with Debian/testing and exim 4.50) and
one server (mitmanek with Debian/stable and exim 3.35); the server is
connected to the Internet via dial-up. The problem I have is that I did not
manage to persuade exim on server to send emails to the workstation
computers, even though I have spent hours reading spec.txt and browsing
FAQs.

With the attached exim.conf for exim on server, I get the attached output
from exim -bt -d 10 -- i.e., matej@blahoslav is not understood to be on the
local network and exim tries to send the message to my ISP's smarthost.

One possible explanation is that I use dnsmasq DNS/DHCP server on all
computers. It means that /etc/resolv.conf on the server points to the ISP's
DNS server. Could it mean that when exim on server tries to resolv
blahoslav IP address it tries to connect to the ISP DNS's server instead of
asking DNS server on 127.0.0.1, which is dnsmasq, or going to /etc/hosts?

Is there something else I could to make this internal messaging to work,
please?

Thanks for any reply,

Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488

The American Republic will endure, until politicians realize they
can bribe the people with their own money.
    -- Alexis de Tocqueville

Exim version 3.35 debug level 10 uid=0 gid=0
Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (April 7, 2002)
mitmanek.vysocina in local_domains? yes (matched @)
Unable to create IPv6 socket to find interface addresses:
error 97 Address family not supported by protocol
Trying for an IPv4 socket
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 192.168.0.1 (eth0)
Caller is an admin user
Caller is a trusted user
user name "root" extracted from gecos field "root"
originator: uid=0 gid=0 login=root name=root
sender address = root@???
Address testing: uid=0 gid=0 euid=8 egid=8
>>>>>>>>>>>>>>>>>>>>>>>>

Testing matej@blahoslav
blahoslav in local_domains? no (end of list)
address matej@blahoslav
local_part=matej domain=blahoslav
domain is not local
>>>>>>>>>>>>>>>>>>>>>>>>

routing matej@blahoslav, domain blahoslav
localmail router called for matej@blahoslav
route_domain = blahoslav
routelist_item = 192.168.0.0/24 $domain bydns_a
after handling route_lists items, matched = 0
localmail router declined
smarthost router called for matej@blahoslav
route_domain = blahoslav
routelist_item = * smtp.surfbest.net byname
after handling route_lists items, matched = 1
original hostlist=smtp.surfbest.net options=byname
expanded hostlist="smtp.surfbest.net" options=byname
smarthost router: error for blahoslav
message: lookup of host "smtp.surfbest.net" failed in smarthost router
search_tidyup called
matej@blahoslav cannot be resolved at this time:
lookup of host "smtp.surfbest.net" failed in smarthost router
primary_hostname = mitmanek.vysocina
local_domains = @:localhost:mitmanek
local_domains_include_host = true
local_domains_include_host_literals = true
never_users = root
host_lookup = ! *
headers_check_syntax
host_accept_relay = 127.0.0.1 : ::::1 : 192.168.0.0/24
host_auth_accept_relay = *
smtp_verify = false
gecos_pattern = ^([^,:]*)
gecos_name = $1
smtp_accept_queue_per_connection = 100
received_header_text = "Received: \
         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
         {${if def:sender_ident {from ${sender_ident} }}\
         ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
         by ${primary_hostname} \
         ${if def:received_protocol {with ${received_protocol}}} \
         (Exim ${version_number}-${compile_number} (Debian))\n\t\
         id ${message_id}\
         ${if def:received_for {\n\tfor <$received_for>}}"
receiver_try_verify = true
queue_list_requires_admin = false
trusted_groups = mail
prod_requires_admin = false
admin_groups = mail
queue_remote_domains = ${lookup{nequeue}lsearch{/etc/exim/queuelist}{$value}}
auto_thaw = 30s
end
local_delivery:
  driver = appendfile
  group = mail
  mode = 0660
  mode_fail_narrower = false
  envelope_to_add = true
  return_path_add = true
  file = /var/spool/mail/${local_part}
address_pipe:
  driver = pipe
  path = /usr/bin:/bin:/usr/local/bin
  group=mail
  return_fail_output=true
  use_shell=true
address_file:
  driver = appendfile
  envelope_to_add = true
  return_path_add = true
address_directory:
  driver = appendfile
  no_from_hack
  prefix = ""
  suffix = ""
  directory = /home/${local_part}/Maildir/main/
  maildir_format
address_reply:
  driver = autoreply
procmail_pipe:
  driver = pipe
  command = "/usr/bin/procmail"
  return_path_add
  delivery_date_add
  envelope_to_add
  suffix = ""
remote_smtp:
  driver = smtp
end
system_aliases:
  driver = aliasfile
  file_transport = address_file
  pipe_transport = address_pipe
  file = /etc/aliases
  search_type = lsearch
userforward:
  driver = forwardfile
  file_transport = address_file
  directory_transport = address_directory
  pipe_transport = address_pipe
  reply_transport = address_reply
  no_verify
  check_ancestor
  check_local_user
  file = .forward
  #modemask = 002
  filter
procmail:
  driver = localuser
  transport = procmail_pipe
  require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
  no_verify
localuser:
  driver = localuser
  transport = local_delivery
end
localmail:
  driver = domainlist
  transport = remote_smtp
  route_list = 192.168.0.0/24 $domain bydns_a
smarthost:
  driver = domainlist
  transport = remote_smtp
  route_list = * smtp.surfbest.net byname
end
*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h
end
matej@* "${if match {$header_from:}{cepl@???} \
               {cepl@???}{matej@???}}" Fsq
ceplova@* ceplova@??? frFsq
anna@* anna@??? frFsq
rssfeed@* rssfeed@??? Fsq
end

# $Id: hosts,v 1.8 2003/10/09 15:33:16 root Exp root $
# This computer
127.0.0.1    localhost.localdomain localhost


# Names of the home network
192.168.0.1    mitmanek.vysocina mitmanek
192.168.0.3    blahoslav.vysocina blahoslav
192.168.0.4    komensky.vysocina komensky
192.168.0.5    kosatec.vysocina kosatec
192.168.0.6    daniela.vysocina daniela


# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1    ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

nameserver 198.6.1.6
nameserver 198.6.100.6