Marky Yehezkiel (SNC) put forth on 11/30/2009 7:47 AM:
> Dear All,
> 
> I am using postfix and I don’t know if my question already posted it
> before or not, I have problem that I need to blocking from certain
> domain such as facebook.com to my certain user (x...@satnetcom.com
> <mailto:x...@satnetcom.com>), I have search from google but no luch try
> using header_checks with condition if and transport still no luck.

You might be able to do this with a PCRE in
smtpd_recipient_restrictions.  These however usually trigger on a single
match, and you need to trigger on strictly a double match.  I'm no regex
expert.  Maybe someone here can help you out.

This issue relates to a single user.  Is there a reason why you can't
merely implement this as an MUA rule?  MTAs usually deal with site wide
mail issues, not individual email address rules.

If you have a problem user whom you are attempting to take disciplinary
action against, I suggest that attempting to use Postfix to deprive that
user of his/her Facebook email is not the best way to accomplish this
goal.  Employee/student behavioral problems can only be properly
addressed by management or administration policy and action.

Many schools and businesses null route social networking sites' IP
ranges at the edge, denying _everyone_ access to said sites.  The reason
being that this type of social networking should not be stealing time
from the classroom or workplace.

--
Stan

Reply via email to