Re: [Exim] rewriting ... isn't

Top Page
Delete this message
Reply to this message
Author: Ian D Crorie
Date:  
To: Gary Colman, exim-users
Subject: Re: [Exim] rewriting ... isn't
> Hi
>
> I want to rewrite mail where the From field
> where the mail originates from:
>
> user@host
>
> (ie. no FQDN).
>
> I have tried:
>
> *@[^\.]+         $local_part@???    Ff

>
>
> But it doesn't work ...
> How can I scan for a hostname that doesn't contain a dot and rewrite it?



This works for us as a general address rewriter (not just for
the From field):

^[^@]+@[^.]+$ $local_part@$domain.bit.to.add

Make sure you have it at the end of the configure file in the rewrite
section.    Note also that it appends .bit.to.add to the existing
hostname - if I understand your example above you will want to make
the right hand side look like:


    $local_part@???





---
I always wanted to be someone - I guess I should have been more specific