OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Blocking specifc email addresses

From: Wietse Venema (wietseporcupine.org)
Date: Tue Mar 01 2005 - 15:10:22 CST


Shaun Grogan:
> Whe have a gilr a t work that is getting harrasing email from an
> ex-husband. What do I need to do to block his email address
> specifically.

To silently throw away that mail:

/etc/postfix/main.cf:
    smtpd_sender_restrictions = hash:/etc/postfix/sender_access

/etc/postfix/sender_access:
    userexample.com discard

This filters on the MAIL FROM address, not the address in the
From: message header.

Instead of discard you can use reject or redirect, depending
on Postfix version.

        Wietse