Le 12/11/2012 14:21, Prashanth P.Nair a écrit :
> great..
> 
> will this also possible in regexp?..change both domain and user part of
> email address ?
> 
> From:mys...@thisdomain.com to yourself@thatdomain.
> <1...@thatdomain.com>
> 

looks like your gmail posting pollutes your message.

anyway,

/^myself@example\.com$/         some...@example.net

works. but you probably want smtp_generic_maps inetas of canonical_*
        http://www.postfix.org/ADDRESS_REWRITING_README.html#generic
        http://www.postfix.org/postconf.5.html#smtp_generic_maps




> On Mon, Nov 12, 2012 at 6:29 PM, Ralf Hildebrandt <r...@sys4.de> wrote:
> 
>> * Prashanth P.Nair <prashanth...@gmail.com>:
>>> How to re-write "From: My Self <mys...@thisdomain.com>" to From: My
>> Self <
>>> mys...@thatdomain.com> using regexp .
>>>
>>> I know the sender_canonical_maps changes both the envelop sender address
>>> and header sender address according to the sender_canonical_classes.
>>>
>>> Below regexp is converting all the emails from @thisdomain.com to
>>> @thatdomain.com.But i need only for specif email address.Any way to
>> achieve
>>> using regexp?
>>>
>>>
>>> /^(.*@)thisdomain.com$/     ${1}thatdomain.com
>>
>> /^(myself|somebodyelse)@thisdomain.com$/     ${1}@thatdomain.com
>>
>> --
>> [*] sys4 AG
>>
>> http://sys4.de, +49 (89) 30 90 46 64
>> Franziskanerstraße 15, 81669 München
>>
>> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
>> Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
>> Aufsichtsratsvorsitzender: Joerg Heidrich
>>
>>
> 

Reply via email to