Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to configure postfix to use 2 domains for my accounts, for example, I had and now I want to use , my current mail use my Unix Accounts ... I add user usermail and I get , so now, I want all those accounts and the new accounts to receive and send all mails from too...

So, what after set the domain, MX records and all... I added in my linux (debian) as host (in /var/hosts) the ip xx.xx.xx.xx ( was already there) and in my postfix configuration I thought about to treat it as an alias domain... so, I did this:

virtual_alias_domains =
virtual_alias_maps = hash:/etc/postfix/virtual

/etc/postfix/virtual: postmaster (my Unix Account)

Then I did postmap /etc/postfix/virtual and /etc/init.d/postfix restart

I can send mails to my old accounts in .. but I cant receive them.. it doesnt work.. and of course I can't send mails from those accounts.

Any idea how to make this configuration? or if my configuration has something wrong??

I added my domain as another VirtualHost on my apache.. not as an alias of the other Thanks in advance.

share|improve this question

Check /etc/aliases (or /etc/postfix/aliases, check to see exact location) if there is any alias for postmaster user. Delete it if so because mail will be delivered to expended address.

Mail for name is delivered to the alias name, to destinations in ~name/.forward, to the mailbox owned by the user name, or it is sent back as undeliverable.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.