7 msgproblem sending cc messages
13 msgPostfix not doing TLS like I need
6 msgcannot open file: File too large
4 msgPostfix, quotas, and bouncing back (rejecting)
2 msgRestrict sending host for some (but not all) re...
1 msgRe: Implementing custom blacklists
6 msgSMTP question
7 msgApplication to integrate Postfix, Dovecot, and ...

How to use smtpd_reject_unlisted_recipient?
\ Ken Morley (12 Jun 2007)
. \ mouss (12 Jun 2007)
. \ berny (12 Jun 2007)
. \ berny (12 Jun 2007)
. \ Ken Morley (13 Jun 2007)
. . \ Sandy Drobic (13 Jun 2007)

2 msgProblem
4 msgSpam issues
1 msgEmails from postfix and php
9 msgPostfix Body Check Questions part 2
12 msgrelay_recipient_maps
5 msgNewbie to both Linux and Postfix looking for he...
3 msgproblem with postfix and dns updates
4 msgSteps to create virtual email boxes
6 msgBest Practices (looking for some) : Attachment ...
1 msghaving postfix deliver mail for one host name i...
2 msgPostfix Body Check Questions
Subject:Re: How to use smtpd_reject_unlisted_recipient?
Group:Postfix-users
From:Sandy Drobic
Date:13 Jun 2007


 
Ken Morley wrote:

> Ken Morley wrote:
>
> I've added reject_unlisted_recipient before postgrey as suggested above:
>
> I've tested and this does configure Postfix to consult relay_recipients
> for valid email addresses before involving Postgrey. I'm guessing that
> Postfix checks local_recipients (if defined) and then relay_recipients.
> It looks like valid recipients have to exist in one place or the other.

Postfix uses the recipient_map that belongs to the address class of the
domain. Recipients of domains in mydestination are checked against
local_recipient_maps, recipients of domains in relay_domains have to exist
in relay_recipient_maps.

If a domain is entered in more than one address class Postfix will log a
warning.

> As Berny pointed out, Postfix's smtpd_reject_unlisted_recipient
> defaults to "true". You shouldn't have to change or otherwise define
> smtpd_reject_unlisted_recipient.

Per default Postfix will check for valid recipients at the end of
smtpd_recipient_restrictions. The check "reject_unlisted_recipient" allows
you to place the check where you need it to happen.

--
Sandy

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com


© 2004-2008 readlist.com