Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to use header_checks to only pass email with a specific header.

Status
Not open for further replies.

blongman

IS-IT--Management
Oct 20, 2011
1
US
Hi,

I've been digging about the documentation for the better part of today trying to work out how to cause an email that contains a particular header (that only shows up on a particular brand of appliance) to make it through a postscript server, and reject everything else. I thought I could use header_checks for this, but what I've tried so far seems to reject all mail.

Right now I'm trying something along the lines of:

!/^X-Specific-Header.*/ REJECT

And many variations thereof like:

!/^X-Specific-Header .*/ REJECT
!/^X-Specific-Header .*00/ REJECT

But it seems to be rejecting all mail, even when I inject what should be a valid header:

X-Specific-Header: 00:00:00:00:00:00

into the outgoing mail with mutt.

Am I going about this the wrong way?

The logic I'm running is it should be rejecting on the lack of the text in the regular expression, but unfortunately what I've found in the docs doesn't seem to describe an obvious way about this.

Thanks,

-Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top