On Mon, Mar 08, 2010 at 12:12:39PM +0100,
   [email protected] wrote:
> I would like to reject any mail to "user....@..." as early as
> possible while still allowing mail to any other "user.s...@..."
> or "u...@...".
> 
> So far, i could only find "check_recipient_access" that points
> to a file contains addresses to be rejected.
> But as far as i can tell, this is already quite late in
> processing the mails!

Why do you think so? Put your check_recipient_access lookup as the
first lookup in your restrictions list. It can come either before or
after restrictions which permit your users to relay, at your
discretion. For example:

main.cf ::
    ...
    smtpd_recipient_restrictions = [ ... ]
      check_recipient_access hash:/etc/postfix/recipient_access
      reject_unauth_destination[, ... ]
    ...

recipient_access ::
    [email protected]   REJECT go away spammer

> Is there any other way to reject/tarpit such "sub-mail-addresses"
> (from recipient_delimiter) very very early in processing the mail?
> 
> At best, directly after reading the first header-line ...

The example I gave happens before DATA; there are no headers to read
at this point. Headers are not used for mail routing.

> Thank for any hint!

See these for more:
    http://www.postfix.org/SMTPD_ACCESS_README.html
    http://www.postfix.org/access.5.html
    http://www.postfix.org/postconf.5.html#check_recipient_access
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to