LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-06-2010, 04:56 AM   #1
swaddo
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
Code:
"An error occurred while sending mail. The mail server responded:  5.1.1 <noreply@domain.com.au>: Recipient address rejected: User unknown in virtual mailbox table. Please check the message recipient noreply@domain.com.au and try again."
and mail.log shows ...
Code:
Oct  6 20:35:08 www1 postfix/smtpd[22716]: connect from xxxxxx [xxx.xxx.xxx.xxx]
Oct  6 20:35:08 www1 postfix/smtpd[22716]: B62F92A44: client=xxxxxx [xxx.xxx.xxx.xxx], sasl_method=PLAIN, sasl_username=blake@domain.com.au
Oct  6 20:35:08 www1 postfix/smtpd[22716]: B62F92A44: reject: RCPT from xxxxxx [xxx.xxx.xxx.xxx]: 550 5.1.1 <noreply@domain.com.au>: Recipient address rejected: User unknown in virtual mailbox table; from=<blake@domain.com.au> to=<noreply@domain.com.au> proto=ESMTP helo=<[127.0.0.1]>
what I am looking for is the setting in main.cf that might be responsible

main.cf snippet below ...

Code:
# See /usr/share/postfix/main.cf.dist 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_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
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 = www1.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mx.example.com, www1.example.com, localhost.example.com, localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/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 = mx.example.com
# disable the following functionality by default (otherwise can't match subdomains correctly)
parent_domain_matches_subdomains=

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

# Sets the sasldb2 path
smtpd_sasl_path=/var/lib/dtc/etc/sasldb2

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

# Amavis AND dkimproxy.in 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)
content_filter=dkimsign:[127.0.0.1]:10028

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,
				permit_sasl_authenticated,
			check_client_access regexp:/etc/postfix/maps/relaying_stoplist,
			reject_invalid_hostname,
			reject_non_fqdn_sender,
			reject_non_fqdn_recipient,
			reject_unknown_sender_domain,
			reject_unknown_recipient_domain,
			 reject_rbl_client zen.spamhaus.org,
			reject_unauth_destination,
			check_sender_access regexp:/etc/postfix/filter_10026_catchall
			permit
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,
				permit_sasl_authenticated,
				reject_unauth_destination,
				check_policy_service unix:private/tumgreyspf,
				permit

# 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 main.cf
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,
	permit_sasl_authenticated,
	check_client_access regexp:/etc/postfix/maps/relaying_stoplist,
	permit

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
swaddo
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.
 
  


Reply


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 06:24 PM.

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