Thread View: alt.privacy.anon-server
6 messages
6 total messages
Started by Jeremy Bentham
Wed, 26 Aug 2015 12:47
Postfix question
Author: Jeremy Bentham
Date: Wed, 26 Aug 2015 12:47
Date: Wed, 26 Aug 2015 12:47
10 lines
1015 bytes
1015 bytes
I have been trying to discard a particularly pesky spam by using a header_checks. The address is From: "whatever" <whatever@whatever.xyz>. I tried placing this in the header_checks file: /^From:[[:space:]].*xyz/ DISCARD but it is not catching it. Did the 'postmap /etc/postfix/header_checks'. Anyone know better parameters? main.cf entry: smtp_header_checks = regexp:/etc/postfix/header_checks
Re: Postfix question
Author: Nomen Nescio
Date: Thu, 27 Aug 2015 17:48
Date: Thu, 27 Aug 2015 17:48
27 lines
1527 bytes
1527 bytes
Jeremy Bentham <nobody@anemone.mooo.com> wrote: > I have been trying to discard a particularly pesky spam by using a header_checks. The address is From: "whatever" <whatever@whatever.xyz>. I tried placing this in the header_checks file: > > /^From:[[:space:]].*xyz/ DISCARD > > but it is not catching it. Did the 'postmap > /etc/postfix/header_checks'. Anyone know better parameters? > > main.cf entry: > smtp_header_checks = regexp:/etc/postfix/header_checks > Try this: /^From.*xyz/ REJECT And in main.cf: header_checks = pcre:/etc/postfix/header_checks You need postfix compiled with pcre support, but that should be standard nowadays. I think you do not need the postmap command for this, but a 'postmap /etc/postfix/header_checks' should not hurt. It will just create a header_checks.db file, which is not needed.
Re: Postfix question
Author: Anonymous
Date: Thu, 27 Aug 2015 21:32
Date: Thu, 27 Aug 2015 21:32
32 lines
1718 bytes
1718 bytes
> Jeremy Bentham <nobody@anemone.mooo.com> wrote: > > >> I have been trying to discard a particularly pesky spam by using a header_checks. The address is From: "whatever" <whatever@whatever.xyz>. I tried placing this in the header_checks file: >> >> >> but it is not catching it. Did the 'postmap >> /etc/postfix/header_checks'. Anyone know better parameters? >> >> main.cf entry: >> smtp_header_checks = regexp:/etc/postfix/header_checks >> > Try this: > > /^From.*xyz/ REJECT > > And in main.cf: > > header_checks = pcre:/etc/postfix/header_checks > > You need postfix compiled with pcre support, but that > should be standard nowadays. > > I think you do not need the postmap command for this, but > a 'postmap /etc/postfix/header_checks' should not hurt. It > will just create a header_checks.db file, which is not needed. I had tried pcre: and got an error. I think I had the line wrong. It should be smtp_header_checks = pcre:/etc/postfix/header_checks No error upon postfix restart this time.
Re: Postfix question
Author: Anonymous
Date: Fri, 28 Aug 2015 11:53
Date: Fri, 28 Aug 2015 11:53
47 lines
2289 bytes
2289 bytes
>> Jeremy Bentham <nobody@anemone.mooo.com> wrote: >> >> >>> I have been trying to discard a particularly pesky spam by using a header_checks. The address is From: "whatever" <whatever@whatever.xyz>. I tried placing this in the header_checks file: >>> >>> >>> but it is not catching it. Did the 'postmap >>> /etc/postfix/header_checks'. Anyone know better parameters? >>> >>> main.cf entry: >>> smtp_header_checks = regexp:/etc/postfix/header_checks >>> >> Try this: >> >> /^From.*xyz/ REJECT >> >> And in main.cf: >> >> header_checks = pcre:/etc/postfix/header_checks >> >> You need postfix compiled with pcre support, but that >> should be standard nowadays. <snip> Apparently the Debian postfix doesn't compile with pcre support. Got errors and mailq backed up , nothing was being sent until I removed the pcre: statement. syslog: Aug 27 15:11:52 allpingers postfix/smtp[17681]: error: unsupported dictionary type: pcre Aug 27 15:11:53 allpingers postfix/smtp[17681]: warning: pcre:/etc/postfix/header_checks is unavailable. unsupported dictionary type: pcre Aug 27 15:11:53 allpingers postfix/smtp[17681]: warning: pcre:/etc/postfix/header_checks lookup error for "Received: by mail.allpingers.net (Postfix, from userid 1003)??id E2378826E9; Thu, 27 Aug$ Aug 27 15:11:53 allpingers postfix/smtp[17681]: warning: E2378826E9: smtp header checks lookup error I am trying this now '/^From.*xyz/ REJECT' with smtp_header_checks = regexp:/etc/postfix/header_checks I won't know if it is working because I blocked .xyz's IP.
Re: Postfix question
Author: Jeremy Bentham
Date: Fri, 28 Aug 2015 14:55
Date: Fri, 28 Aug 2015 14:55
48 lines
2172 bytes
2172 bytes
>>> Jeremy Bentham <nobody@anemone.mooo.com> wrote: >>> >>> >>>> I have been trying to discard a particularly pesky spam by using a header_checks. The address is From: "whatever" <whatever@whatever.xyz>. I tried placing this in the header_checks file: >>>> >>>> >>>> but it is not catching it. Did the 'postmap >>>> /etc/postfix/header_checks'. Anyone know better parameters? >>>> >>>> main.cf entry: >>>> smtp_header_checks = regexp:/etc/postfix/header_checks >>>> >>> Try this: >>> >>> /^From.*xyz/ REJECT >>> >>> And in main.cf: >>> >>> header_checks = pcre:/etc/postfix/header_checks >>> >>> You need postfix compiled with pcre support, but that >>> should be standard nowadays. > > <snip> > > Apparently the Debian postfix doesn't compile with pcre support. > Got errors and mailq backed up , nothing was being sent until I > removed the pcre: statement. > > syslog: > > dictionary type: pcre > pcre:/etc/postfix/header_checks is unavailable. unsupported > dictionary type: pcre > pcre:/etc/postfix/header_checks lookup error for "Received: by > mail.allpingers.net (Postfix, from userid 1003)??id E2378826E9; > Thu, 27 Aug$ > E2378826E9: smtp header checks lookup error > > I am trying this now '/^From.*xyz/ REJECT' with > smtp_header_checks = regexp:/etc/postfix/header_checks > > I won't know if it is working because I blocked .xyz's IP. Here it is: Building Postfix with PCRE support www.postfix.org/PCRE_README.html
Re: Postfix question
Author: Nomen Nescio
Date: Fri, 28 Aug 2015 18:17
Date: Fri, 28 Aug 2015 18:17
52 lines
2464 bytes
2464 bytes
Anonymous <nobody@remailer.paranoici.org> wrote: > >> Jeremy Bentham <nobody@anemone.mooo.com> wrote: > >> > >> > >>> I have been trying to discard a particularly pesky spam by using a header_checks. The address is From: "whatever" <whatever@whatever.xyz>. I tried placing this in the header_checks file: > >>> > >>> > >>> but it is not catching it. Did the 'postmap > >>> /etc/postfix/header_checks'. Anyone know better parameters? > >>> > >>> main.cf entry: > >>> smtp_header_checks = regexp:/etc/postfix/header_checks > >>> > >> Try this: > >> > >> /^From.*xyz/ REJECT > >> > >> And in main.cf: > >> > >> header_checks = pcre:/etc/postfix/header_checks > >> > >> You need postfix compiled with pcre support, but that > >> should be standard nowadays. > > <snip> > > Apparently the Debian postfix doesn't compile with pcre support. > Got errors and mailq backed up , nothing was being sent until I > removed the pcre: statement. > > syslog: > > Aug 27 15:11:52 allpingers postfix/smtp[17681]: error: unsupported > dictionary type: pcre > Aug 27 15:11:53 allpingers postfix/smtp[17681]: warning: > pcre:/etc/postfix/header_checks is unavailable. unsupported > dictionary type: pcre > Aug 27 15:11:53 allpingers postfix/smtp[17681]: warning: > pcre:/etc/postfix/header_checks lookup error for "Received: by > mail.allpingers.net (Postfix, from userid 1003)??id E2378826E9; > Thu, 27 Aug$ > Aug 27 15:11:53 allpingers postfix/smtp[17681]: warning: > E2378826E9: smtp header checks lookup error > > I am trying this now '/^From.*xyz/ REJECT' with > smtp_header_checks = regexp:/etc/postfix/header_checks > > I won't know if it is working because I blocked .xyz's IP. > On debian you need to install the postfix-pcre package.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads