Article View: alt.privacy.anon-server
Article #275697Re: Postfix question
From: 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.
Technical Details
Message-ID:
<442292c9e75d5b7876dec52a07058b1e@foto.nl1.torservers.net>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-mailReferences:
<9e98848be53b09488acbfbc082008ff3@dizum.com>Show Full Headers
Complete Article Headers
Message-ID: <442292c9e75d5b7876dec52a07058b1e@foto.nl1.torservers.net> Subject: Re: Postfix question Date: Thu, 27 Aug 2015 21:32:45 +0000 From: Anonymous <anonymous@foto.nl1.torservers.net> References: <9e98848be53b09488acbfbc082008ff3@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 Newsgroups: alt.privacy.anon-server Injection-Info: sewer.dizum.com - 194.109.206.211 X-Received-Bytes: 1719 Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com