Re: [Exim] Converting to v4 questions

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Dan Egli
CC: exim-users
Assumpte: Re: [Exim] Converting to v4 questions
On Thu, 5 Sep 2002, Dan Egli wrote:

> >> How would I define ALL outbound mail to
> >> go to a particular transport?
> >
> >
> > Use an accept router with appropriate pre-conditions to define what
> > you mean by "outbound mail".
> >
>
> Ummm, Ok and how do I do that? I'm still quite the novice at v4.


Guessing that "outbound" means "from the local network or local host".
Let's assume you have a 24-bit local network 192.168.33.0. Untested, off
the top of my head (sorry, no time for more):

outbound:
  driver = accept
  condition = ${if or {  \
                      {eq {$sender_host_address}{}} \
                      {eq {${mask:$sender_host_address/24}}{192.168.33.0/24}} \
                      }  \
               (yes}{no}}
  transport = the_name_of_the_transport


> > Do this kind of check in the ACL. Have you tried passing your v3
> > configuration through the convert4r4 script?
> >
> >
> Ok, and how do I check for that in the ACL?


Take a look at the default configuration file. That has stuff about
authentication, but commented out IIRC. Basically, you just have

accept authenticated=*

in an appropriate place. You also need authenticators, which are
unchanged from Exim 3.

> And as to the script, Yes I
> ran convert4r4. I sent you the config file that convert4r4 didn't parse
> properly. Recall the config line that ended with a _ ?? :>


Yes, I do, but I can't seem to find it any more. But I'm at home at the
moment, and not in my usual environment. I hope I haven't really lost
it.

> That is straight from the config file created by convert4r4. Thats why
> you wanted my v3 file so you could try and fix convert4r4. I'm sure it's
> easy to get folks on this list mixed up though so no worries :>


Oh, indeed. I'm getting absentminded anyway, but I'm now old enough not
to be embarrassed any more. I just grovel when I've been *really* silly.

> #!!# ACL that is used after the RCPT command
> check_recipient:
>   # Exim 3 had no checking on -bs messages, so for compatibility
>   # we accept if the source is local SMTP (i.e. not over TCP/IP).
>   # We do this by testing for an empty sending host field.
>   accept  hosts = :
>   deny    hosts = +auth_hosts
>           message = authentication required
>          !authenticated = *


Oh, look! Your ACL already has the authenticating thing. That should do
what you need. (Along with the authenticators.)

> # This director matches local user mailboxes.
>
> localuser:
> driver = domainlist
> relay_to_
> retry_use_local_part
> route_list = "* shortcircuit.dyndns.org byname"
> transport = shortcircuit


That's *weird* because "domainlist" is an Exim 3 router name, which
convert4r4 shouldn't generate.

What was the original director? (Just in case I have been really silly
and lost your v3 config.)

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.