[Exim] Exim 4 migration issues

Top Page
Delete this message
Reply to this message
Author: David M Walker
Date:  
To: exim-users
Subject: [Exim] Exim 4 migration issues
Hi,

I've just upgraded to exim 4 from exim 3 and have run into
a number of
issues that are causing a very late night and a plan for a
long day so
any and all help gratefully received

The config file is below. This is a virtualhosting
arrangement with a
couple of hundred domains.

Each domain has it's own directories under /monza/clients/
{domains}
including an etc/passwd and an etc/aliases file that are
controlled
by the client and there is a /etc/exim/local_domains.dat
that we control
which is used to determine which domains are local.

What's not working:

1. Previously (exim3) we used to have aliases that allowed
the
following:

        *: default@???


This I guess is an ordering issue with the router but I
couldn't
get the right combination. Clients like it even if I
think that
they get more spam because of it

2. Forwards work fine but autoreply doesn't and I can't
see how to
include a .autoreply file if it exists

3. Local users deliver fine but unknown local users just
end up
with the following log messages instead of being
rejected

2003-09-14 15:31:32 19yfP2-0004iM-FR <=
user@??? U=root P=local S=310 T="lost in
space"
2003-09-14 15:31:32 19yfP2-0004iM-FR Failed to find
user "" from expanded string
    "${extract{2}{:}{${lookup{$local_part}lsearch
{/monza/clients/${domain}/etc/passwd}{$value}{mail}}}}"
      for the userforward router
2003-09-14 15:31:32 19yfP2-0004iM-FR == xxx@???
R=userforward defer (-1):
    Failed to find user "" from expanded string
    "${extract{2}{:}{${lookup{$local_part}lsearch
{/monza/clients/${domain}/etc/passwd}{$value}{mail}}}}"
    for the userforward router


which implies it failed on the forward and never got
around to
being discarded

Any and all help gratefully received - I've lost the faith
after
an afternoon trying to get it to work

Thanks
davidw


###########################################################
###########
#                      ROUTERS
CONFIGURATION                         #
###########################################################
###########


begin routers

# Deal with all non-local domains
dnslookup:
driver = dnslookup
domains = ! lsearch;/etc/exim/local_domains.dat
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

# Handle aliases
virtual_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/monza/clients/
${domain}/etc/aliases}}
file_transport = address_file
pipe_transport = address_pipe

# Handle forwards
userforward:
driver = redirect
user = ${extract{2}{:}{${lookup{$local_part}lsearch
{/monza/clients/${domain}/etc/passwd}{$value}{mail}}}}
group = mail
file = "${extract{5}{:}{${expand:${lookup{$local_part}
lsearch{/monza/clients/${domain}/etc/passwd}
{$value}}}}}/.forward"
no_verify
no_expn
check_ancestor
allow_filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

# Handle local users
localuser:
driver = accept
user = ${extract{2}{:}{${lookup{$local_part}lsearch
{/monza/clients/${domain}/etc/passwd}{$value}{mail}}}}
group = mail
transport = virtual_localdelivery
cannot_route_message = Unknown user

###########################################################
###########
#                      TRANSPORTS
CONFIGURATION                      #
###########################################################
###########


begin transports

remote_smtp:
driver = smtp

virtual_localdelivery:
driver = appendfile
file = /monza/clients/${domain}/mail/${local_part}
delivery_date_add
envelope_to_add
return_path_add
user = ${extract{2}{:}{${lookup{$local_part}lsearch
{/monza/clients/${domain}/etc/passwd}{$value}{mail}}}}
group = mail
mode = 0660

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add

address_reply:
  driver = autoreply
  from = $local_part@$domain
  to = $sender_address
  subject = "Reply re: $header_subject:"
  file = "${extract{5}{:}{${expand:${lookup{$local_part}
lsearch{/monza/clients/${domain}/etc/passwd}
{$value}}}}}/.autoreply"
  user = mail
--------------------------------------------------------------------
                    Data Management And Warehousing


David M. Walker                            Tel:  +44 (0)7050 028 911
138, Finchampstead Road,  Wokingham,       Fax:  +44 (0)7050 028 912
Berkshire, RG41 2NU, United Kingdom.       Data: +44 (0)7050 028 913


http://www.datamgmt.com                   mailto:davidw@datamgmt.com
--------------------------------------------------------------------