|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
header_checks or maildrop?
From: Crayon (crayon.shin.chan.uk
gmail.com)
Date: Mon Jan 01 2007 - 10:52:18 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
I'm new to postfix (having used qmail for several years). In my old setup
I had maildrop rules that are run on addresses which I use to receive
mailing lists. So for example, for an address that is used solely for
receiving this list, the maildrop rules would check for the presence of
these headers:
Sender: owner-postfix-users
postfix.org
Precedence: bulk
List-Post: <mailto:postfix-users
postfix.org>
List-Help: <http://www.postfix.org/lists.html>
List-Unsubscribe: <mailto:majordomo
postfix.org>
List-Subscribe: <mailto:majordomo
postfix.org>
If the check fails the mail is unlikely to have come from the list and is
most likely spam (or a direct reply from someone on the list - which I
don't want) and gets rejected.
What I would like to know is, can something similar be implemented using
postfix's header_checks? My reading of the docs suggests it can't be done
because postfix only processes a single header at a time and makes a
decision per header.
Another thing is I would like to reject mails don't have a "Subject:"
header (or it is empty). Again, because of the way the header_checks are
done I don't think I can check for the absence of a particular header?
--
Crayon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]