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
_header_checks if used together may mangle each other and conflict? Did I understand you correctly? I will toggle them just to test and to check if that could be the reason as well... I haven't tried yet to use either header_checks or smtp_header_checks only. I have always used them both at the s

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-28 Thread Den1
ve... Is that possible? Many thanks! milter_default_action = tempfail smtpd_milters = unix:/clamav/clamav-milter.ctl, unix:/spamass/spamass.sock -o milter_macro_daemon_name=ORIGINATING -- View this message in context: http://postfix.1071664.n5.nabble.com/Stripping-Received-headers-tp56953p86994.html Sent from the Postfix Users mailing list archive at Nabble.com.

Re: Stripping Received: headers

2016-10-28 Thread Noel Jones
postfix-to-mailman.py > ${nexthop} ${user} > policy-spf unix - n n - - spawn > user=nobody argv=/usr/sbin/postfix-policyd-spf-perl > policyd-spf-perl_time_limit = 3600 > spamassassin unix - n n - - pipe > user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} > ${recipient} > procmail unix - n n - - pipe > flags=DROhu user=mmail argv=/usr/bin/procmail -t -m USER=${user} > > Hope you will be able to assist on correct settings to remove headers. Many > thanks! > > > > > -- > View this message in context: > http://postfix.1071664.n5.nabble.com/Stripping-Received-headers-tp56953p86984.html > Sent from the Postfix Users mailing list archive at Nabble.com. >

Re: Stripping Received: headers

2016-10-27 Thread Den1
e you will be able to assist on correct settings to remove headers. Many thanks! -- View this message in context: http://postfix.1071664.n5.nabble.com/Stripping-Received-headers-tp56953p86984.html Sent from the Postfix Users mailing list archive at Nabble.com.

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 for

Re: Stripping Received: headers

2016-10-27 Thread Den1
on't your list ban me for flooding because of it will it? :-))) -- View this message in context: http://postfix.1071664.n5.nabble.com/Stripping-Received-headers-tp56953p86981.html Sent from the Postfix Users mailing list archive at Nabble.com.

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
:/etc/postfix/header_checks header_checks = regexp:/etc/postfix/headеrch in my main.cf but it's still the same, no headers are removed in both incoming and outgoing emails. -- View this message in context: http://postfix.1071664.n5.nabble.com/Stripping-Received-headers-tp56953p86979

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

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 su

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

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

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_che

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

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

Re: Stripping Received: headers

2013-04-11 Thread DTNX Postmaster
On Apr 11, 2013, at 18:29, Noel Jones 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: headers from > authen

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

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 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 header_checks=pcre:/etc/postfix/heade

Stripping Received: headers

2013-04-11 Thread Geoff Shang
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 - - - - smtpd -o smtpd_e