[Exim-users] unknown condition "spf" inside "or{...}" condition

7 views
Skip to first unread message

Mikhail Golub

unread,
Sep 15, 2020, 8:35:24 AM9/15/20
to exim-...@mailground.net
Доброго времени суток.

Как заставить работать условие?

condition = ${if or { \
{spf=none:softfail} \
{eq{$host_lookup_failed}{1}} \
}}

exim -be 'condition = ${if or { {spf=none:softfail}
{eq{$host_lookup_failed}{1}} }}'
Failed: unknown condition "spf" inside "or{...}" condition


_______________________________________________
Exim-users mailing list
Exim-...@mailground.net
http://mailground.net/mailman/listinfo/exim-users

m...@kostikov.co

unread,
Sep 15, 2020, 8:40:19 AM9/15/20
to exim-...@mailground.net
Использовать оператор "spf" в отдельном от условия правиле, я думаю.

spf = none : softfail

Mikhail Golub писал 2020-09-15 14:34:
signature.asc

Viktor Cheburkin

unread,
Sep 15, 2020, 8:41:41 AM9/15/20
to Exim MTA на русском
Hi!

15 сент. 2020 г., в 15:34, Mikhail Golub <g...@gmn.org.ua> написал(а):

Доброго времени суток.

Как заставить работать условие?

condition = ${if or { \
{spf=none:softfail} \
{eq{$host_lookup_failed}{1}} \
}}

exim -be 'condition = ${if or { {spf=none:softfail} {eq{$host_lookup_failed}{1}} }}'
Failed: unknown condition "spf" inside "or{...}" condition

Судя по этому, exim собран без spf, нужно собрать с libspf.

_______________________________________________
Exim-users mailing list
Exim-...@mailground.net
http://mailground.net/mailman/listinfo/exim-users


-- 
Viktor Cheburkin
VC319-RIPE, VC1-UANIC

Mikhail Golub

unread,
Sep 15, 2020, 9:00:57 AM9/15/20
to exim-...@mailground.net
# exim -bV
Exim version 4.94 #2 (FreeBSD 12.1) built 10-Sep-2020 07:50:44

Support for: crypteq iconv() use_setclassresources Perl Expand_dlfunc
OpenSSL Content_Scanning DKIM PIPE_CONNECT PRDR SPF TCP_Fast_Open
Experimental_SRS


On 15.09.2020 15:41, Viktor Cheburkin wrote:
> Hi!
>
>> 15 сент. 2020 г., в 15:34, Mikhail Golub <g...@gmn.org.ua

>> <mailto:g...@gmn.org.ua>> написал(а):


>>
>> Доброго времени суток.
>>
>> Как заставить работать условие?
>>
>> condition = ${if or { \
>> {spf=none:softfail} \
>> {eq{$host_lookup_failed}{1}} \
>> }}
>>
>> exim -be 'condition = ${if or { {spf=none:softfail}
>> {eq{$host_lookup_failed}{1}} }}'
>> Failed: unknown condition "spf" inside "or{...}" condition
>
> Судя по этому, exim собран без spf, нужно собрать с libspf.
>
>> _______________________________________________
>> Exim-users mailing list

>> Exim-...@mailground.net <mailto:Exim-...@mailground.net>

Mikhail Golub

unread,
Sep 16, 2020, 4:35:18 AM9/16/20
to exim-...@mailground.net
Решил так:
exim -be '${if and { {inlist{$spf_result}{none:softfail}}
{eq{$host_lookup_failed}{1}} }}'
Reply all
Reply to author
Forward
0 new messages