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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
"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 > > > |