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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 > |
![]() |
| Thread Tools | |
| Display Modes | |
|
|