[Pkg-exim4-users] Local network

Andreas Metzler ametzler@downhill.at.eu.org
Sun, 5 Jun 2005 13:07:40 +0200


----------------
Pkg-exim4-users is a members-only list, please subscribe on
<http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users>
----------------
On 2005-05-29 Matej Cepl <cepl@surfbest.net> wrote:
> I have here very small home network (one server connected to the Internet
> via dial-up -- and BTW with Lucent winmodem, works for many years without a
> hitch :-) and two notebooks connected via Ethernet to the server. Server
> has Debian/woody (and thus Exim version 3.35 #1 built 12-Jan-2005 13:29:10)
> and both notebooks have Exim4
[...]
> With the attached configurations I
> could send easily email from notebook to the wild (or to the server's
> accounts). However, I cannot do two things:

>         a) send email from one notebook to the other one, or send email from
>            server to the notebook,

Hello,
It is possible to configure exim4 as you want it to. However, as this is
an unusual setup, you'll need to do some tweaking. I think you could make
use of the hubbed_hosts router, adding this to
/etc/exim4/conf.d/hubbed_hosts

mitmanek.vysocina:mitmanek
(for every non-local host)

or add a new router like this one:
directtolocalnetwork:
  driver = dnslookup
  domains = !@ : *.vysocina
  transport = remote_smtp

That said, if this was my network I'd setup IMAP on the server instead
of bothering sending mail to the notebooks.

>         b) when the inability of exim to work according to my wishes made me
[...]
>            Is something like that (i.e., different smarthosts
>            defined together -- be it in one or many different files
>            -- according to some external variable -- for example
>            stored in predetermined location, like /tmp/connection,
>            or /var/run/exim-context) possible with exim4?

exim's string-expansion facilities are quite powerful, e.g. this will
fetch the current smarthost from /var/run/exim4/currentsmarthost:

smarthost:
  debug_print = "R: smarthost for $local_part@$domain"
  driver = manualroute
  domains = ! +local_domains
  transport = remote_smtp_smarthost
  route_list = * ${readfile{/var/run/exim4/currentsmarthost}} byname
  host_find_failed = defer
  same_domain_copy_routing = yes
  no_more
        
        cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/