Ray Davis:
> 
> On 18. Sep 2014, at 19:01 Uhr, Wietse Venema <wie...@porcupine.org> wrote:
> 
> > Ray Davis:
> >> A customer wants a mail relay for testing to SAP applications.  It should 
> >> take all relayed email and save it to a local mailbox (or forward it to 
> >> another email address) - but it should not actually send the emails 
> >> further to the recipient.
> >> 
> >> I know that sender_bcc_map can take car of saving the emails, but how can 
> >> I keep the server from sending the mail further?  I need an 
> >> all_emails_from_sender_go_to_dev_null option?  ;)
> >> 
> > 
> > REPLACE the recipient, instead of ADDING one.
> 
> Except the customer wants to see the email unmodified from their
> SAP software.  But now that I see there is a transport discard:silently,
> then I can just set up a private postfix server with sender_bcc_map
> and discard:silently.

Perhaps you can use a REDIRECT action in a check_sender_access map?
That will override all envelope recipients, and has no effect on
existing message headers.

smtpd_sender_restrictions = check_sender_access maptype:mapfile

        Wietse

Reply via email to