Re: [Exim] Condition statement for autoreply

Top Page
Delete this message
Reply to this message
Author: Darren Casey
Date:  
To: Exim List
Subject: Re: [Exim] Condition statement for autoreply
> catchall_autoreply:
> driver = accept
> condition = ${if and {\
> {eq {${lookup mysql {MYSQL_AUTOREPLY_EMAIL}{$value}}}{false} }\
> {eq {${lookup mysql {MYSQL_CATCHALL_AUTOREPLY_EMAIL}{$value}}}{true} }\
> }\
> {true}{false}}
> transport = catchall_auto_message
> unseen


I figured it out thanks
condition = ${if and {\
{eq {${lookup mysql {MYSQL_AUTOREPLY_EMAIL}{true}{false}}}{false} }\
{eq {${lookup mysql
{MYSQL_CATCHALL_AUTOREPLY_EMAIL}{true}{false}}}{true} }\
}\
{true}{false}}