Autor: Jan Suchanek Data: Para: exim-users Assunto: Re:[Exim] Use of "condition"
Hello!
Regarding my question about the use of the "and" in a condition: I found
no working configuration with exim (I am sure there has to be one...)
but I helped myself with the modification of the database query:
condition = ${lookup pgsql{select username from reject where
username=lower('$local_part') and (reject=lower('$sender_address') or
domain=lower('$sender_address_domain'))}{no}{yes}}
This works fine for me. But I found another problem I could use help
with. If the condition fails the sender get a message that there is no
matching local part. It would be nice if the sender gets a message like
"The recipent decided not to get mails from you..." Is it possible to
send an own error_message for the one failed condition?