On 6/15/2017 6:34 AM, Dominic Raferd wrote:
> 
> 
> On 15 June 2017 at 11:58, Wietse Venema <wie...@porcupine.org
> <mailto:wie...@porcupine.org>> wrote:
> 
>     Dominic Raferd:
>     > We occasionally get emails in our postfix queue that can never
>     be delivered
>     > but which are held in the queue for a week before postfix
>     bounces them
>     > (example: sender has typed gmail.co <http://gmail.co> instead
>     of gmail.com <http://gmail.com>). I realise this
>     > delay is the correct behaviour, but how can I - by exception -
>     bounce a
>     > queued mail immediately, with notification back to sender?
> 
>     See the thread "How to bounce malformed addresses ?" from a few
>     days ago.
> 
> 
> ​I think my situation is different. In that thread the problem was
> that sender never received bounce notification (for some reason). In

At any rate, the solution is the same. Use transport_maps to return
an immediate error for misbehaving domains such as gmail.co.

If you already have mail queued for gmail.co, you can add the
transport_maps entry as described in the earlier thread and postfix
will bounce the offending message on the next queue run.




  -- Noel Jones

Reply via email to