Re: Stripping Received: headers

2016-10-30 Thread Noel Jones
On 10/30/2016 5:16 AM, Den1 wrote: > > You are saying that "there is only one action allowed per header". I guess > this is the reason why it does not work. My > /^User-Agent: .*/ IGNORE triggers > > and all the other rules like > /^Received: .*/ IGNORE > /^X-Originating-IP:/IGNORE >

Re: Stripping Received: headers

2016-10-30 Thread Den1
Noel Jones-2 wrote > On 10/29/2016 1:45 AM, Den1 wrote: >> Could you please, advise where do I exactly place those three in order >> for >> them to work (based on my postconf -n and postconf -Mf pasted here)? >> >> 1.) -o cleanup_service_name=subcleanup > > The above line may be added after any

Re: Stripping Received: headers

2016-10-29 Thread Noel Jones
On 10/29/2016 1:45 AM, Den1 wrote: > Could you please, advise where do I exactly place those three in order for > them to work (based on my postconf -n and postconf -Mf pasted here)? > > 1.) -o cleanup_service_name=subcleanup The above line may be added after any smtpd service in master.cf, and

Re: Stripping Received: headers

2016-10-29 Thread Den1
Noel Jones-2 wrote > On 10/27/2016 9:46 PM, Den1 wrote: >> Well, here it goes. My postconf -n looks like this: > > I can't see any obvious reason why your header_checks aren't working > as expected. Keep in mind that postfix can't remove headers that > don't exist yet. > > > -- Noel Jones

Re: Stripping Received: headers

2016-10-28 Thread Noel Jones
On 10/27/2016 9:46 PM, Den1 wrote: > Well, here it goes. My postconf -n looks like this: I can't see any obvious reason why your header_checks aren't working as expected. Keep in mind that postfix can't remove headers that don't exist yet. -- Noel Jones > > alias_maps = hash:/etc/aliases

Re: Stripping Received: headers

2016-10-27 Thread Den1
Well, here it goes. My postconf -n looks like this: alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no body_checks = regexp:/etc/postfix/bodychecks bounce_template_file = /etc/postfix/bounce.cf broken_sasl_auth_clients = yes config_directory = /etc/postfix

Re: Stripping Received: headers

2016-10-27 Thread Wietse Venema
Den1: > >>Do you have receive_override_options set in main.cf? > > Yes, I do, but I disabled them for testing purposes. > > >>What's "postconf -n" show? > >>what's "postconf -Mf" show? > > Would you like me to post the entire output of postconf -n and postconf -Mf? > Won't your list ban me

Re: Stripping Received: headers

2016-10-27 Thread Den1
>>Do you have receive_override_options set in main.cf? Yes, I do, but I disabled them for testing purposes. >>What's "postconf -n" show? >>what's "postconf -Mf" show? Would you like me to post the entire output of postconf -n and postconf -Mf? Won't your list ban me for flooding because of it

Re: Stripping Received: headers

2016-10-27 Thread Noel Jones
On 10/27/2016 1:57 PM, Den1 wrote: > my apologies to post here again as the thread is quite old but I am having аn > absolutely identical issue. I cannot seem to remove any headers at all no > matter what I do. > > I tried setting this in master.cf: > submission inet n - - -

Re: Stripping Received: headers

2016-10-27 Thread Den1
my apologies to post here again as the thread is quite old but I am having аn absolutely identical issue. I cannot seem to remove any headers at all no matter what I do. I tried setting this in master.cf: submission inet n - - - - smtpd -o

Re: Stripping Received: headers

2013-04-15 Thread Geoff Shang
On Fri, 12 Apr 2013, Wietse Venema wrote: Geoff Shang: On Fri, 12 Apr 2013, Wietse Venema wrote: You need to do postfix reload after editing master.cf. I did. I did it again for good measure - no difference. Are you using receive_override_options? in main.cf or master.cf? No. Geoff.

Re: Stripping Received: headers

2013-04-12 Thread Geoff Shang
On Thu, 11 Apr 2013, Wietse Venema wrote: Geoff Shang: submission inet n - - - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING -o

Re: Stripping Received: headers

