🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #275712

Re: Postfix question

#275712
From: Nomen Nescio
Date: Fri, 28 Aug 2015 18:17
52 lines
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.
Technical Details
Message-ID: <8a5450ff3141e02925b5397ab3acbac4@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <6a0e72f22ab397df759c409e22e59437@remailer.paranoici.org>

Show Full Headers
Complete Article Headers
Message-ID: <8a5450ff3141e02925b5397ab3acbac4@dizum.com>
Subject: Re: Postfix question
Date: Fri, 28 Aug 2015 18:17:14 +0000
From: Nomen Nescio <nobody@dizum.com>
References: <6a0e72f22ab397df759c409e22e59437@remailer.paranoici.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: dizum.com - The Internet Problem Provider
X-Received-Bytes: 2419
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 194.109.206.211