Re: [exim] Rewrite rule message

Top Page
Delete this message
Reply to this message
Author: Fabien LUCE
Date:  
To: exim-users, Fabien LUCE
Subject: Re: [exim] Rewrite rule message
HI,

here is my exim4.conf

primary_hostname = serveur.lutix.org
domainlist local_domains = lutix.org : serveur.lutix.org : @
domainlist relay_to_domains =
hostlist   relay_from_hosts = 127.0.0.1
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
never_users = root
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
  accept  hosts = :
  deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]
  deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
  accept  local_parts   = postmaster
          domains       = +local_domains
  require verify        = sender
  accept  hosts         = +relay_from_hosts
          control       = submission
  accept  authenticated = *
          control       = submission
  require message = relay not permitted
          domains = +local_domains : +relay_to_domains
  require verify = recipient
  accept
  accept
begin routers
 driver = manualroute
 route_list = atom.lutix.org atom.lutix.org
 transport = remote_smtp
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  no_more
  driver = redirect
  allow_fail
  allow_defer
  data = ${lookup{$local_part}lsearch{/etc/aliases}}
  file_transport = address_file
  pipe_transport = address_pipe
  driver = redirect
  check_local_user
  file = $home/.forward
  no_verify
  no_expn
  check_ancestor
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  driver = accept
  check_local_user
  transport = local_delivery
  cannot_route_message = Unknown user
begin transports
  driver = smtp
  driver = appendfile
  file = /var/mail/$local_part
  delivery_date_add
  envelope_to_add
  return_path_add
  driver = pipe
  return_output
  driver = appendfile
  delivery_date_add
  envelope_to_add
  return_path_add
  driver = autoreply
begin retry
*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators



THanks for your advice!

2010/2/26 Phil Pennock <exim-users@???>

> On 2010-02-25 at 14:58 +0100, Fabien LUCE wrote:
> > HI everyone,
> >
> > i'm trying to rewrite the From field for all my messages that comes to my
> > exim server.
> > Here is my rule:
> > *@*.lutix.org $1@???
> >
> > and then for example:
> > exim -brw ftg@???
> >
> >   sender: ftg@???
> >     from: ftg@???
> >       to: ftg@???
> >       cc: ftg@???
> >      bcc: ftg@???
> > reply-to: ftg@???
> > env-from: ftg@???
> >   env-to: ftg@???

> >
> > but when i send and email to gmail, the From field is "ftg,,," instead of
> > "ftg". What are the commas for?
>
> You have another rewrite somewhere, or something else setting errors_to,
> or the like.
>
> Show more of the config if you need more assistance, please.
>
> -Phil
>