Re: Add header based on subject

2019-06-21 Thread Dominic Raferd
On Fri, 21 Jun 2019 at 14:30, Fazzina, Angelo 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&data=02%7C01%7Cangelo.fazzina%40uconn.edu%7C5fe624f0bb2748eb6c120

Re: Add header based on subject

2019-06-21 Thread Marcelo Machado
Thank you. It worked very well. Em sex, 21 de jun de 2019 às 08:55, Ralph Seichter 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 >

RE: Add header based on subject

2019-06-21 Thread Fazzina, Angelo
Sent: Friday, June 21, 2019 7:54 AM To: postfix-users@postfix.org 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.h

Re: Add header based on subject

2019-06-21 Thread Ralph Seichter
* 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

Aw: Re: Add Header only if sent via sendmail

2019-03-22 Thread lutz . niederer
It seems to work. Thank you!   Gesendet: Freitag, 22. März 2019 um 16:15 Uhr Von: "Viktor Dukhovni" An: "Postfix users" Betreff: Re: Add Header only if sent via sendmail > On Mar 22, 2019, at 3:00 AM, lutz.niede...@gmx.net wrote: > > But how can I do this? As n

Re: Add Header only if sent via sendmail

2019-03-22 Thread Viktor Dukhovni
> On Mar 22, 2019, at 3:00 AM, lutz.niede...@gmx.net wrote: > > But how can I do this? As noted below. > In master.cf I add a service eg called "mycleanup" with > mycleanup unix ... cleanup -o header_checks=file Well, not "=file" but "=pcre:file" or similar. > Essentially a renamed copy of the

Aw: Re: Add Header only if sent via sendmail

2019-03-22 Thread lutz . niederer
don't need to touch smtpd if I don't mind getting the IP address via client_restrictions, too. Is that correct?  Did I miss something? -lutzn   Gesendet: Freitag, 22. März 2019 um 06:30 Uhr Von: "Viktor Dukhovni" An: "Postfix users" Betreff: Re: Add Header only if

Re: Add Header only if sent via sendmail

2019-03-21 Thread Viktor Dukhovni
> On Mar 21, 2019, at 11:55 PM, lutz.niede...@gmx.net wrote: > > I am looking for a simple way to add a header if and only if mail is sent > locally via sendmail (mail/mailx) command. > We need to know who/what sent an email. We already get the client's IP > address if sent using smtp via smtpd

Re: add header with postscreen score

2017-04-25 Thread Wietse Venema
b...@bitrate.net: > is there a way to add a postscreen score/summary header to accepted > messages? the logs are great, but this could be helpful in reviewing > messages and making improvements to the configuration. I think it would be wrong to add headers that report results for tests that weren

Re: add header with postscreen score

2017-04-23 Thread David Mehler
Hi, This is something I would also find useful. Thanks. Dave. On 4/23/17, b...@bitrate.net wrote: > is there a way to add a postscreen score/summary header to accepted > messages? the logs are great, but this could be helpful in reviewing > messages and making improvements to the configuratio

Re: Add header with original IP?

2015-03-23 Thread Sebastian Nielsen
rungligt meddelande- From: Wietse Venema Sent: Tuesday, March 24, 2015 12:33 AM To: Postfix users Subject: Re: Add header with original IP? Sebastian Nielsen: Can it be done without a policy service or milter? Eg with some header checks? Or maybe a configuration option? If it is not possible t

Re: Add header with original IP?

2015-03-23 Thread Wietse Venema
Sebastian Nielsen: > Can it be done without a policy service or milter? Eg with some header > checks? Or maybe a configuration option? If it is not possible to use the address in Postfix's own Received: header, you can copy the client IP address into a header with a pcre or regexp table. For exa

Re: Add header with original IP?

2015-03-23 Thread Noel Jones
ith some > header checks? Or maybe a configuration option? > > -Ursprungligt meddelande- From: Noel Jones > Sent: Monday, March 23, 2015 7:57 PM > To: postfix-users@postfix.org > Subject: Re: Add header with original IP? > > On 3/23/2015 1:20 PM, Sebastian Nielsen wrot

Re: Add header with original IP?

