Re: Save all emails in transit, including envelope data

2022-09-06 Thread Jim Popovitch
On Tue, 2022-09-06 at 12:07 -0400, Wietse Venema wrote: > Jim Popovitch: > > On Tue, 2022-09-06 at 09:25 -0400, Viktor Dukhovni wrote: > > > On Tue, Sep 06, 2022 at 06:35:05AM -0400, Wietse Venema wrote: > > > > > > > > Any suggestion? > > > > > > > > /etc/postfix/main.cf: > > > > recipien

Re: Save all emails in transit, including envelope data

2022-09-06 Thread Wietse Venema
Jim Popovitch: > On Tue, 2022-09-06 at 09:25 -0400, Viktor Dukhovni wrote: > > On Tue, Sep 06, 2022 at 06:35:05AM -0400, Wietse Venema wrote: > > > > > > Any suggestion? > > > > > > /etc/postfix/main.cf: > > > recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc.pcre > > > > > > /etc/postfix

Re: Save all emails in transit, including envelope data

2022-09-06 Thread Jim Popovitch
On Tue, 2022-09-06 at 09:25 -0400, Viktor Dukhovni wrote: > On Tue, Sep 06, 2022 at 06:35:05AM -0400, Wietse Venema wrote: > > > > Any suggestion? > > > > /etc/postfix/main.cf: > > recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc.pcre > > > > /etc/postfix/recipient_bcc.pcre: > > (

Re: Save all emails in transit, including envelope data

2022-09-06 Thread Viktor Dukhovni
On Tue, Sep 06, 2022 at 06:35:05AM -0400, Wietse Venema wrote: > > Any suggestion? > > /etc/postfix/main.cf: > recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc.pcre > > /etc/postfix/recipient_bcc.pcre: > (.+)@(+) $1%$2@backup.example Nit: /(.+)@(.+)/ $1%$2@backup.example --

Re: Save all emails in transit, including envelope data

2022-09-06 Thread Wietse Venema
Massimo Federico Bonfigli: > As per the subject says, is there a way to save all email in transit > through postfix, including the basic envelope info (in particular at least > envelope sender and recipients)? > > I know I could use the pipe daemon to invoke a script and save these info, > however

Save all emails in transit, including envelope data

2022-09-06 Thread Massimo Federico Bonfigli
As per the subject says, is there a way to save all email in transit through postfix, including the basic envelope info (in particular at least envelope sender and recipients)? I know I could use the pipe daemon to invoke a script and save these info, however that would be my delivery destination,