[exim] address rewriting problem

Top Page
Delete this message
Reply to this message
Author: rich
Date:  
To: exim-users
Subject: [exim] address rewriting problem
Hello,

I know a little exim, but would appreciate some help from an expert. I am
trying to configure the following rewrite on my mail server. E-mails are
being sent from user@???, but I would like them to come
from user@???. I have followed the rewrite config rules as
described here:
http://www.exim.org/exim-html-4.10/doc/html/FAQ_8.html, and my
configuration file contains the following;

########################
begin rewrite

*@*.sportbusiness.com   $1@???    Ffrs


end
########################

however, when I test the configuration file, I get the following error:

exim -C /usr/exim/configure -bV
Exim version 4.10 #1 built 04-Sep-2002 12:58:33
Copyright (c) University of Cambridge 2002
2005-10-27 11:06:22 Exim configuration error in line 518:
missing rewrite replacement string

Where am I going wrong? I have included my config file (minus anything
that is commented out) as I wander if the problem is being caused by
something elsewhere.

Thanks in advance for any suggestions.

Regards

Richard

########config#########

primary_hostname = mail-srv2.sportbusiness.com


domainlist local_domains = localhost : localhost.localdomain : [127.0.0.1]
domainlist relay_to_domains = *@sportbusiness.com : *@sportbusiness.net
*.sportbusiness.net : *.sportbusiness.com : sportbusiness.com :
sportbusiness.net : *.dc.sportbusiness.com : *@*.dc.sportbusiness.com
hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.125 : 192.168.1.126 :
192.168.1.123

acl_smtp_rcpt = acl_check_rcpt

never_users = root

rfc1413_hosts = *
rfc1413_query_timeout = 0s

ignore_bounce_errors_after = 1d

timeout_frozen_after = 1d

smtp_accept_max = 0


begin acl


acl_check_rcpt:

accept hosts = :

  deny    local_parts   = ^.*[@%!/|] : ^\\.


  accept  local_parts   = postmaster
          domains       = +local_domains


  accept  domains       = +local_domains
          endpass
          message       = unknown user
          verify        = recipient


  accept  domains       = +relay_to_domains
          endpass
          message       = aaarrgghhh unrouteable address
          verify        = recipient



  accept  hosts         = +relay_from_hosts


accept authenticated = *

  deny    message       = relay not permitted



dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more




system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
# user = exim
file_transport = address_file
pipe_transport = address_pipe



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


# This router matches local user mailboxes.

localuser:
driver = accept
check_local_user
transport = local_delivery


begin transports


# This transport is used for delivering messages over SMTP connections.

remote_smtp:
driver = smtp


local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
# group = mail
# mode = 0660

address_pipe:
driver = pipe
return_output


# This transport is used for handling deliveries directly to files that
are # generated by aliasing or forwarding.

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add


# This transport is used for handling autoreplies generated by the
filtering # option of the userforward router.

address_reply:
driver = autoreply


# Domain               Error       Retries
# ------               -----       -------


*                      *           F,4h,10m; G,16h,1h,1.5; F,4d,6h


begin rewrite

*@*.sportbusiness.com    $1@???    Ffrs


end

# There are no authenticator specifications in this default configuration
file.

begin authenticators


# End of Exim configuration file