Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-13-2010, 07:56 PM   #1
LQ Newbie
Registered: Jan 2005
Location: Dallas, TX
Distribution: Ubuntu 6.10
Posts: 24

Rep: Reputation: 15
Server refuses mail with 550 5.1.1 : Recipient address rejected: User unknown ...

Hello, everyone,

I'm having a problem whereby I'm able to send mail to a mailbox from several different email addresses and SMTP servers (gmail, RoadRunner broadband), but I'm unable to send mail to the same address from one particular account, the SMTP server for which runs on a mediaTemple (dv) 3.0 box with CentOS 5 Final.

I've spent a full workday on the forums, trying to troubleshoot the issue, and I'm running out of ideas.

The server on which I'm having the mail processing problem is a mediaTemple (ve) running Ubuntu 10.04 x64 (Linux 2.6.18-028stab070.7 #1 SMP Fri Oct 1 13:53:00 MSD 2010 x86_64 GNU/Linux), with ISPConfig 3. Here's how I setup the mail-related aspects of the Ubuntu box:

apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d
aptitude install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl
I basically stitched together the relevant pieces of these two tutorials (with several modifications, although most were minor and unrelated to mail); I wanted Dovecot instead of Courier, hence the second tutorial:

(from this page onward)

(substituted the Dovecot-specific portions of this tutorial into the above steps)

I didn't make any changes (at least not directly; ISPConfig may have) to /etc/postfix/ or /etc/postfix/ Here are the relevant parts of both files:


dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=
        -o strict_rfc821_envelopes=yes
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=

myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =, localhost, localhost.localdomain
relayhost =
mynetworks = [::1]/128
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/, mysql:/etc/postfix/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/
virtual_mailbox_maps = proxy:mysql:/etc/postfix/
virtual_mailbox_base = /var/vmail
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/
relay_domains = mysql:/etc/postfix/
relay_recipient_maps = mysql:/etc/postfix/
virtual_transport = dovecot
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
content_filter = amavis:[]:10024
receive_override_options = no_address_mappings
message_size_limit = 0
inet_protocols = ipv4
soft_bounce = no
In Webmin, I have the following under Servers. I'm new to this setup, and I don't know if Fetchmail and Sendmail are even necessary, given that Dovecot and Postfix are installed (any guidance there?). Hopefully, they're not interfering.

Apache Webserver
Dovecot IMAP/POP3 Server
Fetchmail Mail Retrieval
MySQL Database Server
Postfix Mail Server
Read User Mail
SSH Server
Sendmail Mail Server
SpamAssassin Mail Filter
Webalizer Logfile Analysis

