[exim] Question about SRS implementation.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ken Price
Dátum:  
Címzett: exim-users
Tárgy: [exim] Question about SRS implementation.
All,

I'm having a heck of a time implementing SRS on my server. Though it
shouldn't really matter, I'm using a highly modified version of the Vexim
configuration. I'm running CentOS 5.4 x86_84 and have the following RPM's
installed from ATRPMS repo.

exim-4.71-39.el5
libsrs_alt-1.0-3_rc1.0.el5
libspf2-1.2.5-5.0.el5

The problem is simple. No errors even with verbose logging, and no SRS
rewriting. Nothing written to SRS MySQL table. Nothing. Messages get
forwarded on as if the SRS configs weren't there. And yes, the ATRPMS
version of Exim is built with the experimental SRS and SPF support turned
on.

Thanks,
Ken

My relevant Exim configuration snippets are:

====MAIN====
hide srs_config = mysecrets:60:5


====ROUTERS=====

srs_router:
  driver = redirect
  srs = reverseandforward
  srs_dbinsert = ${lookup mysql{INSERT INTO SRS \
        (Key, Address, Time) VALUES \
        ('${srs_db_key}', '${srs_db_address}', NOW())}}
  srs_dbselect = ${lookup mysql{SELECT Address FROM SRS WHERE \
        Key = '${srs_db_key}' AND \
        Time > SUBDATE(NOW(), INTERVAL 30 day) LIMIT 1}}
  data = ${srs_recipient}



virtual_forward:
  driver = redirect
  check_ancestor
  srs = forward
  srs_dbinsert = ${lookup mysql{INSERT INTO SRS \
        (Key, Address, Time) VALUES \
        ('${srs_db_key}', '${srs_db_address}', NOW())}}
  unseen = ${if eq {${lookup mysql{select unseen from users,domains \
                where localpart = '${quote_mysql:$local_part}' \
                and domain = '${quote_mysql:$domain}' \
                and users.on_forward = '1' \
                and users.domain_id=domains.domain_id}}}{1} {yes}{no}}
  data = ${lookup mysql{select forward from users,domains \
        where localpart='${quote_mysql:$local_part}' \
        and domain='${quote_mysql:$domain}' \
        and users.domain_id=domains.domain_id \
        and on_forward = '1'}}
  srs_condition = ${if eq {${lookup mysql{select 1 from
domains,domainalias \
        where domains.domain='${quote_mysql:$domain}' \
        or domainalias.alias='${quote_mysql:$domain}' }}}{1} {no}{yes}}
  # We explicitly make this condition NOT forward mailing list mail!
  condition = ${if and { {!match {$h_precedence:}{(?i)junk|bulk|list}} \
                         {eq {${lookup mysql{select users.on_forward from
users,domains \
                                where localpart =
'${quote_mysql:$local_part}' \
                                and domain = '${quote_mysql:$domain}' \
                                and users.on_forward = '1' \
                                and
users.domain_id=domains.domain_id}}}{1} }} {yes}{no} }