2015-03-23 Thread Sebastian Nielsen
Can it be done without a policy service or milter? Eg with some header checks? Or maybe a configuration option? -Ursprungligt meddelande- From: Noel Jones Sent: Monday, March 23, 2015 7:57 PM To: postfix-users@postfix.org Subject: Re: Add header with original IP? On 3/23/2015 1:20 PM

Re: Add header with original IP?

2015-03-23 Thread Noel Jones
On 3/23/2015 1:20 PM, Sebastian Nielsen wrote: > How can I in postfix add a header with the original client IP (like > “X-Original-IP”), such as, it cannot be forged, eg any incoming mail > will have such headers stripped out, before Postfix adds its own. > > The intention of this header is to us

Re: Add header based on number of recipients

2015-02-20 Thread Dave Jones
smtpd_data_restrictions fixed my issue and I see the header now. Thank you. On Thu, Feb 19, 2015 at 7:05 PM, Wietse Venema wrote: > Dave Jones: > > Feb 19 16:55:12 smtp1 postfwd[27034]: [RULES] rule=4, id=RCPTCNT1, > > queue=C2B7433E7CE, client=unknown[172.27.0.203], sender=< > > r...@server1.ex

Re: Add header based on number of recipients

2015-02-19 Thread Wietse Venema
Dave Jones: > Feb 19 16:55:12 smtp1 postfwd[27034]: [RULES] rule=4, id=RCPTCNT1, > queue=C2B7433E7CE, client=unknown[172.27.0.203], sender=< > r...@server1.example.com>, recipient=, helo=< > server1.example.com>, proto=ESMTP, state=END-OF-MESSAGE, delay=0.00s, > hits=RCPTCNT1, action=PREPEND X-Rcpt

Re: Add header based on number of recipients

2015-02-19 Thread Dave Jones
On Wed, Feb 4, 2015 at 9:24 AM, Leonardo Rodrigues wrote: > On 04/02/15 12:41, Wietse Venema wrote: > >> >> Use postfwd, set a rule that triggers with too many recipients >> per SASL login. http://www.postfwd.org/ >> >> Wietse >> > > Policyd can also do that, check both. > > http://w

Re: Add header based on number of recipients

2015-02-04 Thread Leonardo Rodrigues
On 04/02/15 12:41, Wietse Venema wrote: Use postfwd, set a rule that triggers with too many recipients per SASL login. http://www.postfwd.org/ Wietse Policyd can also do that, check both. http://www.policyd.org/ -- Atenciosamente / Sincerily, Leonardo Rodrig

Re: Add header based on number of recipients

2015-02-04 Thread Dave Jones
Thank you for the postfwd link. Not sure why I didn't find this during my research. I guess I didn't have the right Google keywords. :) On Wed, Feb 4, 2015 at 8:41 AM, Wietse Venema wrote: > Dave Jones: > > I need to be able to relay outbound for this customer of ours as a > service > > we pr

Re: Add header based on number of recipients

2015-02-04 Thread Wietse Venema
Dave Jones: > I need to be able to relay outbound for this customer of ours as a service > we provide and I need to be able to block compromised accounts which I have > been successful at for years until this new spam technique showed up a few > weeks ago. > I do have a way to detect this Bcc sendi

Re: Add header based on number of recipients

2015-02-04 Thread Jan P. Kessler
With postfwd you could use the following rule: id=RCPTCNT action=PREPEND X-RCPT-COUNT: $$recipient_count or something like that id=RCPTCNT01 recipient_count>=200 action=PREPEND X-RCPT-COUNT: RED id=RCPTCNT02 recipient_count>=100 action=PREPEND X-RCPT-COUNT: YELLOW Please

Re: Add header based on number of recipients

2015-02-04 Thread Dave Jones
I need to be able to relay outbound for this customer of ours as a service we provide and I need to be able to block compromised accounts which I have been successful at for years until this new spam technique showed up a few weeks ago. I do have a way to detect this Bcc sending _after the fact_ an

Re: Add header based on number of recipients

2015-02-04 Thread Nicolas HAHN
- Have you identified the e-mail server having those compromised accounts? If yes forbid this server to relay using your Postfix servers. If you don't want or cannot do it... - Then have you identified what e-mail accounts exactly are compromised? If yes temporarily close or disabled those accou

Re: add header for canonical recipients

