Thanks, Wietse.

I will have a look and I will post to the list with the solution.

Best regards,
André

On Sat, 2019-08-03 at 17:52 -0400, Wietse Venema wrote:
> Andr? Rodier:
> > Hello all,
> > 
> > Is there a way to prepend a header in the received emails,
> > according to
> > the FROM and TO email address, with a script?
> 
> You might be able to do that with http://www.postfwd.org/.
> IIRC this is implemented in Perl, therefore easy to extend.
> 
> > I have a list of email addresses in a text file, which has to be
> > different for each user.
> 
> In the case that postfwd cannot do this, your options are
> 
> - Custom policy server.
> 
> - Custom Milter.
> 
> > Is there an option, for instance in header_checks, to use something
> > like pcre:/etc/postfix/$recipient/headers_check.cf
> 
> Each Postfix daemon opens tables before it handles requests. I would
> not allow random strangers to control the pathname of files that
> Postfix will open.
> 
> > Or maybe an SQLite database would be enough. With a custom SQL
> > query, I
> > should be able to return the header to add, but how?
> > Otherwise, I will start writing a custom milter.
> 
> There are many options for doing that.
> 
>       Wietse

Reply via email to