[Exim] multiple condition statements

Top Page
Delete this message
Reply to this message
Author: randall ehren
Date:  
To: exim-users
Old-Topics: RE: [Exim] SMTP AUTH concern
Subject: [Exim] multiple condition statements
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@???