Stopping messages without To: or Cc: header(s)

Garrod M. Alwood Garrod.Alwood at
Fri Nov 20 19:17:59 GMT 2009

Need to be careful about that because some newsletters people sign up for use that in the "To:" header

Garrod M. Alwood
garrod.alwood at
From: mailscanner-bounces at [mailscanner-bounces at] On Behalf Of Hugo van der Kooij [hvdkooij at]
Sent: Friday, November 20, 2009 2:16 PM
To: mailscanner at
Subject: Stopping messages without To: or Cc: header(s)


I want to stop messages without a To: or Cc: header. Postfix will
translate them to:
To: undisclosed-recipients:;

In the postfix cleanup(8) manual page I found this:

        undisclosed_recipients_header   (To:   undisclosed-recipi-
               Message  header  that the Postfix cleanup(8) server
               inserts when a message contains no To: or Cc:  mes-
               sage header.

I would prefer to kill them at postfix entry before they even get
accepted. But if this is not possible I would like to kill them in
MailScanner as high scoring spam.

Any suggestion?

MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list