Re:[Exim] Use of "condition"

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jan Suchanek
Datum:  
To: exim-users
Betreff: 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?


Greetings, Jan Suchanek

--
Jan Suchanek,
Universitaet Ulm, URG, Fakultaet fuer Informatik,
89069 Ulm, Germany
Raum: O27/243

Tel.: +49/(0)731-5024205, Fax: +49/(0)731-5024202