Thomas Ackermann wrote:
Hello,
i use the recipient_delimiter (with a ".") quite often.

Some of those sub-recipients(?) of accounts are already spammed.

I would like to reject Mails to them ...

For example:
name.post...@$mydomain would be OK, while
name.s...@$mydomain should be rejected ...

What is the best way to configured this?

Use a check_recipient_access map.


Also, is it possible to reject the "main" recipient, while allowing all possible sub-recipients?

For example:
na...@$mydomain should be rejected, while
name2.post...@$mydomain would be OK ...

So far, i found nothing about that topic :-(

Use a regexp or pcre map for this; you can't use an indexed table because of the search order. It's possible to combine this with your other request. The syntax for regexp/pcre maps is pretty picky, take care when typing them.

# recipient.pcre
/^n...@example\.com$/  REJECT user not allowed
/^name\.s...@example\.com$/  REJECT your text here

# main.cf
smtpd_recipient_restrictions =
  permit_mynetworks
  reject_unauth_destination
  check_recipient_access pcre:/etc/postfix/recipient.pcre

--
Noel Jones

Reply via email to