I have the next configuration:
- FreeBSD 4.4
- Exim 4.10
- dialup Internet with dynamic IP address.
I want to rewrite remote messages headers and I wrote the next configuration file:
####################################
primary_hostname = server.local.net
log_selector = +all
domainlist local_domains = @:localhost:local.net
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1:192.168.4.0/24
hostlist relay_hosts = 192.168.4.0/24
queue_domains = ! *.local.net
acl_smtp_rcpt = acl_check_rcpt
qualify_domain = server.local.net
qualify_recipient = server.local.net
never_users = root: daemon: bin
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 30s
sender_unqualified_hosts = 192.168.4.0/24
recipient_unqualified_hosts = 192.168.4.0/24
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
acl_check_rcpt:
accept hosts = :
deny local_parts = ^.*[@%!/|] : ^\\.
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept domains = +local_domains
endpass
message = unknown user
verify = recipient
accept domains = +relay_to_domains
endpass
message = unrouteable address
verify = recipient
accept hosts = +relay_from_hosts
accept authenticated = *
deny message = relay not permitted
begin routers
send_to_gateway:
driver = manualroute
domains = !+local_domains
transport = ${if match{$domain}{\N\.local\.net$\N}{local_delivery}{remote_smtp}}
route_list = * mx.kaluga.ru
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
localuser:
driver = accept
check_local_user
transport = local_delivery
begin transports
remote_smtp:
driver = smtp
headers_rewrite = *@*.local.net ${lookup{$1}lsearch{/etc/mail/pseudo}{$value}fail} h
return_path = ${if match{$return_path}{\N^([^@]+)@(.*)\.local\.net$\N}\
{${lookup{$1} lsearch{/etc/mail/pseudo}{$value}fail}}fail}
local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators
##################################################################
But headers does not rewrote.Why? What's wrong?
Alexander Logvinov.