View Single Post

  #2 (permalink)  
Old 08-03-2003
Torsten Stauder
 
Posts: n/a
Default Re: Rewriting addresses

HI!

If I didn't get you wrong you want to translate email-adresses.
In postfix this is releaseable with a table that is called "canonical-map"
Just create a file that is called for example "canonical" in your
postfix-directory.
Edit this file and add that what you want to translate. For example:

inside@inside.com inside@outside.com

So every mail from inside@inside.com will be masquaraded to
inside@outside.com
After editing this map, type in your shell "postmap canonical". A
database-file "canonical.db" will be created.
Final step: Add the following line into postfix's main.cf and force postfix
to reload the config:
sender_canonical_maps = hash:/etc/postfix/canonical

That's all.


"Rick Deckard" <l_jurgs@yahoo.com.au> schrieb im Newsbeitrag
news:3f2a98d0$1_1@news.iprimus.com.au...
> Hi, I'm running a postfix/mysql/imap courier mail server and was
> wondering how I could about rewriting some addresses. For example:
>
> mail to:
> luke@thisdomain.com.au
> john@thisdomain.com.au
>
> is redirected to:
> luke@thisdomain.com
> john@thisdomain.com
>
> so for any mail sent to thisdomain.com.au
> is redirected to thisdomain.com
>
> Thanks in advance
>
> Deckard
>



Reply With Quote