0

Using Postfix (version 2.10.2.2, part of a Zimbra installation) on Ubuntu I would like to be able to achieve the following:

If an email originates from [email protected] that targets [email protected] generate a non delivery report simulating that the address [email protected] does not exist on this server (any longer).

Background: One of my users does not want to receive any more email from a certain sender anymore but wants to keep the current address active.

1 Answer 1

0

Using restriction class feature from postfix

In main.cf

smtpd_restriction_classes = selective_sender
selective_sender = check_sender_access hash:/etc/postfix/blocked_sender

# put in smtpd*restriction
    ...
    check_recipient_access hash:/etc/postfix/recipient_access
    ...

In /etc/postfix/recipient_access:

[email protected]       selective_sender

In /etc/postfix/blocked_sender:

[email protected]     REJECT unknown_user
1
  • Works like a charm - thank you. Will add the Zimbra specific steps to my original question.
    – HenningM
    Sep 18, 2016 at 18:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .