On 6/23/2010 2:12 PM, Phil Howard wrote:
On Wed, Jun 23, 2010 at 14:12, Noel Jones<[email protected]> wrote:
It's about controlling when the check takes place.
Some people like to reject unlisted recipients before other (maybe more
expensive) checks. Some people like to reject connections for RBL or
blacklist before checking recipients to not "leak" information about valid
recipients.
It's about choice and local policy; either way is valid.
I suspected that. But that is part of the question. One is a list of
policies. The other is one policy. What is the relationship of the
single to the list?
They do the same thing. You can choose to let the default
setting take care of it, or you can control it yourself.
If you have "smtpd_reject_unlisted_recipient =
yes" then does that happen before or after
"smtpd_recipient_restrictions = whatever"?
After. This is not specifically documented, so is subject to
change.
It seems that
smtpd_reject_unlisted_recipient is pointless since
"smtpd_recipient_restrictions" can do it AND be clear about what order
it is done. Maybe smtpd_reject_unlisted_recipient is an older config
item? But the documentation doesn't say it's no longer needed.
It's harmless to leave it set -- postfix doesn't repeat the
check -- so the docs doesn't address it. It's not practical
for the documentation to list everything you should *not* do,
or everything you can do that's pointless.
Read the HISTORY file included with postfix and list archives
for details about where something came from.
I had "smtpd_reject_unlisted_recipient = yes" but it doesn't seem to
work (it still accepts mail for unknown/non-existent recipients and
sends a bounce back).
Then you broke recipient validation. The most frequent cause of this is
wildcard "@domain1 @domain2" entries in either virtual_alias_maps or
*canonical_maps.
Obviously broken, but I don't have any entries like those. So it's
something else.
Open a new thread for that problem. Include evidence such as
"postconf -n", and postfix log entries of unwanted behavior.
-- Noel Jones