Whenever I try to send mail from to (those aren't my real email addresses, obviously), the following events are logged:


Nov 13 16:40:55 ve postfix/smtpd[11341]: NOQUEUE: reject: RCPT from[]: 550 5.1.1 <>: Recipient address rejected: User unknown in local recipient table; from=<> to=<> proto=ESMTP helo=<>
Nov 13 16:40:55 ve postfix/smtpd[11341]: disconnect from[]

Nov 13 16:40:55 ve postfix/smtpd[11341]: NOQUEUE: reject: RCPT from[]: 550 5.1.1 : Recipient address rejected: User unknown in local recipient table; from= to= proto=ESMTP helo=
Nov 13 16:40:55 ve postfix/smtpd[11341]: disconnect from[]
(I don't know if the fact that from= to= and helo= are all without values in the first message is a problem or not. Thoughts?)

I have not changed the default amavis log location, although, there is no file at what I understand to be the default location, /var/log/amavis.log. I assume that amavis has yet to come into the picture at this juncture.

Here's the response that I receive from, when refuses the delivery:

Hi. This is the qmail-send program at
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<>: does not like recipient.
Remote host said: 550 5.1.1 <>: Recipient address rejected: User unknown in local recipient table
Giving up on

--- Below this line is a copy of the message.

Return-Path: <>
Received: (qmail 24521 invoked from network); 13 Nov 2010 16:40:54 -0800
Received: from (HELO ? (
  by with (AES256-SHA encrypted) SMTP; 13 Nov 2010 16:40:54 -0800
Message-ID: <>
Date: Sat, 13 Nov 2010 19:40:49 -0500
From: Me <>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6
MIME-Version: 1.0
To: Me <>
Subject: Test
X-Enigmail-Version: 1.1.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
The mailbox setup within ISPConfig appears to be correct. I'm positive that the mailbox exists, because I'm able to send mail from it (using authentication), and the mail reaches its destination (even when sending to and I'm able to log into the account through webmail (roundcube).

If I look at the MySQL tables that are referenced in the .cf files (within /etc/postfix/, the mailbox to which I am attempting to send mail from my other domain is indeed present.

I've tried adding to every whitelist I can find, but nothing changes. SpamAssasin is turned-off for the domain and mailbox within ISPConfig.

This doesn't seem like a DNS issue, does it? I believe that my DNS records are configured correctly:

A 	* 	0 	
A 	0 	
A 	0 	
A 	0 	
MX 	10 	
NS 	0 	
NS 	0
The Reverse DNS record at mediaTemple is pointed at, which is the automatically-assigned hostname that mediaTemple gave the Ubuntu (ve) server upon provisioning.

I have tried sending to, and I receive a failure message, too, but the reason is "Relay access denied".

Any help would be deeply appreciated. This has been frustrating me for days. Thanks for your time and assistance!
Old 11-14-2010, 12:36 AM   #2
Registered: Apr 2005
Distribution: Debian, OpenBSD,Fedora,RedHat
Posts: 228
Blog Entries: 1

Rep: Reputation: 31
Did you tried to change line
mydestination =, localhost, localhost.localdomain
mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain
also what is in your database set up for users....
what have you in table users in your myslql, is user you want to send mail created at all on system ?

Old 11-14-2010, 02:21 PM   #3
LQ Newbie
Registered: Jan 2005
Location: Dallas, TX
Distribution: Ubuntu 6.10
Posts: 24

Original Poster
Rep: Reputation: 15
Thank you for your timely response, sarajevo!

I tried your suggestion, but the change caused an error in the mail log:

Nov 14 09:54:44 ve postfix[24492]: warning: unreasonable macro call nesting: "myhostname"
Nov 14 09:54:44 ve postfix[24492]: fatal: dictionary mail_dict: macro processing error
However, your comments got me thinking, and I noticed dozens of log entries containing the following:

Nov 10 18:37:49 ve postfix/trivial-rewrite[3151]: warning: do not list domain in BOTH mydestination and virtual_mailbox_domains
So, I simply removed from the beginning of that line in /etc/postfix/ and now I'm able to send mail to the intended recipient!

I had read elsewhere that the above warning could be ignored, and that it was normal when a virtual mailbox domain is created with the same name as the server's hostname. Based on this experience, however, it seems that the warning cannot be ignored -- at least if the mail server is to function properly!

I appear to be sorted here; thanks again!
Old 12-21-2011, 05:32 AM   #4
LQ Newbie
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Thanks, i had the same problem and your solution was perfect form me.
Old 06-28-2017, 09:47 PM   #5
LQ Newbie
Registered: Jun 2017
Posts: 2

Rep: Reputation: Disabled
Hi Guys,

I followed above instructions but still, the problem persists.

Any advice?

Old 06-29-2017, 03:06 PM   #6
LQ Newbie
Registered: Jun 2017
Posts: 2

Rep: Reputation: Disabled
finally i figured this out, in my case i sued this command: /usr/local/psa/bin/domain -u -mail_service false

working fine now


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipient address rejected: User unknown in virtual alias table Phiggy Linux - Server 6 11-08-2009 05:34 PM
Recipient address rejected: User unknown in virtual mailbox table Sleen Linux - Server 5 08-25-2007 01:09 AM
qmail stats:Recipient address rejected: User unknown in virtual alias table/Giving up Niceman2005 Linux - Software 0 08-19-2007 08:13 PM
Recipient address rejected gabsik Linux - Networking 2 10-18-2006 12:45 PM
Postfix: Recipient address rejected: Relay access denied; stormrider_may Linux - Networking 5 02-18-2006 05:38 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration