Re: [exim] How to cofigure exim config about spf

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Heiko Schlittermann
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] How to cofigure exim config about spf
Hi,

TomNewChao via Exim-users <exim-users@???> (Fr 10 Mär 2023 03:00:13 CET):
> Hello, When I compiled exim, spf was enabled, and I used the libspf2 library. How can I configure spf in /etc/exim.conf, it is only setting CHECK_RCPT_SPF = true , and else ?


> The exim config is below:
> .ifdef CHECK_RCPT_SPF
> deny


>     condition = ${run{/usr/bin/spfquery.mail-spf-perl --ip \
>                   ${quote:$sender_host_address} --identity \
>                   ${if def:sender_address_domain \
>                       {--scope mfrom  --identity ${quote:$sender_address}}\
>                       {--scope helo --identity ${quote:$sender_helo_name}}}}\
>                   {no}{${if eq {$runrc}{1}{yes}{no}}}}


If I'm not mistaken, this is nothing, the upstream provides. What's the
origin of this configuration?

> Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc OpenSSL TLS_resume Content_Scanning DANE DKIM DMARC DNSSEC Event OCSP PIPECONNECT PRDR PROXY Queue_Ramp SOCKS SPF TCP_Fast_Open


Since you've SPF compiled in, all you need to do is reading the Spec
file and configuring the *built-in* SPF functionality. No need for
external program invocations. The Spec, near section 58.4 contains
information on this topic.

https://www.exim.org/exim-html-current/doc/html/spec_html/ch-dkim_spf_srs_and_dmarc.html

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -