Note: OpenDKIM does not require the (ancient, obsolete) setting
‘milter_protocol = 2’. It’s a cargo cult setting. Just drop it and leave
it at the default.
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to
Wietse Venema via Postfix-users:
> Danil Smirnov via Postfix-users:
> > Hi all,
> >
> > I want to manipulate the headers (add and replace) of the outgoing mail
> > before the message is signed by Opendkim. If using smtp_header_checks I see
> > that the signa
Danil Smirnov via Postfix-users:
> Hi all,
>
> I want to manipulate the headers (add and replace) of the outgoing mail
> before the message is signed by Opendkim. If using smtp_header_checks I see
> that the signature is broken - probably because Opendkim has signed the
&g
On 18.11.23 18:16, Danil Smirnov via Postfix-users wrote:
I want to manipulate the headers (add and replace) of the outgoing mail
before the message is signed by Opendkim. If using smtp_header_checks I see
that the signature is broken - probably because Opendkim has signed the
message earlier
Hi all,
I want to manipulate the headers (add and replace) of the outgoing mail
before the message is signed by Opendkim. If using smtp_header_checks I see
that the signature is broken - probably because Opendkim has signed the
message earlier in the pipeline.
The signing is configured via
Many thanks for the reply.
In fact I found a small workaround, which of course adds more text to the
log file. But it serves the purpose.
smtp_header_checks
/^Subject:(.*)/ INFO $1
Best Regards
Dhammika Gunawardena
On Thu, Jan 19, 2023 at 7:15 PM Wietse Venema wrote:
> Dhammika Gunaward
Dhammika Gunawardena:
> Hi
> I have setup smtp_header_checks to log subject lines in my mail log.
> However the issue is messages are truncated to about 50 characters.
> Is there any method to get the full Subject into log?
I suspect that you would like to have no limit on the amou
Hi
I have setup smtp_header_checks to log subject lines in my mail log.
However the issue is messages are truncated to about 50 characters.
Is there any method to get the full Subject into log?
smtp_header_checks
/^Subject:/ INFO
Many thanks and Best Regards
Dhammika Gunawardena
Thank you Viktor and Wietse for the help.
I decided to go through the milter approach.
Cheers,
Leandro
On 3/24/22 12:07, Viktor Dukhovni wrote:
On Thu, Mar 24, 2022 at 11:31:12AM -0300, Leandro Santiago wrote:
Maybe this is a limitation in the smtp logging and not on header_checks?
On Thu, Mar 24, 2022 at 11:31:12AM -0300, Leandro Santiago wrote:
> Maybe this is a limitation in the smtp logging and not on header_checks?
Correct.
> Any clues of where such limit might be configured
https://github.com/vdukhovni/postfix/blob/master/postfix/src/smtp/smtp_proto.c#L1140-L1155
Leandro Santiago:
-- Start of PGP signed section.
> Hey list,
>
> I created the following smtp_header_checks rule:
>
> smtp_header_checks = pcre:/etc/postfix/maps/header_checks
>
> and /etc/postfix/maps/header_checks:
>
> /^In-Reply-To:/ INFO
> /^References:/
Hey list,
I created the following smtp_header_checks rule:
smtp_header_checks = pcre:/etc/postfix/maps/header_checks
and /etc/postfix/maps/header_checks:
/^In-Reply-To:/ INFO
/^References:/ INFO
As I aim to have such header logged on syslog.
The issue I'm facing is that all messages
Clemens Mayer:
> Hello Wietse & Friends,
>
> /etc/postfix/main.cf looks like this:
> header_checks = regexp:/etc/postfix/header_checks
> smtp_header_checks = regexp:/etc/postfix/header_checks
>
> /etc/postfix/header_checks looks like this:
> /^Subject:/ WARN
>
>
Hello Wietse & Friends,
/etc/postfix/main.cf looks like this:
header_checks = regexp:/etc/postfix/header_checks
smtp_header_checks = regexp:/etc/postfix/header_checks
/etc/postfix/header_checks looks like this:
/^Subject:/ WARN
Two issues:
1. I have a really long subject.
-cleanup
Ramprasad:
If you need precise control over content logging, for example
because you use it to maintain a database of some sorts, then
Postfix built-in logging is not designed for that purpose.
Instead, you need a more focused tool. Sahil Tandon posted a
tcp-based header_checks tool a
I am using postfix smtp_header_checks to log subjects of mails
I have enabled WARN inside smtp_header_checks
But If I send a mail with a long subject then the subject gets chopped
at some length (approx 50 chars )
Is this documented somewhere (max length of WARN). ?
header_checks via cleanup
Ram:
I am using postfix smtp_header_checks to log subjects of mails
I have enabled WARN inside smtp_header_checks
But If I send a mail with a long subject then the subject gets chopped
at some length (approx 50 chars )
Postfix truncates EVERYTHING, especially when it is logged
On 01/07/2011 06:25 PM, Wietse Venema wrote:
Ram:
I am using postfix smtp_header_checks to log subjects of mails
I have enabled WARN inside smtp_header_checks
But If I send a mail with a long subject then the subject gets chopped
at some length (approx 50 chars )
Postfix truncates EVERYTHING
Wietse:
Postfix truncates EVERYTHING, especially when it is logged. The
intention is to protect your file system against logfile flooding
attack.
Ram:
That seems absolutely reasonable from a tech point of view.
Unfortunately people have designed business processes based on
reports of
On Fri, 2011-01-07 at 09:18 -0500, Wietse Venema wrote:
Wietse:
Postfix truncates EVERYTHING, especially when it is logged. The
intention is to protect your file system against logfile flooding
attack.
Ram:
That seems absolutely reasonable from a tech point of view.
Unfortunately
On Sat, Jan 08, 2011 at 11:43:42AM +0530, Ramprasad wrote:
Sahil Tandon's header_checks works at smtpd level ( I assume). Can the
same be implemented at smtp level when the mail is actually sent.
The idea is the mail may be queued and the syslog of the transaction
info should happen when the
may be queued and the syslog of the transaction
info should happen when the mail is being sent not when received.
Or would you suggest writing a custom smtp milter to do the same job
Milters run on input.
You should be able to use Sahil's tcp header checks service
with smtp_header_checks, which
Hello,
I'm trying to delete/discard an emai if it has a header with one value.
I've to do it after it is accepted (and after one content filter
execution) so I thought in smtp_header_checks but I see that it doesn't
support actions like DISCARD.
Any idea of how to do this?
Thanks!
Regards
On Wed, 13 May 2009, Alvaro Mar?n wrote:
Hello,
I'm trying to delete/discard an emai if it has a header with one value.
I've to do it after it is accepted (and after one content filter
execution) so I thought in smtp_header_checks but I see that it doesn't
support actions like DISCARD.
Any
Duane Hill escribió:
On Wed, 13 May 2009, Alvaro Mar?n wrote:
Hello,
I'm trying to delete/discard an emai if it has a header with one value.
I've to do it after it is accepted (and after one content filter
execution) so I thought in smtp_header_checks but I see that it doesn't
support
* Alvaro Marín alv...@hostalia.com:
I'm trying to delete/discard an emai if it has a header with one value.
I've to do it after it is accepted (and after one content filter
execution) so I thought in smtp_header_checks but I see that it doesn't
support actions like DISCARD.
Any idea
Ralf Hildebrandt escribió:
* Alvaro Marín alv...@hostalia.com:
I'm trying to delete/discard an emai if it has a header with one value.
I've to do it after it is accepted (and after one content filter
execution) so I thought in smtp_header_checks but I see that it doesn't
support actions
in smtp_header_checks but I see that it doesn't
support actions like DISCARD.
Any idea of how to do this?
According to:
http://www.postfix.org/header_checks.5.html
there is definitely a DISCARD action.
And, it's header_checks, not smtp_header_checks:
http://www.postfix.org/postconf.5.html#header_checks
one content filter
execution) so I thought in smtp_header_checks but I see that it doesn't
support actions like DISCARD.
Any idea of how to do this?
According to:
http://www.postfix.org/header_checks.5.html
there is definitely a DISCARD action.
Actions that change the destination
29 matches
Mail list logo