From: "Nick Lunt" on
Hi all,

postfix-2.3.3-2.1.el5_2

If the subject does not match match /*.ABC.*/ and the recipient is
"fred(a)example.com" I want this email to be discarded.

This is not for spam detection it's simply an organisational
requirement.

Does anyone have a method to achieve this ?

Many thanks
Nick.

Postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relayhost = myrelayhost
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual




__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4813 (20100128) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


From: Noel Jones on
On 1/28/2010 5:32 AM, Nick Lunt wrote:
> Hi all,
>
> postfix-2.3.3-2.1.el5_2
>
> If the subject does not match match /*.ABC.*/ and the recipient is
> "fred(a)example.com" I want this email to be discarded.
>
> This is not for spam detection it's simply an organisational
> requirement.
>
> Does anyone have a method to achieve this ?
>
> Many thanks
> Nick.
>

This requires a content_filter or milter that can compare both
the subject and the envelope recipient.

Probably SpamAssassin with some custom rules would be the
easiest (or maybe regexp-milter if it can compare multiple
items -- don't know, I don't use it).

-- Noel Jones

From: DUBOURG Kevin on
Hello !

Maildrop can routing your email with many regex and criteria.
http://www.courier-mta.org/maildrop/

Regards,

On Thu, 28 Jan 2010 07:32:04 -0600, Noel Jones
wrote:
> On 1/28/2010 5:32 AM, Nick Lunt wrote:
>> Hi all,
>>
>> postfix-2.3.3-2.1.el5_2
>>
>> If the subject does not match match /*.ABC.*/ and the recipient is
>> "fred(a)example.com" I want this email to be discarded.
>>
>> This is not for spam detection it's simply an organisational
>> requirement.
>>
>> Does anyone have a method to achieve this ?
>>
>> Many thanks
>> Nick.
>>
>
> This requires a content_filter or milter that can compare both
> the subject and the envelope recipient.
>
> Probably SpamAssassin with some custom rules would be the
> easiest (or maybe regexp-milter if it can compare multiple
> items -- don't know, I don't use it).
>
> -- Noel Jones