Re: [exim] Some help implementing SRS...

Góra strony
Delete this message
Reply to this message
Autor: Marco Gaiarin
Data:  
Dla: Marco Gaiarin
CC: exim-users
Temat: Re: [exim] Some help implementing SRS...

> ... please help me...


Still I. Firstly, a question: because my ISP (libero.it) implemented
recently DMARC, and listserver breaks it, someone is receiving my email?


Still i'm here: reading around i've rewrited my routers, and now i've a
generic one roughly as the first and second router:

.ifdef SRS_SECRETFILE
srs_forward:
debug_print = "R: srs_forward for $local_part@$domain"
no_verify
senders = ! : ! *@+local_domains
address_data = ${run{/usr/bin/srs --secretfile=SRS_SECRETFILE --hashlength=SRS_HASHLENGTH --alias=SRS_DOMAIN $sender_address}{$value}{:defer: SRS failure}}
errors_to = ${quote_local_part:${local_part:$address_data}}@${domain:$address_data}
headers_add = "X-SRS: Sender address rewritten from <$sender_address> to <${quote_local_part:${local_part:$address_data}}@${domain:$address_data}> by $primary_hostname."
driver = redirect
repeat_use = false
allow_defer
data = ${quote_local_part:$local_part}@$domain
.endif

That router match, the 'X-SRS:' header get added, but there's no sender rewriting.


Also, the ''reverse'' router:

.ifdef SRS_SECRETFILE
srs_bounce:
debug_print = "R: srs_bounce for $local_part@$domain"
driver = redirect
domains = SRS_DOMAIN
allow_fail
allow_defer
local_part_prefix = srs0+ : srs0- : srs0= : srs1+ : srs1- : srs1=
caseful_local_part
address_data = ${run{/usr/bin/srs --reverse --secretfile=SRS_SECRETFILE --hashlength=SRS_HASHLENGTH --alias=SRS_DOMAIN ${local_part_prefix}${local_part}@${domain}}{$value}{:defer: SRS failure}}
data = ${if match{$address_data}{^ERROR}{:fail: Invalid SRS address}{${quote_local_part:${local_part:$address_data}}@${domain:$address_data}}}
.endif

used in address testing mode works as expected (eg, ${address data} is
gaio@???) but after that i get on logs:

2015-07-17 12:45:54 1ZG1Sg-00016Z-LM == t1nkzjug=hz=sv.work.it=gaio@??? <SRS0=T1NKZJUg=HZ=sv.work.it=gaio@???> R=srs_bounce defer (-17): error in redirect data: domain missing or malformed in """@"

Please, help me...

-- 
  Utopia aveva una sorella maggiore,
  che si chiamava Verita` senza errore            (Nomadi)