that work like a charm. 

Thank you Noel

On Mon, 2011-04-11 at 07:14 -0500, Noel Jones wrote:
> On 4/11/2011 7:05 AM, Jiri Vitek wrote:
> > Hi folks,
> >
> > what is the best solution for discarding email to be sended/trasnfered
> > to all recipients when there is one concrete addres in to, cc bcc
> > fields.
> >
> > i need that for functional testing of our e-shop, where we testing in
> > production environment. And we don't want to spam our clients with
> > "order created", "order completed" and other information mails.
> >
> > so any tips how to achive this behavior are welcome.
> >
> > thanks J.Vitek
> >
> 
> 
> If the mail is submitted via SMTP, a check_recipient_access 
> table matching the test recipient with either DISCARD or 
> REDIRECT will affect all recipients of the message.
> 
> # main.cf
> smtpd_delay_reject = yes
> smtpd_sender_restrictions =
>    check_recipient_access hash:/etc/postfix/test_recipient
> 
> # test_recipient
> tar...@example.com  REDIRECT develo...@example.net
> 
> 
> 
>    -- Noel Jones


Reply via email to