Article View: alt.privacy.anon-server
Article #275691Re: Postfix question
From: 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.
Technical Details
Message-ID:
<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!news.usenet.farm!..!..!not-for-mailReferences:
<4be92938ddbb6b606ef0418a1991ffb8@anemone.mooo.com>Show Full Headers
Complete Article Headers
Message-ID: <9e98848be53b09488acbfbc082008ff3@dizum.com> Subject: Re: Postfix question Date: Thu, 27 Aug 2015 17:48:15 +0000 From: Nomen Nescio <nobody@dizum.com> References: <4be92938ddbb6b606ef0418a1991ffb8@anemone.mooo.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 194.109.206.211 Lines: 27