Re: remote smtp auth clients - header rewrite question

2008-12-02 Thread Dan Langille
On Dec 1, 2008, at 11:11 PM, Victor Duchovni wrote: On Mon, Dec 01, 2008 at 09:35:18PM -0500, Dan Langille wrote: Did you see header_checks documented as a supported parameter in http://www.postfix.org/smtpd.8.html (rhetorical question, the answer is no). A closer look at the documentation sh

Re: remote smtp auth clients - header rewrite question

2008-12-01 Thread Victor Duchovni
On Mon, Dec 01, 2008 at 09:35:18PM -0500, Dan Langille wrote: > >Did you see header_checks documented as a supported parameter in > >http://www.postfix.org/smtpd.8.html (rhetorical question, the answer > >is no). A closer look at the documentation shows this ia feature of > >the cleanup service: >

Re: remote smtp auth clients - header rewrite question

2008-12-01 Thread Dan Langille
On Dec 1, 2008, at 12:17 AM, Victor Duchovni wrote: On Sun, Nov 30, 2008 at 06:40:18PM -0500, Dan Langille wrote: I tried it like this: 10.0.0.1:smtps inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes -o smtpd_recipient_restrictions =permit_sasl_authenticated

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Victor Duchovni
On Sun, Nov 30, 2008 at 06:40:18PM -0500, Dan Langille wrote: > I tried it like this: > > 10.0.0.1:smtps inet n - n - - smtpd > -o smtpd_sasl_auth_enable=yes > -o > smtpd_recipient_restrictions > =permit_sasl_authenticated,reject_unauth_desti > -o smtpd_sasl

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Dan Langille
On Nov 30, 2008, at 4:13 PM, mouss wrote: Dan Langille a écrit : Following one from John's success, I'm failing. One difference between John's setup and mine is my header_checks directive. It was defined in master.cf: -o header_checks=pcre:/usr/local/etc/postfix/obscure_smtp_auth did

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread mouss
Dan Langille a écrit : > Following one from John's success, I'm failing. One difference between > John's setup and mine is my header_checks directive. It was defined in > master.cf: > > -o header_checks=pcre:/usr/local/etc/postfix/obscure_smtp_auth > did you add that to an smtpd service? see

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Dan Langille
john mickler wrote: On Sun, Nov 30, 2008 at 12:18 AM, Victor Duchovni <[EMAIL PROTECTED]> wrote: It should work if the newline is part of a ${n} sub-pattern match: # ${3} matches Newline + folding white-space /^(Received): (.*?)(\n[\t\x20])(.*)$/ ${1}: ${2}${3}(my comment)${3}$

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread john mickler
On Sun, Nov 30, 2008 at 12:22 PM, mouss <[EMAIL PROTECTED]> wrote: > john mickler a écrit : >> The pcre example above indeed passes the newline through as mentioned. >> Here's an adjusted expression to fit my situation, as well as an >> example header after the replacement: >> >> main.cf: >> heade

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Victor Duchovni
On Sun, Nov 30, 2008 at 12:18:45PM -0500, john mickler wrote: > /^(Received): (.*?)(\n[\t\x20])(.*)$/ REPLACE ${1}: from smtp-auth > (smtp-auth.mycompany.com [55.55.55.55]${3}${4} > > > resulting replaced header- > > Received: from smtp-auth (smtp-auth.mycompany.com [55.55.55.55] > (usi

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread mouss
john mickler a écrit : > The pcre example above indeed passes the newline through as mentioned. > Here's an adjusted expression to fit my situation, as well as an > example header after the replacement: > > main.cf: > header_checks = /usr/local/etc/postfix/maps/header_checks.pcre > > header_chec

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread john mickler
On Sun, Nov 30, 2008 at 12:18 AM, Victor Duchovni <[EMAIL PROTECTED]> wrote: > It should work if the newline is part of a ${n} sub-pattern match: > ># ${3} matches Newline + folding white-space >/^(Received): (.*?)(\n[\t\x20])(.*)$/ >${1}: ${2}${3}(my comment)${3}${4} > > With t

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Wietse Venema
Victor Duchovni: > On Sat, Nov 29, 2008 at 10:24:25PM -0600, Noel Jones wrote: > > > john mickler wrote: > > > > > >As for the newline insertion mentioned on the website, I'm wondering > > >if using a pcre instead of standard regex would allow this. I'm going > > >to translate and give it a try.

Re: remote smtp auth clients - header rewrite question

2008-11-29 Thread Victor Duchovni
On Sat, Nov 29, 2008 at 10:24:25PM -0600, Noel Jones wrote: > john mickler wrote: > > > >As for the newline insertion mentioned on the website, I'm wondering > >if using a pcre instead of standard regex would allow this. I'm going > >to translate and give it a try. > > Don't bother. The postfix

Re: remote smtp auth clients - header rewrite question

2008-11-29 Thread Dan Langille
Sahil Tandon wrote: Dan Langille <[EMAIL PROTECTED]> wrote: Sahil Tandon wrote: john mickler <[EMAIL PROTECTED]> wrote: I have a question pertaining to message headers on outbound mail from remote smtp auth'd clients. I have been asked to adjust our mail systems to "anonymize" said remote c

Re: remote smtp auth clients - header rewrite question

2008-11-29 Thread Noel Jones
john mickler wrote: As for the newline insertion mentioned on the website, I'm wondering if using a pcre instead of standard regex would allow this. I'm going to translate and give it a try. Don't bother. The postfix REPLACE action does not support newlines in headers regardless of the map

Re: remote smtp auth clients - header rewrite question

2008-11-29 Thread john mickler
On Sat, Nov 29, 2008 at 6:37 PM, Sahil Tandon <[EMAIL PROTECTED]> wrote: > > You need REPLACE, not REWRITE. > > See http://riseuplabs.org/privacy/postfix/; ignore the patch section and > scroll down to "Postfix 2.3 and later". Copy and modify as necessary to > meet your needs. Thanks for the poin

Re: remote smtp auth clients - header rewrite question

2008-11-29 Thread Sahil Tandon
Dan Langille <[EMAIL PROTECTED]> wrote: > Sahil Tandon wrote: >> john mickler <[EMAIL PROTECTED]> wrote: >> >>> I have a question pertaining to message headers on outbound mail from >>> remote smtp auth'd clients. I have been asked to adjust our mail systems to >>> "anonymize" said remote clients

Re: remote smtp auth clients - header rewrite question

2008-11-29 Thread Dan Langille
Sahil Tandon wrote: john mickler <[EMAIL PROTECTED]> wrote: I have a question pertaining to message headers on outbound mail from remote smtp auth'd clients. I have been asked to adjust our mail systems to "anonymize" said remote clients. Using mail sent from an Iphone as an example, the head

Re: remote smtp auth clients - header rewrite question

2008-11-29 Thread Sturgis, Grant
On Sat, 2008-11-29 at 15:17 -0700, john mickler wrote: > Hi All, > > I have a question pertaining to message headers on outbound mail from > remote smtp auth'd clients. I have been asked to adjust our mail > systems to > "anonymize" said remote clients. Using mail sent from an Iphone as an > e

Re: remote smtp auth clients - header rewrite question

2008-11-29 Thread Sahil Tandon
john mickler <[EMAIL PROTECTED]> wrote: > I have a question pertaining to message headers on outbound mail from > remote smtp auth'd clients. I have been asked to adjust our mail systems to > "anonymize" said remote clients. Using mail sent from an Iphone as an > example, > the headers on the r

remote smtp auth clients - header rewrite question

2008-11-29 Thread john mickler
Hi All, I have a question pertaining to message headers on outbound mail from remote smtp auth'd clients. I have been asked to adjust our mail systems to "anonymize" said remote clients. Using mail sent from an Iphone as an example, the headers on the receiving end show: Received: from [10.176.