On 4/4/2012 1:37 PM, Edward Morbius wrote:
> I'd like to set up a delivery rule / method which simply rejects
> delivery for a specific domain (or set of domains).

Add a transport_maps entry for the bad domain pointing to the error:
transport.

# main.cf
transport_maps = hash:/etc/postfix/transport

# transport
baddomain.example.com  error: 5.1.2 destination unavailable


> 
> The immediate need is testing based on a domain we control.  We've
> also got an issue of stale contacts for expired domains which pile up
> in our queues but I haven't addressed them.
> 
> E.g.:  attbi.com, tmail.com (long-defunct).

Same as above.  You can also refuse individual addresses if necessary:
# transport
badu...@example.com  error: 5.1.1 recipient unavailable




  -- Noel Jones

Reply via email to