[exim] .forward to external address

Góra strony
Delete this message
Reply to this message
Autor: Matthew Daubenspeck
Data:  
Dla: exim-users
Temat: [exim] .forward to external address
With my old exim3 setup I used to have a separate director that would
deliver mail send to local aliases to external addresses. I have used
this for years without any problems and am trying to duplicate this on a
new exim4 server with little luck.

Instead of using a file with the appropriate alias files, I figured it
would be easier to use .forward files, so users can change it if they
need to. However, when the filter tries to resend the message it is
rejected because the external domain is not considered local. Here is
the .forward router (which is listed first):

userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
allow_filter
directory_transport = address_directory
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

And this is the error I recieve:

2005-07-01 10:26:19 1DoMT2-0001Wx-Nv <= test@??? H=localhost [127.0.0.1] P=smtp S=926
2005-07-01 10:26:19 1DoMT2-0001Wx-Nv ** foo@??? <foo@???>: Unknown user
2005-07-01 10:26:19 1DoMTD-0001X2-DI <= <> R=1DoMT2-0001Wx-Nv U=mail P=local S=1743
2005-07-01 10:26:19 1DoMT2-0001Wx-Nv Completed
2005-07-01 10:26:19 1DoMTD-0001X2-DI => test <test@???> R=localuser T=local_delivery
2005-07-01 10:26:19 1DoMTD-0001X2-DI Completed

Lastly, the .forward:

# Exim filter

if $h_To: contains "foo@???"
then
deliver foo@???
endif

I would appreciate any help or direction someone can give me. Thanks!
--
Matthew Daubenspeck
http://www.oddprocess.org

14:19:41 up 12 days, 20:41, 1 user, load average: 0.16, 0.12, 0.10