2013-04-12 Thread Geoff Shang
On Fri, 12 Apr 2013, Geoff Shang wrote: submission inet n - - - - smtpd -o cleanup_service=submission_cleanup submission_cleanup unix n cleanup -o header_checks=pcre:/etc/postfix/header_checks would do the job.

Re: Stripping Received: headers

2013-04-12 Thread Wietse Venema
Geoff Shang: On Fri, 12 Apr 2013, Geoff Shang wrote: submission inet n - - - - smtpd -o cleanup_service=submission_cleanup submission_cleanup unix n cleanup -o header_checks=pcre:/etc/postfix/header_checks

Re: Stripping Received: headers

2013-04-12 Thread Geoff Shang
On Fri, 12 Apr 2013, Wietse Venema wrote: You need to do postfix reload after editing master.cf. I did. I did it again for good measure - no difference. The submission_cleanup service will see the Received: header that was prepended by the submission server. Is there any way I can be

Re: Stripping Received: headers

2013-04-12 Thread /dev/rob0
A word at the outset here: I predict this will come back to bite you in a most painful way. As Noel suggested, you're going to run afoul of some clueless spam checks. Some years back I know that Hotmail/MSN actually *discarded* such mail silently! Note also that Postfix itself uses Received:

Re: Stripping Received: headers

2013-04-12 Thread Wietse Venema
Geoff Shang: On Fri, 12 Apr 2013, Wietse Venema wrote: You need to do postfix reload after editing master.cf. I did. I did it again for good measure - no difference. Are you using receive_override_options? in main.cf or master.cf? Wietse

Re: Stripping Received: headers

2013-04-11 Thread Wietse Venema
Geoff Shang: submission inet n - - - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING -o

Re: Stripping Received: headers

2013-04-11 Thread Benny Pedersen
Geoff Shang skrev den 2013-04-11 16:33: Hi, I'm trying to strip Received: headers from mail at various parts of our processing, for security reasons. I'm starting with mail that comes in from authenticated clients. I tried doing the following: master.cf: submission inet n - -

Re: Stripping Received: headers

2013-04-11 Thread Noel Jones
On 4/11/2013 10:05 AM, Benny Pedersen wrote: Geoff Shang skrev den 2013-04-11 16:33: Hi, I'm trying to strip Received: headers from mail at various parts of our processing, for security reasons. I'm starting with mail that comes in from authenticated clients. I tried doing the following:

Re: Stripping Received: headers

2013-04-11 Thread Benny Pedersen
Noel Jones skrev den 2013-04-11 18:29: No, header_checks are performed on all incoming mail. +1 As already explained, the problem above is that -o header_checks=... has no effect on smtpd(5). yes it included as it used all incomming, but not directly with smtpd so you must change to to

Re: Stripping Received: headers

2013-04-11 Thread DTNX Postmaster
On Apr 11, 2013, at 18:29, Noel Jones njo...@megan.vbhcs.org wrote: so you must change to to smtp_header_checks smtp_header_checks are performed on outgoing mail during smtp(5) delivery. But you're sort of on the right track. You can use smtp_header_checks to remove the Received:

Re: Stripping Received: headers

2013-04-11 Thread Reindl Harald
Am 11.04.2013 18:55, schrieb Benny Pedersen: smtp_header_checks are performed on outgoing mail during smtp(5) delivery. is submission not using smtp_header_checks? has your submission service smtp or smtpd in master.cf? mine has smtpd as all other working ones out there signature.asc

Re: Stripping Received: headers

2013-04-11 Thread Reindl Harald
Am 11.04.2013 19:20, schrieb Reindl Harald: Am 11.04.2013 18:55, schrieb Benny Pedersen: smtp_header_checks are performed on outgoing mail during smtp(5) delivery. is submission not using smtp_header_checks? has your submission service smtp or smtpd in master.cf? mine has smtpd as

Re: Stripping Received: headers

2013-04-11 Thread Noel Jones
On 4/11/2013 11:55 AM, Benny Pedersen wrote: Noel Jones skrev den 2013-04-11 18:29: smtp_header_checks are performed on outgoing mail during smtp(5) delivery. is submission not using smtp_header_checks ? No. submission uses the smtpd(5) service to receive mail, which uses header_checks