2014-09-18 Thread btb
On Sep 18, 2014, at 20.17, Viktor Dukhovni wrote: > On Thu, Sep 18, 2014 at 07:51:53PM -0400, btb wrote: > >> From: postmas...@phonesrv.example.com >> To: "VOICE/1nnn5551212"@phonesrv.example.com > > Is that the address or the "display name"? What is the content > of the complete "To:" header

Re: add header for canonical recipients

2014-09-18 Thread Viktor Dukhovni
On Thu, Sep 18, 2014 at 07:51:53PM -0400, btb wrote: > From: postmas...@phonesrv.example.com > To: "VOICE/1nnn5551212"@phonesrv.example.com Is that the address or the "display name"? What is the content of the complete "To:" header as stored in the mailbox (rather than displayed by some MUA). -

Re: add header to outgoing emails

2012-07-20 Thread Reindl Harald
Am 20.07.2012 15:26, schrieb Kirill Bychkov: > Hello, > > I need to add the header "Header-Msg" based on the subject header. > I.e., if email with the subject "test", the my custom header should be > "Header-Msg: test". > > Is it real? how does a fantasy-header based on the subject-header ma

Re: add header to outgoing emails

2012-07-20 Thread Robert Schetterer
Am 20.07.2012 15:26, schrieb Kirill Bychkov: > Hello, > > I need to add the header "Header-Msg" based on the subject header. > I.e., if email with the subject "test", the my custom header should be > "Header-Msg: test". > > Is it real? http://www.postfix.org/header_checks.5.html may help --

Re: Add Header

2010-01-29 Thread Wietse Venema
Ralf Hildebrandt: > * Victor Duchovni : > > On Thu, Jan 28, 2010 at 05:41:03PM -0600, AMP Admin wrote: > > > > > just in case anyone comes across this I got it sorted with the following: > > > > > > /^Subject: .*/ PREPEND MyString > > > > This is still wrong. > > Because it doesn't contain a he

Re: Add Header

2010-01-28 Thread Ralf Hildebrandt
* Victor Duchovni : > On Thu, Jan 28, 2010 at 05:41:03PM -0600, AMP Admin wrote: > > > just in case anyone comes across this I got it sorted with the following: > > > > /^Subject: .*/ PREPEND MyString > > This is still wrong. Because it doesn't contain a header label? -- Ralf Hildebrandt Ge

RE: Add Header

2010-01-28 Thread AMP Admin
-Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Victor Duchovni Sent: Thursday, January 28, 2010 5:51 PM To: postfix-users@postfix.org Subject: Re: Add Header On Thu, Jan 28, 2010 at 05:41:03PM -0600, AMP Admin wrote: > j

Re: Add Header

2010-01-28 Thread Victor Duchovni
On Thu, Jan 28, 2010 at 05:41:03PM -0600, AMP Admin wrote: > just in case anyone comes across this I got it sorted with the following: > > /^Subject: .*/ PREPEND MyString This is still wrong. -- Viktor. P.S. Morgan Stanley is looking for a New York City based, Senior Unix system/email

RE: Add Header

2010-01-28 Thread AMP Admin
-Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Ralf Hildebrandt Sent: Thursday, January 28, 2010 3:22 PM To: postfix-users@postfix.org Subject: Re: Add Header * AMP Admin : > WORKS BUT ADDS IT MULTIPLE TI

RE: Add Header

2010-01-28 Thread AMP Admin
-Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Ralf Hildebrandt Sent: Thursday, January 28, 2010 3:18 PM To: postfix-users@postfix.org Subject: Re: Add Header * AMP Admin : > I'm trying to add ONE custom strin

Re: Add Header

2010-01-28 Thread Ralf Hildebrandt
* AMP Admin : > WORKS BUT ADDS IT MULTIPLE TIMES: > > /^/ PREPEND MyString This matches EVERY header line > DOES NOT WORK: > > /^DomainKey-Signature:$/ PREPEND MyString This matches a header line like: DomainKey-Signature: (with NOTHING after the :) -- Ralf Hildebrandt Geschäftsbereich

Re: Add Header

2010-01-28 Thread Ralf Hildebrandt
* AMP Admin : > I'm trying to add ONE custom string to the header using the following but > the first one adds it multiple times and the second doesn't work at all. > Thanks for your help! > > > > header_checks = regexp:/etc/postfix/header_checks > > > > WORKS BUT ADDS IT MULTIPLE TIMES: >