How to resolve conflict between aliases?

This is a discussion on How to resolve conflict between aliases? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; My Postfix configuration is the following: in "virtual_alias_maps" I've got one domain: YY.com postfix works on ...


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 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
  #2 (permalink)  
Old 03-18-2005
Julia Thorne
 
Posts: n/a
Default Re: How to resolve conflict between aliases?

On Thu, 17 Mar 2005 10:55:08 +0100, syriusz wrote:

> <snipped tech details about user aliased to temp>


> 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"...


It's not a conflict as far as Postfix is concerned. Postfix is
behaving exactly as it should. My suggestion is to remove the
redirection of user -> temp, and replace it with two specific
aliases, probably in the file "virtual" (depending on your config):

user@xx.com temp
user@yy.com user



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 04:03 PM.


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