Re: [EXIM] Problem with header rewrite option q

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Peter Radcliffe
Datum:  
To: exim-users
Betreff: Re: [EXIM] Problem with header rewrite option q
Dr Andrew C Aitchison <A.C.Aitchison@???> probably said:
> Have I misunderstood the "q" in the rewrite rule (if this rule matches
> don't apply any others), or is this a bug in Exim version 1.926 ?


The pair I use are:

# HERE. Set your domain(s) or comment these out depending if you
# want full maskerading and your qualify_domain setting.
# If its from any of the admin addresses, leave the from side alone.
^(?i)(root|postmaster|exim|news|usenet|uucp|daemon|billing|lp|sys)@(.*) \
$1@$2 qFf
# otherwise, rewrite the froms.
*@@ $1@${qualify_recipient} Ffr

[general explanation being I qualify source addresses with the full
host name, and recipient addresses with the domain and then rewrite the
bits I want to rewrite, the only way I found to do rewriting apart
from particular users al la sendmail]

So any of the special addresses from anywhere don't get rewritten
(I feel safe about doing this to anything since it isn't changing
anything, just marking them as "don't rewrite").

The second rule rewrites anything@??? with
anything@${qualify_recipient} in the source addresses (not the sender,
though but including the reply to so that a reply to one of these
addresses ends up central).

pir@moek> exim -brw pir@???
  sender: pir@???
    from: pir@???
      to: pir@???
      cc: pir@???
     bcc: pir@???
reply-to: pir@???
env-from: pir@???
  env-to: pir@???


pir@moek> exim -brw root@???
  sender: root@???
    from: root@???
      to: root@???
      cc: root@???
     bcc: root@???
reply-to: root@???
env-from: root@???
  env-to: root@???


P.

-- 
pir               pir@???      pir@???      pir@???



--
*** Exim information can be found at http://www.exim.org/ ***