On Thu, 8 Oct 2009, Victor Duchovni wrote:

I am setting up an SMTP backup MX server for a customer, and one of their
specifications is that we check incoming mail for NDR/bounce mails without
a valid "watermark".  Surfcontrol adds a header similar to 'X-SEF'
with a UUID on outbound mail, so any mail that's a bounce without this UUID
header will be invalid.

I will have to use the header_checks regexp directive, but how do I ONLY
perform this check for a bounce (ie, MAIL FROM: <>) ?

You need a suitable content_filter or milter. No built-in Postfix feature
checks for the absence of a header, let alone conditions such a check
on the envelope sender address.

Hi Viktor,

I was trying to do something like the following in header_checks
if /^From:.*<>/
!/^X-SEF/ REJECT
endif

Obviously the wrong syntax, but you're saying you can't use the '!' symbol to check for absence of a header?

Will have to have a look into some content filters to do this then, but wanted something light-weight as it's only a backup MX, which will get absolutely hammered with higher-priority MX targetted SPAM!

Cheers
Duncan

Reply via email to