[pfx] Re: smtp_header_checks and opendkim

2023-11-20 Thread David Bürgin via Postfix-users
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 postfix

[pfx] Re: smtp_header_checks and opendkim

2023-11-20 Thread Wietse Venema via Postfix-users
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 signature is broken - probably because Opendk

[pfx] Re: smtp_header_checks and opendkim

2023-11-18 Thread 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 signature is broken - probably because Opendkim has signed the > message earlier in the pi

[pfx] Re: smtp_header_checks and opendkim

2023-11-18 Thread Matus UHLAR - fantomas via Postfix-users
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 in

Re: smtp_header_checks INFO chops long subjects while logging

2023-01-19 Thread Dhammika Gunawardena
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 Gunawardena:

Re: smtp_header_checks INFO chops long subjects while logging

2023-01-19 Thread Wietse Venema
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 amount of header tex

Re: smtp_header_checks INFO action truncating logged line below any known limit

2022-03-24 Thread Leandro Santiago
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? Correct

Re: smtp_header_checks INFO action truncating logged line below any known limit

2022-03-24 Thread Viktor Dukhovni
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 >

Re: smtp_header_checks INFO action truncating logged line below any known limit

2022-03-24 Thread Wietse Venema
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:/ INFO > > > As I aim to have su

Re: smtp_header_checks vs header_checks: subject header length

2021-02-05 Thread Wietse Venema
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 > > Two issues: > 1. I have a really

Re: smtp_header_checks WARN chops long subjects while logging

2011-01-08 Thread Wietse Venema
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_ch

Re: smtp_header_checks WARN chops long subjects while logging

2011-01-07 Thread Noel Jones
On 1/8/2011 12:13 AM, Ramprasad wrote: 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 p

Re: smtp_header_checks WARN chops long subjects while logging

2011-01-07 Thread Victor Duchovni
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

Re: smtp_header_checks WARN chops long subjects while logging

2011-01-07 Thread Ramprasad
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. > > > >

Re: smtp_header_checks WARN chops long subjects while logging

2011-01-07 Thread Wietse Venema
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 o

Re: smtp_header_checks WARN chops long subjects while logging

2011-01-07 Thread Ram
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,

Re: smtp_header_checks WARN chops long subjects while logging

2011-01-07 Thread Wietse Venema
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. The inten

Re: smtp_header_checks

2009-05-16 Thread mouss
Alvaro Marín a écrit : > 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

Re: smtp_header_checks

2009-05-13 Thread Victor Duchovni
On Wed, May 13, 2009 at 03:39:32PM +, Duane Hill wrote: > On Wed, 13 May 2009, Alvaro Mar?n wrote: > >> 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 i

Re: smtp_header_checks

2009-05-13 Thread Duane Hill
On Wed, 13 May 2009, Alvaro Mar?n wrote: 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

Re: smtp_header_checks

2009-05-13 Thread Alvaro Marín
Ralf Hildebrandt escribió: > * Alvaro Marín : > 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

Re: smtp_header_checks

2009-05-13 Thread Ralf Hildebrandt
* Alvaro Marín : > >> 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 t

Re: smtp_header_checks

2009-05-13 Thread Alvaro Marín
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 >

Re: smtp_header_checks

2009-05-13 Thread Duane Hill
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 idea