Страница 1 из 1

Помогите отключить для одного домена greylist(exim)

Добавлено: 2011-09-21 17:01:22
bobot
вот такое я условие ставлю в начале

Код: Выделить всё

begin acl
.ifdef GREYLIST_ENABLED
greylist_acl:
deny condition = ${if eq{${lookup mysql{SELECT email FROM whitelist WHERE email = '$domain'}}}{}{yes}{no}} ------- вот я ставлю
  # For regular deliveries, check greylist.

  # check greylist tuple, returning "accepted", "deferred" or "unknown"
  # in acl_m8, and the record id in acl_m9

  warn set acl_m8 = ${lookup mysql{GREYLIST_TEST}{$value}{result=unknown}}
       # here acl_m8 = "result=x id=y"

       set acl_m9 = ${extract{id}{$acl_m8}{$value}{-1}}
       # now acl_m9 contains the record id (or -1)

       set acl_m8 = ${extract{result}{$acl_m8}{$value}{unknown}}
       # now acl_m8 contains unknown/deferred/accepted

  # check if we know a certain triple, add and defer message if not
  accept
       # if above check returned unknown (no record yet)
       condition = ${if eq{$acl_m8}{unknown}{1}}
       # then also add a record
       condition = ${lookup mysql{GREYLIST_ADD}{yes}{no}}

  # now log, no matter what the result was
  # if the triple was unknown, we don't need a log entry
  # (and don't get one) because that is implicit through
  # the creation time above.
  .ifdef GREYLIST_LOG_ENABLED
  warn condition = ${lookup mysql{GREYLIST_LOG}}
  .endif
# check if the triple is still blocked
  accept
       # if above check returned deferred then defer
       condition = ${if eq{$acl_m8}{deferred}{1}}
       # and note it down
       condition = ${lookup mysql{GREYLIST_DEFER_HIT}{yes}{yes}}

  # use a warn verb to count records that were hit
  warn condition = ${lookup mysql{GREYLIST_OK_COUNT}}

  # use a warn verb to set a new expire time on automatic records,
  # but only if the mail was not a bounce, otherwise set to now().
  warn !senders = : postmaster@*
       condition = ${lookup mysql{GREYLIST_OK_NEWTIME}}
  warn senders = : postmaster@*
       condition = ${lookup mysql{GREYLIST_OK_BOUNCE}}

  deny
.endif



если так

Код: Выделить всё

deny condition = ${if eq{${lookup mysql{SELECT email FROM whitelist WHERE email = '$domain'}}}{}{yes}{no}}
То все письма проходят вообще без проверки Greylist

если так

Код: Выделить всё

deny condition = ${if eq{${lookup mysql{SELECT email FROM whitelist WHERE email = '$domain'}}}{}{no}{yes}}
То тогда все письма проходят проверку Greylist , т.е. реакции на домен
??

Re: Помогите отключить для одного домена greylist(exim)

Добавлено: 2012-02-14 12:52:54
Alex Keda
в само условие, вживте условие с доменом