[clug] exim conditions :D
Andrew
andrew at donehue.net
Wed Feb 25 10:43:20 GMT 2004
Hi all!
I have been busy moving a mail server from sendmail to exim....
One of the features required of exim is an auto-responder. I am
filtering out common lists with this
senders = " ${lookup mysql{MYSQL_Q_AREPLYBLIST}} : \
! ^.*-request at .*:\
! ^owner-.*@.*:\
! ^postmaster at .*:\
! ^listmaster at .*:\
! ^mailer-daemon at .*:\
! ^.*@lists.*:\
! ^root at .*"
In the conditions I need to check if an auto reply is required, and to
match any lists (to avoid auto-responders to such lists as clug ;) -
Anyhow - i'm trying to combine the two below conditions into one
statement (it has to pass both to continue). I have managed to create
the second one myself from reading the manual and looking at examples,
but I am not sure how to combine them together into one condition?
${if or {{match {$h_precedence:} {(?i)junk|bulk|list}} {eq
{$sender_address} {}}} {no} {yes}
${if eq {${lookup mysql{MYSQL_Q_CHECKDOAREPLY}}} {1} {true} fail }
For reference i'm running exim4-heavy (4.30) from the testing stream of
debian on intel hardware.
Any advice appreciated.
Andrew.
P.S I know this isn't an exim list, but I like to ask locally first.
More information about the linux
mailing list