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've just setup a mail server on a CentOS dedicated server. I can successfully send email and receive email, using TLS and everything, so that part is perfect.

The problem, however, is that I can't send emails to people from the same server using an email from the same server.

So, can't send emails to, but can send emails to both and

I can't send emails from to

A snippet from my maillog:

Dec 22 07:58:34 king postfix/smtpd[13022]: NOQUEUE: reject: RCPT from[]: 550 5.1.1 <>:
Recipient address rejected: User unknown in virtual alias table; from=<> to=<> proto=ESMTP helo=<>

Not too sure what information to give, so let me if you need more info. As I said, I can email properly using my

Note: All email addresses are fictional.

EDIT: I should specify that I use Virtualmin. I have the virtual_alias_maps set in my to virtual_alias_maps = hash:/etc/postfix/virtual. In the virtual file, I got plenty of entries generated by Virtualmin such as:        jason.valdron
share|improve this question
up vote 1 down vote accepted

You have put your local domain in virtual_alias_domains.

Don't do this.

share|improve this answer
Not really a clear answer..."You have to do X, don't do X." – Bart Silverstrim Dec 22 '11 at 13:22
Check out my edit. Also, @BartSilverstrim, it's a proper answer, he said that I did something, but don't do it. However, the phrasing used is kinda weird :) – jValdron Dec 22 '11 at 13:31
AH that's what got me. I read a "to" in it when there wasn't, like you have to do X. Now I see. Derp on me. – Bart Silverstrim Dec 22 '11 at 13:42
Was kinda that, my local domain was in my maps, thanks! – jValdron Dec 22 '11 at 14:12
As documented, virtual_alias_domains defaults to $virtual_alias_maps, and any bare domain in virtual_alias_maps is automatically a virtual_alias_domain. This is legacy behaviour. – adaptr Dec 22 '11 at 15:44

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.