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
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
>
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
* 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
Hello everyone.
Is possible add a header based on a regex in a subject?
Best regards.
Marcelo
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
> 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
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
> 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
Hello,
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_client_restrictions, but if it is not sent via smtp I have no
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
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
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.
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
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
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
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
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
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 use it at a later processing step for
separating phishing
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
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
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
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
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
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
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
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
- 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
I have a sneaky spammer that is using compromised accounts of a mail server
that relays outbound through my Postfix servers. The spammer is Bcc'ing
200 or 300 recipients at a time and sending very slowly to avoid my high
volume detection. I need to be able to add a header that SpamAssassin can
us
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
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).
-
hi-
i'm not quite certain the subject is an accurate synopsis. apologies if it's
misleading. we have a proprietary system which delivers voicemail messages as
email attachments. it submits mail via submission to postfix, which looks like
this:
Sep 18 16:03:33 msa postfix/submission/smtpd[21
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
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
--
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?
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
* 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
-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
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
-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
-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
* 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
* 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:
>
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:
/^/ PREPEND MyString
DOES NOT WOR
44 matches
Mail list logo