/dev/rob0 wrote:

<snip>
> On Tue, Jan 19, 2010 at 11:34:13AM +0530, J. Bakshi wrote:
>   
>> I am trying to drop outgoing emails having particular email-id in
>> its [TO] field.  Say myn...@domain1.com and myna...@domain2.com,
>> hence any mail destined for myn...@domain1.com or
>> myna...@domain2.com will be dropped . To achieve this I have made a
>> file sender_reject with following entry
>>
>> `   `   `
>> myn...@domain1.com  REJECT
>> myn...@domain2.com  REJECT
>>     
>
> "REJECT" does not mean "drop". Refer again to the actions part of the 
> access(5) man page. Decide what it is that you really want to do.
> Generally, rejection is best.
>
>   
</snip>

Hello,

Thanks a lot for your clarification. It  provides me some clear concept 
about postfix internal. I get success with the following method

main.cf
----------
transport_maps = hash:/etc/postfix/ACL

ACL
------
#Blacklist
myn...@mydomain1.com error: Go away
myn...@mydomain2.com error: Go away
# White List
* :

Finally "postmap ACL"  and reloading postfix

How do you like it ?

thanks



-- 
জয়দীপ বক্সী

Reply via email to