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'm using:

# cat /etc/*release
CentOS release 6.3 (Final)

# rpm -qa | grep post

on 2 servers: and (yes, funny name)

I own several domains and would like all incoming mails addressing those domains to be forwarded to my Gmail address.

So I have setup the MX-records for my domains:

# host has address mail is handled by 100 mail is handled by 10

# host has address mail is handled by 100 mail is handled by 10

And at the both servers I have added:

# head /etc/postfix/virtual

# postmap /etc/postfix/virtual

# postmap -q "" /etc/postfix/virtual

And have opened port 25 in the firewall:

# grep -w 25 /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW -m tcp -m multiport --dports 25,22 -j ACCEPT

But now when I send a mail to there is nothing to see in postfix logs:

# sudo tail /var/log/maillog
Jan 15 10:50:42 postfix/postfix-script[1401]: starting the Postfix mail system
Jan 15 10:50:42 postfix/master[1402]: daemon started -- version 2.6.6,
configuration /etc/postfix

So I'm probably missing something minor?

BTW the daily logwatch mails arrive from both servers just fine at my Gmail-inbox


I've added these 2 lines to /etc/postfix/

inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost,,

and now I see incoming connections in /var/log/maillog, but they are rejected:

postfix/smtpd[3209]: NOQUEUE: reject: RCPT from[]: 550 5.1.1 <>: Recipient address rejected: User unknown in local recipient table; from=<> to=<> proto=ESMTP helo=<www>
postfix/smtpd[3209]: disconnect from[]

The postconf -n output is below

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost,,
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

What does User unknown in local recipient table mean in the reject log message?

share|improve this question
up vote 1 down vote accepted

If there is nothing in the mail log, then no mail was sent to your server.

The MX records you show mean that as long as is responding to mail, the second MX will never be used.

Please include the output of postconf -n with your post, so we know what you're talking about.

What does User unknown in local recipient table mean in the reject log message?

As documented, postfix by default rejects mail for unknown local recipients. You should define any valid recipients beforehand.

Since your lacks a virtual_alias_maps entry, your virtual file is not used; add the following to and reload:

virtual_alias_maps = /etc/postfix/virtual
share|improve this answer
Thank you, I've added postconf -n output to my question – Alexander Farber Jan 15 '13 at 13:35

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.