[pfx] How not to leave the checks in maillog when using smtp_header_checks?

2024-12-19 Thread lee cholho via Postfix-users
Hi. When relaying to an external service, I set a specific token in the mail header to pass authentication. I am able to send mails by adding the smtp_header_checks option to smtp in the master.cf file. However, it appears in /var/log/maillog. Is there any way to avoid this? [root@xxx-mail01

[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 signa

[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 > mess

[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

[pfx] smtp_header_checks and opendkim

2023-11-18 Thread 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 pipeline. The signing is configured via the

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 Gunaward

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 amou

smtp_header_checks INFO chops long subjects while logging

2023-01-18 Thread 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? smtp_header_checks /^Subject:/ INFO Many thanks and Best Regards Dhammika Gunawardena

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:/

smtp_header_checks INFO action truncating logged line below any known limit

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

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 > >

smtp_header_checks vs header_checks: subject header length

2021-02-05 Thread 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 long subject. -cleanup logs

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
mail 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_che

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

smtp_header_checks WARN chops long subjects while logging

2011-01-07 Thread 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 ) Is this documented somewhere (max length of WARN). ? header_checks via cleanup

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 ac

Re: smtp_header_checks

2009-05-13 Thread Victor Duchovni
ard 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 id

Re: smtp_header_checks

2009-05-13 Thread Duane Hill
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. And, it's header_checks, not smtp_header_checks: http://www.postfix.org/postconf.

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

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 > >>

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 i

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 li

smtp_header_checks

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