View Single Post

  #1 (permalink)  
Old 03-17-2005
syriusz
 
Posts: n/a
Default How to resolve conflict between aliases?


My Postfix configuration is the following:

in "virtual_alias_maps" I've got one domain: YY.com

postfix works on main domain XX.com which is set in "myhostname" parameter

alias "user@YY.com" points to local mail account "user"

in /etc/aliases file (which store mail aliases for main XX.com domain) there
is assigment: "user" -> "temp"

The problem is:

Message addressed to "user@YY.com" is delivered to local account "temp"
instead of local account "user"
Message addressed to "user@XX.com" is properly delivered to local account
"temp".

As I see in postfix logs: alias "user@YY.com" is resolved as
"user@XX.com" (according to "virtual_alias_maps"), and then once again
alias "user@XX.com" is needlessly resolved as local account
"temp" (according to "/etc/aliases" file)... :/

How to resolve this problem?
Do you have any idea?

The point is:

message addressed to user@YY.com should be delivered to local accout "user",
and message addressed to user@XX.com should be delivered to local account
"temp".

So, there is a kind of conflict between real local account "user" and an
alias in /etc/aliases file assigning "user" into local account "temp"...

I would be grateful for any help.

Best regards.

syriusz

Reply With Quote