On Thu, Oct 08, 2009 at 10:13:33AM +0000, Duncan B. wrote: > > Hi all, > > 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. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.