[exim] Exclude certain mail from SPF checking

Etusivu
Poista viesti
Vastaa
Lähettäjä: Gary Benn
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] Exclude certain mail from SPF checking
Hi Everyone,

I’m trying to exclude certain incoming emails from SPF checking.

eg. by having it check for a header line such as: X-MyCustomHeader: yes

is this possible? It’s driving me nuts. I’ve tried things like:

——
deny message = SPF: $sender_host_address is not allowed to send mail from $sender_address_domain
        !condition = ${if match{$message_headers: X-MyCustomHeader: }{yes}{1}{0}}
    spf = fail'
——


and:

——
accept condition = ${if match{$message_headers: X-MyCustomHeader: }{yes}{1}{0}}
——



Thanks,
Gary