[exim] exim autoreply condition

Pàgina inicial
Delete this message
Reply to this message
Autor: Juri Malinovski
Data:  
A: exim-users
Assumpte: [exim] exim autoreply condition
Is it possible to mix “AND” “OR” logic in one condition?



For example:

CHECK_VACATION = ${lookup mysql{select body from vacation where \

        email = '$local_part@$domain' and active = '1'}{$value}fail}




autorespond:

driver = accept

domains = +virt_domains

condition = ${if and { {!eq {CHECK_VACATION}{} }} \ (maybe ${if !eq {CHECK_VACATION}{} } even)

        or {


       {!match{$h_precedence:}{(?i)junk|bulk|list}}\


        {eq{$sender_address}{}}\


        {!def:header_Auto-Submitted:}\


        {!def:header_X-Autoresponse:}\


        {!def:header_X-Autoreply-From:}\


        {!def:header_List-Id:}\


        {!def:header_List-Help:}\


        {!def:header_List-Unsubscribe:}\


        {!def:header_List-Subscribe:}\


        {!def:header_List-Owner:}\


        {!def:header_List-Post:}\


        {!def:header_List-Archive:}\


        }}


no_verify

no_expn

unseen

transport = auto_responder



or something similar (this example doesn’t work)



--

Best regards,

Juri