Add header based on subject

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Add header based on subject

mmgomess
Hello everyone.

Is possible add a header based on a regex in a subject?

Best regards.

Marcelo
Reply | Threaded
Open this post in threaded view
|

Re: Add header based on subject

Ralph Seichter-2
* Marcelo Machado:

> Is possible add a header based on a regex in a subject?

Yes, see http://www.postfix.org/header_checks.5.html (PREPEND action).

-Ralph
Reply | Threaded
Open this post in threaded view
|

RE: Add header based on subject

angelo
I have a question, wouldn't that break a DKIM sig if the incoming email had one ?

Thank you.

-ANGELO FAZZINA

[hidden email]
University of Connecticut,  ITS, SSG, Server Systems
860-486-9075

-----Original Message-----
From: [hidden email] <[hidden email]> On Behalf Of Ralph Seichter
Sent: Friday, June 21, 2019 7:54 AM
To: [hidden email]
Subject: Re: Add header based on subject

* Marcelo Machado:

> Is possible add a header based on a regex in a subject?

Yes, see https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.postfix.org%2Fheader_checks.5.html&amp;data=02%7C01%7Cangelo.fazzina%40uconn.edu%7C5fe624f0bb2748eb6c1208d6f63f6004%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C1%7C636967149385235271&amp;sdata=h9mNY25n5%2BnZQnCJT8w4wlR6gRAgR6MeRvhcs2BN%2Fw4%3D&amp;reserved=0 (PREPEND action).

-Ralph
Reply | Threaded
Open this post in threaded view
|

Re: Add header based on subject

mmgomess
In reply to this post by Ralph Seichter-2
Thank you.

It worked very well.

Em sex, 21 de jun de 2019 às 08:55, Ralph Seichter <[hidden email]> escreveu:
* Marcelo Machado:

> Is possible add a header based on a regex in a subject?

Yes, see http://www.postfix.org/header_checks.5.html (PREPEND action).

-Ralph
Reply | Threaded
Open this post in threaded view
|

Re: Add header based on subject

Dominic Raferd
In reply to this post by angelo
On Fri, 21 Jun 2019 at 14:30, Fazzina, Angelo <[hidden email]> wrote:
> Is possible add a header based on a regex in a subject?

Yes, see https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.postfix.org%2Fheader_checks.5.html&amp;data=02%7C01%7Cangelo.fazzina%40uconn.edu%7C5fe624f0bb2748eb6c1208d6f63f6004%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C1%7C636967149385235271&amp;sdata=h9mNY25n5%2BnZQnCJT8w4wlR6gRAgR6MeRvhcs2BN%2Fw4%3D&amp;reserved=0 (PREPEND action).

> I have a question, wouldn't that break a DKIM sig if the incoming email had one ?

Only if the header you are adding is one that was used to generate the DKIM key e.g. if you wanted to add a new Subject header (preceding the existing one). OP hasn't said what type of header he wants to add.