The reason that I need to do this, I using alias email on postfix and that 
alias will distribute email to few email inside it, and many invite email from 
twitter, facebook etc send to this alias and annoying us, I can't reject 
totally of facebook, twitter etc because a lot of email account using their 
account to receive notification from facebook and twitter.

That’s why I need some clue or example how to do this. Any one has example for 
this matter? Thank you

-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of Stan Hoeppner
Sent: Tuesday, December 01, 2009 4:33 AM
To: postfix-users@postfix.org
Subject: Re: Blocking From Certain domain to Certain User

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