Rewriting addresses

This is a discussion on Rewriting addresses within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi, I'm running a postfix/mysql/imap courier mail server and was wondering how I could about rewriting some ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-01-2003
Rick Deckard
 
Posts: n/a
Default Rewriting addresses

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
  #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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:13 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0