[exim] Exclude certain mail from SPF checking

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Gary Benn
Date:  
À: exim-users
Sujet: [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