Uhmm.. there can be only one 'condition' in a director. If you need to
check multpile things, use boolean "or" or "and" and put them all in one
'condition'
On Sun, 8 Jul 2001, randall ehren wrote:
> hi,
> i was trying to add additional conditions to my autoreply director, but
> it failed at the presense of a second condition statement. i check to see
> if a user has autoreply on via a mysql database rather than a file, so i
> needed to use condition instead of require to make the check.
> i would also like to check for the sender address so autoreplies don't
> get sent to lists and the like. anyone else solve this problem or have an
> idea how?
>
> thanks,
>
> exim 3.16 config snippet:
> -------------------------
> mysql_autoresponder:
> driver = smartuser
> transport = mysql_autoresponder_transport
> # do not reply to errors or lists
> senders = "! ^.*-request@.*:\
> ! ^owner-.*@.*:\
> ! ^postmaster@.*:\
> ! ^listmaster@.*:\
> ! ^mailer-daemon@.*"
>
> # do not reply to errors and bounces or lists
> #condition = "${if or {{match {$h_precedence:} {(?i)junk|bulk|list}} \
> # {eq {$sender_address} {}}} {no} {yes}}"
>
> condition = ${lookup mysql{SELECT login FROM users, domains WHERE
> users.did = domains.did AND login='${local_part}' AND domain='${domain}'
> AND vacation='y'}{$value}fail}
> domains = domain.com
> user = cyrus
> unseen
> no_verify
> no_expn
>
> ------------
>
> - randall s. ehren -=- 805 893-5632
> system administrator -=- isber.ucsb.edu
> institute for social, behavioral, and economic research
> randall.cell@???
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
--