On Fri, May 06, 2011 at 01:27:49PM -0500, CT wrote:

> On 05/05/2011 05:37 PM, Sahil Tandon wrote:
>> On Thu, 2011-05-05 at 13:16:31 -0500, CT wrote:
>>
>>> I would like a simple way to drop other "internal domains" email
>>> that can't be delivered.
>>>
>>> something like :
>>> #@internal-2.example.com    /dev/null
>>
>> Google 'postfix + discard'.
>>
>
> I have tried :
> -- header_checks
> -- smtpd_sender_restrictions = hash:/etc/postfix/access
> but none has worked..
>
> It is the recipient domain that I want to DISCARD..

The routing of mail for a particular recipient address or all recipients
in a given domain is performed by resolving the recipient to a
(transport, nexthop, address) triple.

    http://www.postfix.org/ADDRESS_REWRITING_README.html#resolve
    http://www.postfix.org/ADDRESS_REWRITING_README.html#transport

Use the transport table to map the addresses in question to a transport
implemented via the discard(8) delivery agent.

    master.cf:
    discard   unix  -       -       n       -       -       discard

    transport:
    example.com         discard:into the entropy pool

-- 
        Viktor.

Reply via email to