Problem with recipient_canonical

This is a discussion on Problem with recipient_canonical within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I want to replace, on receipt of a mail, an alias adress by adresses listed upon this alias. So, I ...


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 11-22-2006
BV
 
Posts: n/a
Default Problem with recipient_canonical

I want to replace, on receipt of a mail, an alias adress by adresses listed
upon this alias.
So, I use a recipient_canonical table called from main.cf
The syntax is :
aliasname1 username1, username2, username3, username4
aliasname2 username5, username6...
....

The incoming message is received normally but the problem is that only the
first username receive the message
Probably I have a syntax problem ?
Who can help me and give me instructions to find the good way ?

Thanks for help


Reply With Quote
  #2 (permalink)  
Old 11-22-2006
Greg Hackney
 
Posts: n/a
Default Re: Problem with recipient_canonical

BV wrote:
> I want to replace, on receipt of a mail, an alias adress by adresses listed
> upon this alias.
> So, I use a recipient_canonical table called from main.cf
> The syntax is :
> aliasname1 username1, username2, username3, username4
> aliasname2 username5, username6...
> ...
>
> The incoming message is received normally but the problem is that only the
> first username receive the message
> Probably I have a syntax problem ?
> Who can help me and give me instructions to find the good way ?
>
> Thanks for help



You are confusing "canonical" with "alias".

canonical maps are used to rewrite individual recipient
addresses one by one, in the email headers, in order to make
the address syntax correct (address mapping). Example:

@olddomain.com @newdomain.com
user@domain.com user@machine.corp.domain.com

Alias maps are used to redirect mail to one or more recipients.

More specifically, alias_maps are used when the domain name of
the original recipient is local, and virtual_alias_maps used
when the original recipient domain is either local or remote.

References:

man 5 canonical
man 5 aliases
man 5 postconf

--
Greg









Reply With Quote
  #3 (permalink)  
Old 11-22-2006
Greg Hackney
 
Posts: n/a
Default Re: Problem with recipient_canonical

BV wrote:
> I want to replace, on receipt of a mail, an alias adress by adresses listed
> upon this alias.
> So, I use a recipient_canonical table called from main.cf
> The syntax is :
> aliasname1 username1, username2, username3, username4
> aliasname2 username5, username6...
> ...
>
> The incoming message is received normally but the problem is that only the
> first username receive the message
> Probably I have a syntax problem ?
> Who can help me and give me instructions to find the good way ?
>
> Thanks for help
>
>



You are confusing "canonical" with "alias".

canonical maps are used to rewrite individual recipient
addresses one by one, in the email headers, in order to make
the address syntax correct (address mapping). Examples:

canonical_maps:
@olddomain.com @newdomain.com

sender_canonical_maps:
user@machine.corp.mydomain.com user@mydomain.com

recipient_canonical_maps:
user@mydomain.com user@machine.corp.mydomain.com


Alias maps are used to redirect mail to one or more recipients.

More specifically, alias_maps are used when the domain name of
the original recipient is local, and virtual_alias_maps used
when the original recipient domain is either local or remote.

References:

man 5 canonical
man 5 aliases
man 5 postconf

--
Greg






Reply With Quote
  #4 (permalink)  
Old 11-23-2006
BV
 
Posts: n/a
Default Re: Problem with recipient_canonical


"Greg Hackney" <hackney@swbell.net> a écrit dans le message de news:
ivZ8h.24658$yl4.5132@newssvr12.news.prodigy.com...
> BV wrote:
>> I want to replace, on receipt of a mail, an alias adress by adresses
>> listed upon this alias.
>> So, I use a recipient_canonical table called from main.cf
>> The syntax is :
>> aliasname1 username1, username2, username3, username4
>> aliasname2 username5, username6...
>> ...
>>
>> The incoming message is received normally but the problem is that only
>> the first username receive the message
>> Probably I have a syntax problem ?
>> Who can help me and give me instructions to find the good way ?
>>
>> Thanks for help

>
>
> You are confusing "canonical" with "alias".
>
> canonical maps are used to rewrite individual recipient
> addresses one by one, in the email headers, in order to make
> the address syntax correct (address mapping). Examples:
>
> canonical_maps:
> @olddomain.com @newdomain.com
>
> sender_canonical_maps:
> user@machine.corp.mydomain.com user@mydomain.com
>
> recipient_canonical_maps:
> user@mydomain.com user@machine.corp.mydomain.com
>
>
> Alias maps are used to redirect mail to one or more recipients.
>
> More specifically, alias_maps are used when the domain name of
> the original recipient is local, and virtual_alias_maps used
> when the original recipient domain is either local or remote.
>
> References:
>
> man 5 canonical
> man 5 aliases
> man 5 postconf
>
> --
> Greg
>
>
>

Ok, You are right, I have confused these two items. I try according your
instructions.
Thanks Greg for your help on this matter.

BV

>
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 01:15 AM.


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