Share your knowledge at the LQ Wiki.
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 10-06-2010, 04:56 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
postfix 2.6.5 rejecting email to all recipients if one recipient is bad

I have an ubuntu server running postfix 2.6.5 (configured using DTC).

If a user tries to send an email to more than one recipient, and one recipient address is bad, then the server returns an error and no mail is sent (even to the good addresses), rather than letting the good ones through.

Error displayed by thunderbird is
"An error occurred while sending mail. The mail server responded:  5.1.1 <>: Recipient address rejected: User unknown in virtual mailbox table. Please check the message recipient and try again."
and mail.log shows ...
Oct  6 20:35:08 www1 postfix/smtpd[22716]: connect from xxxxxx []
Oct  6 20:35:08 www1 postfix/smtpd[22716]: B62F92A44: client=xxxxxx [], sasl_method=PLAIN,
Oct  6 20:35:08 www1 postfix/smtpd[22716]: B62F92A44: reject: RCPT from xxxxxx []: 550 5.1.1 <>: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=<> proto=ESMTP helo=<[]>
what I am looking for is the setting in that might be responsible snippet below ...

# See /usr/share/postfix/ for a commented, more complete version

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =,,, localhost
relayhost = 
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
message_size_limit = 20971520
recipient_delimiter = +
inet_interfaces = all
# Configured by DTC v0.12 : Please don't touch this line !
# DTC virtual configuration
myhostname =
# disable the following functionality by default (otherwise can't match subdomains correctly)

# Bind on all interfaces by default (needed on CentOS)
inet_interfaces = all

# Sets the sasldb2 path

# disable mailbox size limit by default (user can add to postfix_config_snippets)
mailbox_size_limit = 0

# Amavis AND have been detected as installed, so this has been activated by default
# if this is not what you want, comment it and restart postfix
# This is the default action, AKA signing
# we trigger the other action (scanning via a check_access directive)

virtual_mailbox_domains = hash:/var/lib/dtc/etc/postfix_virtual_mailbox_domains

virtual_mailbox_base = /
virtual_mailbox_maps = hash:/var/lib/dtc/etc/postfix_vmailbox
virtual_minimum_uid = 98
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_uid_maps = hash:/var/lib/dtc/etc/postfix_virtual_uid_mapping
virtual_alias_maps = hash:/var/lib/dtc/etc/postfix_virtual
alias_maps = hash:/etc/aliases, hash:/var/lib/dtc/etc/postfix_aliases
relay_domains = /var/lib/dtc/etc/postfix_relay_domains
relay_recipient_maps = hash:/var/lib/dtc/etc/postfix_relay_recipients 
smtpd_delay_reject = yes
smtpd_helo_required = yes
disable_vrfy_command = yes

smtp_tls_security_level = may

smtpd_recipient_restrictions = permit_mynetworks,
			check_client_access regexp:/etc/postfix/maps/relaying_stoplist,
			check_sender_access regexp:/etc/postfix/filter_10026_catchall
smtp_sasl_auth_enable = no
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = /etc/mailname
smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = no
smtpd_sender_restrictions = permit_mynetworks,
				check_policy_service unix:private/tumgreyspf,

# spam learning transport maps
transport_maps = hash:/etc/postfix/transport

# /var/lib/dtc/etc/postfix_config_snippets
# this file is appended to the postfix configure, in case you need to override some configure parameters in the postfix
bounce_queue_lifetime = 3d
maximal_queue_lifetime = 3d
header_checks = regexp:/etc/postfix/maps/header_checks
body_checks = regexp:/etc/postfix/maps/body_checks
mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
smtpd_client_restrictions = permit_mynetworks,
	check_client_access regexp:/etc/postfix/maps/relaying_stoplist,

virtual_transport = maildrop
## Set to 1 because Maildrop only delivers one message at a time.
maildrop_destination_recipient_limit = 1
# End of DTC configuration v0.12 : please don't touch this line !
Old 10-06-2010, 05:11 AM   #2
LQ Newbie
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
more info. My client reports that it happens for them when sending to external email addresses (through my server) but I can only replicate it when sending to a bogus address on my own server.


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
Can Postfix do this? (changing recipients, but storing old recipients in elsewhere) kongi123 Linux - Server 1 04-24-2010 12:14 AM
Rejecting mail where sender matches recipient in postfix Gethyn Linux - Server 3 08-23-2009 10:51 AM
Rejecting International Email (Postfix) carlosinfl Linux - Server 2 04-30-2008 09:48 AM
Postifx Rejecting Email = Why? carlosinfl Linux - Server 4 01-25-2008 03:23 PM
Postfix rejecting connections atmadrau Linux - Server 5 02-20-2007 07:56 AM

All times are GMT -5. The time now is 03:25 PM.

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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration